Gradient & Shadow Generator
Create gradients and layered shadows, then copy the CSS.
Color stops
Shadow layers (first layer on top)
Check the highlighted fields. Enter numbers within the displayed limits.
Color stops are sorted by position. For the same visual result, apply the CSS to an element with the same size, shape and background as the preview.
FAQ
How do linear and radial gradients differ?
A linear gradient follows an angle; a radial gradient radiates from the center as an ellipse. Add at least two color stops and set their positions from 0 to 100%. The output sorts stops by position.
How do multiple shadows work?
Each layer produces a comma-separated box-shadow value. The first layer is drawn on top. Negative offsets move left or up; negative spread shrinks the shadow. Inset draws inside the box.
Will the copied CSS match the preview?
The preview uses the exact gradient or box-shadow value shown in the CSS output. Paste the declaration into a CSS rule. The target size, shape and background can affect the appearance; the preview box is 240 by 160 pixels with 16-pixel corners.