CSS Gradient Generator
Pair your shadow with a background gradient.
Tune offset, blur, spread, and color and watch the shadow on a real box — then copy one ready-to-paste box-shadow line.
Offset-x and offset-y position the shadow relative to the box. Together they decide whether the shadow reads as a light from above-left or from below-right.
Blur softens the edge (0 is a hard cut). Spread inflates or shrinks the shadow before blur is applied, letting you dial in anything from a crisp ring to a wide, soft glow.
With inset, the shadow is cast inside the element — the staple of recessed panels and pressed buttons. Flipping it on/off is instant in the live preview.
They shift the shadow horizontally and vertically. Positive x is right, positive y is down; negatives go left and up. Offset plus blur is the 90% case (offset 0 blur 0 is the rare hard-edge shadow).
Positive spread makes the shadow larger, negative makes it smaller, before blurring. Negative spread with a soft blur is the trick behind a subtle recessed look.
It draws the shadow inside the box instead of behind it — the classic pressed / well / recessed-panel effect you see in form inputs.