← All tools

CSS Box Shadow Generator

Build up to eight CSS box-shadow layers, compare light and dark previews, tune inset and opacity, and copy CSS locally.

box-shadow-generatorLOCAL WORKSPACE

01 / Starting point

Find the shadow that fits

02 / Shadow layers

Tune each layer

1 / 8

Earlier layers sit on top within each shadow type. Select a layer to edit; inner and outer shadows can share the stack.

Edit layer 1

Up to 8 layers. Offsets ±100px, blur 0–200px, spread ±100px.

03 / Live preview

Compare light and dark

Light surface
Dark surface

Preview scale: 82%. Surface, card and corners are for comparison only and are not copied.

04 / CSS

Paste onto your element

Download CSS
box-shadow:
  0px 8px 24px 0px rgba(24, 32, 42, 0.15);

Check clipping and focus outlines in your real component. Settings stay on this page without upload, storage or URL parameters. Build a gradient surface →

How to use this tool

Start from a preset, select a shadow layer, then adjust its offsets, blur, spread, color and opacity. Reorder layers, compare the two surfaces, and copy the declaration onto your element.

When not to use it

The editor handles box shadows in px, not text-shadow, drop-shadow(), pseudo-elements or arbitrary CSS imports. Test clipping, focus visibility and paint performance in the receiving component.

Need angled or polygonal surfaces? Open the clip-path generator.

Need rounded or elliptical corners? Open the border radius generator.

Design text shadows and glow →

Read the guide →