Skip to main content

CSS Box Shadow Generator

Design smooth multi-layer CSS box-shadow elevations with offset, blur, spread, opacity, and inset controls.

Runs on your deviceControls → CSS
Elevation Preview
Shadow Layers (2)
Layer #1
Layer #2
box-shadow: 0px 18px 40px -12px rgba(59, 40, 204, 0.28), 0px 4px 12px -2px rgba(15, 23, 42, 0.12);

How to use

  1. 01.

    Adjust horizontal/vertical offsets, blur radius, spread, shadow color, and opacity.

  2. 02.

    Add multiple layers for realistic soft ambient + contact shadows, or toggle inset.

  3. 03.

    Copy the generated CSS box-shadow rule directly into your styles.

Layered shadows for natural UI depth

Combining a tight contact shadow with a wide diffused ambient shadow creates far cleaner elevation than a single heavy blur.

Limits & privacy

  • Instant local preview and CSS output.

Frequently asked questions

Why use two shadow layers instead of one?

A tight low-blur layer anchors the card edge while a softer, higher-blur layer simulates natural ambient light.