Box Shadow Generator

Layers

Live preview
CSS

Layering is the usual trick: one tight shadow, one soft and distant.

What is Box Shadow Generator?

A good shadow is what makes a card float off the page. This generator lets you design box-shadows visually instead of hand-editing numbers: drag the sliders, watch the preview update instantly, and copy the finished CSS when it looks right.

Layering is the secret of natural-looking shadows. A single hard-edged shadow reads as fake; combining a tight, dark shadow with a wider, faint one gives depth. Use the layer buttons to stack up to several shadows — the output code composes them into one box-shadow declaration automatically.

Every control maps one-to-one to the CSS syntax: X and Y are the offsets in pixels, blur softens the edge, spread grows or shrinks the shadow shape, the alpha slider controls how transparent the colour is, and the inset switch turns the shadow inward for pressed or engraved effects.

Negative spread with a large blur produces the soft "floating card" look popular in modern design systems; large Y offsets with low blur produce long, directional shadows for a sunlit feel. Both start points are pre-loaded so you can see each pattern immediately.

Frequently asked questions

How do I make a soft, modern shadow?

Two layers: blur 24px with 35% opacity for definition, plus blur 48px, spread -12px and 20% opacity for the soft halo. That pair is pre-loaded when the page opens.

Why does my shadow look like a box?

Zero blur produces a hard-edged copy of the element — useful for sticker effects, but raise the blur for anything that should look natural.

Can I use several shadows at once?

Yes — add layers with the + button. The output joins them with commas, which is exactly how CSS composes multiple shadows (topmost layer first).