Box Shadow Generator

Build soft, realistic shadows by layering several box-shadows, as modern UI kits do.

Runs in your browser. Nothing is uploaded Free, no sign-up Works on mobile
box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1),
    0px 10px 15px -3px rgba(0, 0, 0, 0.1);
border-radius: 16px;
Horizontal offset: 0
Vertical offset: 4
Blur: 6
Spread: -1
Opacity %: 10
Corner radius: 16px

How to use Box Shadow Generator

  1. Adjust offset, blur, spread and opacity of each shadow.
  2. Add more layers for softer, more natural depth.
  3. Copy the CSS.

Frequently asked questions

Why use more than one shadow?

Real shadows have a sharp contact shadow and a soft ambient one. Two or three layers look more natural than a single large blur.

What does inset do?

It draws the shadow inside the element, which is useful for pressed buttons and input fields.

Related tools

All Developer Tools →