CSS box shadow generator

A box shadow generator builds the CSS box-shadow value: horizontal and vertical offset, blur, spread, color and an optional inset keyword.

How to use the box shadow generator

  1. Move the sliders for the first layer.
  2. Add layers for more depth.
  3. Copy the CSS.

Making shadows look natural

Combine a small, sharp shadow with a large, soft one at low opacity, and keep one light direction across the interface.

Frequently asked questions

What does spread do?

It grows or shrinks the shadow before blurring.

What is an inset shadow?

A shadow drawn inside the box, which looks pressed in.

Do shadows work in dark mode?

They are hard to see on dark backgrounds, so use lighter surfaces to show elevation.

Related tools