fixtdoc

CSS Box Shadow Generator

Drag the sliders to design a box shadow, stack layers for depth, and copy the finished CSS. The preview updates as you work.

Files stay on your device
Preview box

Layer 1

#172033

CSS

box-shadow: 0px 12px 24px -8px rgba(23, 32, 51, 0.25);

Everything runs in your browser. The CSS is generated on this device and is not uploaded for processing.

Frequently asked questions

What do the shadow values mean?

Offset X and Y move the shadow sideways and down, blur softens its edge, and spread grows or shrinks it before blurring. A negative spread with a generous blur gives the soft, modern card shadow most designs use.

Why stack multiple layers?

Real shadows are layered: a tight, darker shadow near the object plus a wide, faint one further away reads as natural depth. Two or three layers at different offsets and opacities look far better than one heavy shadow.

What does inset do?

An inset shadow is drawn inside the box instead of outside it, which gives a pressed or recessed look, useful for inputs and wells.