Skip to main content

Box Shadow Generator

Runs locally

Design layered CSS box shadows with inset, presets and Tailwind/SwiftUI/Compose export.

What is Box Shadow Generator?

Craft natural, multi-layered box shadows with negative/positive offsets, blur, spread, color opacity, inset toggle, and Material/soft-UI presets. Export for CSS, Tailwind, SwiftUI, and Jetpack Compose.

How to use Box Shadow Generator

  1. Step 1

    Add or select shadow layers and adjust X, Y, blur, spread, color, and inset.

  2. Step 2

    Preview against light or dark surface backgrounds.

  3. Step 3

    Apply Material elevation or soft shadow presets for instant starting points.

  4. Step 4

    Copy CSS, Tailwind, SwiftUI .shadow, or Compose elevation code.

Features

  • Multi-layer shadow stack with per-layer visibility and reordering
  • Negative and positive X/Y offsets, blur, spread, and inset support
  • Color picker with alpha/opacity control
  • Curated elevation presets (subtle card, modal, soft glow, brutalist)
  • Export CSS, Tailwind arbitrary values, SwiftUI, and Compose

Example

Input

Layer 1: 0 2px 6px rgba(0,0,0,0.12), Layer 2: 0 12px 28px rgba(0,0,0,0.18)

Output

box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12), 0 12px 28px rgba(0, 0, 0, 0.18);

Combining a tight contact shadow with a wide ambient shadow produces realistic depth.

Frequently asked questions

Why use multiple shadow layers?

Real-world elevation combines a tight dark shadow near the object and a softer diffuse shadow.

Does it support inset shadows?

Yes, any layer can be toggled to `inset` for recessed surfaces or inner highlights.

Can I copy Tailwind CSS classes?

Yes, Tailwind arbitrary `shadow-[...]` output is generated alongside standard CSS.

Does it work offline?

Yes, everything runs locally in your browser.