CSS Box Shadow Generator

Paste a box-shadow value, stack layers visually, and copy CSS, Tailwind, or Bootstrap. Multi-layer and inset supported. Shareable URL. Generated in your browser, never sent.

Loading…
CSS Box Shadow Generator
Paste a CSS box-shadow, tweak layers visually, and copy CSS, Tailwind, Bootstrap, or a design token. Multi-layer and inset shadows, plus a shareable URL, all local in your browser.

Developer notes

Parser accepts rgba/hex/hsl/named colors; calc(), var(), oklch(), and color-mix() are rejected in v1. layerMode single exports only layer 1 while preserving a multi-layer paste in memory until you switch back. The editor shows a hint. rem export uses a 16px root; preview always renders in px. Preview shape and background are URL state, not exposed options. Tailwind nearest matching uses the v4 --shadow-* scale, same layer count, ±1px.

Options

  • Layer mode — Single layer keeps the UI focused on one shadow. Multi-layer lets you add, remove, reorder, and stack up to eight shadows.
  • Export format — Clipboard payload: CSS declaration, --shadow-card custom property, Tailwind class/token, or Bootstrap shadow utility with inline style fallback.
  • Unit — Suffix on exported numeric lengths. Use px, the DevTools default, or rem with a 16px root for design-system tokens.
  • Tailwind mapping — When exporting Tailwind: nearest shadow-* utility with shadow-[…] fallback, arbitrary only, or a token block in @theme.

Related CSS tools

Hub: Color & CSS Tools. Round corners with CSS Border Radius Generator, convert colors with Color Converter, or format CSS with Minify CSS.

CSS Box Shadow Generator FAQ

Local editor for layered shadows

Can I paste a multi-layer box-shadow from DevTools?

Yes. Paste comma-separated layers with inset, rgba(), or hex colors. More than eight layers are truncated with a notice.

What does single-layer mode do?

It hides add/remove/reorder controls and exports only the first layer. Extra pasted layers stay in memory. Switch back to multi-layer to edit them.

How does Tailwind export work?

Choose the nearest utility + arbitrary fallback, arbitrary only, or a --shadow-card block in @theme plus a shadow-card utility.

Is my CSS uploaded anywhere?

No. Parsing and preview run entirely in your browser.

Check WCAG contrast, convert CSS colors and units, and generate shades, border-radius and box-shadow code in your browser.