Box Shadow Generator

Build layered CSS box shadows with a live preview, then copy them as plain CSS or a Tailwind arbitrary value.

Start from a preset
Layers
Horizontal offset0px
Vertical offset10px
Blur24px
Spread-4px
Opacity0.28
Colour
Preview
CSS
box-shadow: 0px 10px 24px -4px rgba(13, 13, 18, 0.28);
Tailwind
shadow-[0px_10px_24px_-4px_rgba(13,_13,_18,_0.28)]

How to Build a CSS Box Shadow

1

Start from a preset

Pick subtle, card, floating or inner as a base. Presets are a faster starting point than dragging from zero, and the card and floating ones already use two layers.

2

Tune the layers

Adjust horizontal and vertical offset, blur, spread, colour and opacity. Add more layers to build depth: real shadows are usually a tight dark one plus a wide soft one.

3

Copy CSS or Tailwind

The preview updates instantly. Copy the plain CSS declaration for a stylesheet, or the Tailwind arbitrary value if you are working in a utility-first project.

Features

Unlimited shadow layers, each edited independently
Live preview on a real element
Horizontal offset, vertical offset, blur, spread, colour and opacity
Inset shadows for inner depth
Four presets covering the common cases
Plain CSS output ready to paste into a stylesheet
Tailwind arbitrary value output for utility-first projects
Free, browser based, with no sign-up

Frequently Asked Questions

In order: horizontal offset, vertical offset, blur radius and spread. Offsets move the shadow, blur softens its edge, and spread grows or shrinks the whole shape before the blur is applied to it.

Real shadows are not a single blur. Stacking a tight, darker layer close to the element with a wider, softer layer underneath reads as genuine depth, which is why the card and floating presets both use two.

It draws the shadow inside the element instead of outside, which is how you get a pressed or recessed look for inputs, wells and toggles.

Paste it as a class. It uses Tailwind's arbitrary value syntax with underscores instead of spaces, which is required because a class name cannot contain spaces.

Yes, and it is genuinely useful. A negative spread pulls the shadow in so it peeks out only at the bottom, which is the usual trick for a soft, grounded card shadow.

A black shadow has almost no contrast on a dark background. On dark surfaces, either raise the opacity considerably or use a lighter shadow colour with low opacity for a glow instead.

A few static shadows are fine. Very large blur radii on many elements, or animating a box shadow, can cost repaint time; animating opacity on a pseudo-element is the usual workaround.

Yes, completely free with no sign-up and no watermark on the output.

Need a Custom Tool or Application?

We build production-grade web applications, SaaS platforms, and developer tools. Let's talk about your project.

or book a free call