Skip to content
hateitall

Box Shadow Generator

Stack several soft shadows into one natural looking elevation and copy the exact CSS.

Processed locallyIn: Number, ColourOut: CSS, Tailwind classes

Loading tool…

How to use box shadow generator

  1. Pick a preset such as Smooth layered, Floating or Hard offset, or start from the default.

  2. Select a layer and set its x and y offset, blur, spread, colour, opacity and inset.

  3. Add, hide, reorder or remove layers until the preview looks right on both backgrounds.

  4. Set the box colour and corner radius, then copy the CSS or the Tailwind classes.

What this tool does

  • Up to 10 shadow layers, each with its own offset, blur, spread, colour, opacity and inset switch.
  • Shows the same box on a light and a dark background side by side, so you catch shadows that vanish in dark mode.
  • Writes one layer per line in the CSS and a matching shadow-[...] arbitrary value for Tailwind.
  • Hidden layers are left out of the code, so you can compare with and without a layer.

How the result is verified

The preview element uses the exact box-shadow string shown in the code box, so what you see is what you copy. Paste it into your stylesheet and compare against the preview.

Frequently asked questions

Why stack several shadows instead of one big blur?

Real objects cast a tight dark shadow close to them and a wide faint one further away. Several layers with growing offset and blur, each at low opacity, imitate that and look softer than a single large shadow.

Which layer is drawn on top?

The first shadow in the list. CSS paints box-shadow layers front to back in the order written, which is why the Up and Down buttons change the look when layers overlap.

Is my data uploaded to a server?

No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.

Layered text-shadow with neon, 3D, outline and long shadow presets

Text · Number · Colour→ CSSLight on device

Soft UI shapes for light and dark mode with a WCAG text contrast check

Number · Colour→ CSSLight on device

Thick borders, hard shadows, press states and a text contrast check

Number · Colour · Text→ CSSLight on device

Frosted glass cards with backdrop blur, preview and a no-blur fallback

Number · Colour→ CSSLight on device

Per-corner and elliptical border-radius with shortest shorthand output

Number · Colour→ CSSLight on device