๐Ÿ”’ Runs in your browser โ€” nothing is uploadedโœ“ Free, no signup

CSS Box Shadow Generator

Adjust offset, blur, spread, color and opacity with sliders, stack several layers for soft realistic shadows, and copy the CSS or Tailwind class.

Presets

CSS

box-shadow: 0px 10px 25px -5px rgba(0, 0, 0, 0.2);

Tailwind class

shadow-[0px_10px_25px_-5px_rgba(0,0,0,0.2)]

Layers

Preview

When should you use the Box Shadow Generator?

  • Designing card, button and modal shadows
  • Creating soft layered shadows that look natural
  • Converting a shadow into a Tailwind arbitrary class

How to use the Box Shadow Generator

  1. 1

    Start with a preset

    Soft, Subtle, Layered, Floating, Sharp, Inset or Glow.

  2. 2

    Adjust the layer

    Change offsets, blur, spread, color and opacity, or make it inset.

  3. 3

    Add layers

    Stack shadows โ€” a tight one plus a wide, faint one looks most natural.

  4. 4

    Copy

    Copy the CSS box-shadow or the Tailwind class.

Examples

Soft preset

Layer

x 0 ยท y 10 ยท blur 25 ยท spread -5 ยท black at 20%

CSS

box-shadow: 0px 10px 25px -5px rgba(0, 0, 0, 0.2);

Common errors and how to fix them

The shadow looks harsh
Lower the opacity to 10โ€“20% and increase blur, or add a second, larger and fainter layer.
The shadow is clipped
A parent with overflow: hidden cuts off shadows. Add padding to the parent or remove the overflow.
Related tools:ย Border Radius Generator ยท Glassmorphism Generator ยท Text Shadow Generator

More from Design & Color

Free tools that run in your browser โ€” no signup, nothing uploaded.

Box Shadow Generator FAQ

In order: horizontal offset, vertical offset, blur radius, spread radius and color โ€” plus inset for inner shadows.

Positive spread grows the shadow beyond the element; negative spread shrinks it, which helps soft shadows look like they sit under the element.

Yes. Separate them with commas โ€” the first is drawn on top. Layered shadows look more realistic.

Copy the Tailwind class, which uses an arbitrary value like shadow-[0px_10px_25px_-5px_rgba(0,0,0,0.2)].

No. Shadows don't take up space or move other elements.

No. Everything runs in your browser, so your data never leaves your device.