CSS Box Shadow Generator
Stack up to 5 smooth elevation layers with X/Y offset, blur, spread, opacity, color, and inset controls. Start from 8 curated Stripe, Glass, Neumorphic, and Brutalist presets and copy pure CSS, Tailwind utility classes, or CSS variables.
Layered Surface Card
Smooth multi-stop CSS shadows mimic ambient contact light plus soft directional depth.
Surface & card styling
.shadow-card {
box-shadow:
0px 1px 2px 0px rgba(30, 27, 75, 0.05),
0px 6px 10px -2px rgba(30, 27, 75, 0.07),
0px 16px 26px -6px rgba(30, 27, 75, 0.1),
0px 34px 56px -12px rgba(49, 46, 129, 0.14);
}Shadow layers (4/5)
FAQ
Why do smooth UI shadows use multiple CSS box-shadow layers?
Real-world surfaces cast both a tight ambient contact shadow and a wider directional key shadow. Stacking 2 to 4 CSS box-shadow layers with increasing blur and vertical offset mimics natural light falloff and eliminates harsh muddy edges.
What does negative spread do in CSS box-shadow?
Use a negative spread value (for example -4px to -12px) on deeper ambient layers so the shadow tapers gently underneath the card instead of blooming out around the left and right edges.
How do I use a multi-layer box-shadow in Tailwind CSS?
Switch the export panel to Tailwind Utility to copy a valid shadow-[...] arbitrary class with spaces converted to underscores. Drop it straight into any className in Tailwind v3 or Tailwind v4.
Can I mix inset and outer shadows on the same element?
Yes. Toggle Inset on any individual layer to combine inner top rim-lights (inset 0px 1px 0px rgba(255,255,255,0.16)) with outer drop shadows—the exact technique behind Glass Glow and dark-mode modal elevations.
Are multi-layer CSS box shadows performant?
Standard CSS box-shadow layers are GPU-composited and fast for static cards. If you animate shadow depth on hover, transition opacity on a pseudo-element rather than animating large blur radii every frame.
More Free Design Tools
View all tools →Google Font Pairings Generator
16 curated Google Font heading + body pairings with live editable preview, Google Fonts link & Tailwind v4.
WCAG Color Contrast Checker
Check WCAG AA/AAA & UI contrast in HEX, RGB or OKLCH and auto-fix failing pairs in one click.
Retro Color Palette Generator
70s groove, 80s synthwave, 90s Memphis, Y2K Chrome, Mid-Century, Bauhaus & Kodak Film palettes.
Aesthetic Color Palette Generator
Matcha & Cream, Dark Academia, Japandi, Pastel Dream & harmony sliders with WCAG badges.
Brand Guidelines Generator
Build a live mini brand book and export HTML brand sheet, BRAND.md or CSS design tokens.
Gradient Border CSS Generator
Rounded & transparent CSS border gradients with padding-box, mask-composite & Tailwind v4.
Tailwind v4 Palette Generator
Perceptually uniform 50–950 Tailwind v4 OKLCH scales and dark-mode palettes.
OKLCH Color Converter
Convert HEX to OKLCH and OKLCH to HEX with live Lightness, Chroma & Hue sliders.
CSS Glassmorphism Generator
Frosted-glass CSS & Tailwind v4 cards with live backdrop-filter blur and saturation.