CSS generator: gradients and shadows

Build a gradient (linear, radial or conic) or a box-shadow with several layers, watch the live preview and copy the ready-to-use CSS.

Your data stays on your computer. Files are processed in your browser and are never uploaded.

Gradient

Stops bar
Drag a handle, or select it and use the arrow keys. Double-click the bar to add a stop.

Color stops

  • 1
  • 2

Color · Hex code · Opacity (0-1) · Position (%)

Examples

Preview

CSS code

background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);

Stops

Each stop is a color at a position from 0 to 100%. Two stops at the same position make a hard edge with no blending. With opacity below 1 the color becomes rgba().

Compatibility

Linear, radial and conic gradients and box-shadow work in all current browsers. The conic gradient arrived later: for very old browsers add a fallback color.

Where the data goes

Everything happens on this page: nothing is saved or sent.

Keyboard shortcuts

In this tool

This tool has no keyboard actions.

Everywhere

Open this panel (outside text fields)
?
Closes panels and menus, never clears data
Esc
Search for a tool
/ or CtrlK

Tool chains

Link several tools into a path: after using a tool, “Send to…” offers the next step first. Saved chains keep only a name and the tools, never your data.

Saved chains

No saved chains.

New chain