CSS Box Shadow Generator

Shadow preview

Create CSS box shadows online for free. Drag the sliders for offset, blur, spread and opacity, switch on inset for an inner shadow, or stack a second softer layer underneath. Watch the live preview update and copy the CSS or a Tailwind class — no signup, everything in your browser.

Frequently asked questions

What do blur and spread do?

Blur softens the edge of the shadow — a bigger blur makes a softer, more diffused shadow. Spread grows or shrinks the shadow in all directions: positive spread makes it larger, negative makes it smaller.

What is an inset shadow?

An inset shadow is drawn inside the element instead of outside it, which makes the element look pressed in or hollow — useful for input fields and neumorphic designs.

Why use two shadow layers?

One sharp layer gives the shape and one large soft layer gives the atmosphere. Stacking a small dark shadow with a big faint one looks far more realistic than a single shadow.

What is a neumorphic shadow?

Neumorphism pairs a light shadow on one side with a dark shadow on the other, on a background close to the element’s own color, so the element looks embossed. It looks soft but can be hard to read — use it for decoration, not for text.