Design box shadows visually and copy the CSS.
Design CSS box shadows with a live preview and copy a ready box-shadow declaration. Each layer has X, Y, Blur, Spread, Color and an Inset toggle, and you can stack up to 6 layers. It is built for developers who want soft elevation effects without guessing values.
The box-shadow property draws one or more shadows around an element's box. Each shadow is written as an optional inset keyword, a horizontal offset, a vertical offset, an optional blur radius, an optional spread radius and a color. Positive X moves the shadow right and positive Y moves it down. Blur softens the edge; it cannot be negative. Spread grows the shadow when positive and shrinks it when negative. The inset keyword draws the shadow inside the border instead of outside. Multiple shadows are separated by commas and the first one sits on top, which lets you combine a tight contact shadow with a larger soft one for realistic depth.
Up to 6 layers. The first layer is drawn on top. The output lists the layers separated by commas in the order shown.
The tool always writes all four lengths (X, Y, blur, spread) with px units. Zero values are written as 0px, which is valid CSS.
No. This tool generates only the box-shadow property. Text shadows and the filter drop-shadow function use different properties.
No. Whatever you type is placed in the CSS as is. If the color is invalid, the browser ignores the declaration, so check that the preview shows a shadow.
No. Blur is clamped at 0 because CSS does not allow negative blur radii. X, Y and Spread may be negative.