CSS Box Shadow Generator

Design

Generate CSS box-shadow with a visual editor. Adjust blur, spread, offset, and copy code instantly.

Configuration

10px
10px
20px
0px
#000000
Box
CSS Code
box-shadow: 10px 10px 20px 0px rgba(0, 0, 0, 0.25);

What is This Tool?

A CSS box shadow generator creates box-shadow and text-shadow CSS properties with a visual editor. Adjust horizontal/vertical offset, blur, spread, color, and opacity in real time to design perfect shadows, then copy the production-ready CSS code.

CSS box-shadow accepts: offset-x, offset-y, blur-radius, spread-radius, color, and optional inset keyword. Multiple shadows can be layered for complex effects. Modern design trends favor subtle, layered shadows that create depth through elevation rather than harsh drop shadows.

Common Use Cases

UI Component Design

Create elevation-based shadow systems for cards, modals, dropdowns, and floating action buttons.

Material Design

Implement Material Design elevation shadows with the correct multi-layer shadow values for each elevation level.

Neumorphism

Design soft UI (neumorphic) effects using dual shadows — one light, one dark — for the embossed/debossed appearance.

Design System Tokens

Generate consistent shadow tokens for your design system with defined elevation levels (sm, md, lg, xl).

Frequently Asked Questions

Can I use multiple shadows?

Yes. Separate multiple shadows with commas for layered effects. Layering subtle shadows creates more realistic depth than a single heavy shadow.

What is the inset keyword?

inset creates an inner shadow (inside the element) instead of the default outer shadow. Useful for pressed button states and input field styling.

What is the spread radius?

Spread expands (positive) or contracts (negative) the shadow before blurring. Negative spread can create tight, focused shadows smaller than the element.