Smart Box Shadow Generator
Create beautiful modern shadows visually with live UI previews, layered shadows, neumorphism, glow effects, and production-ready CSS / Tailwind / React export.
How to use
Pick a preset (optional)
Start from a Soft Card, Floating UI, Material Elevation, Apple Card, Neon Glow or Neumorphism preset — or build from scratch with the default single layer.
Adjust shadow layers
Edit the active layer's X/Y offset, blur, spread, colour, opacity and inset. Click a layer in the list to make it active; use Add Layer for realistic multi-shadow depth.
Pick an Apply Mode
Switch between Card, Button, Input, Floating Panel, Modal, Glass, Glow, and Neumorphism — each shows a real component using your shadow so you can validate it in context.
Copy the implementation
Choose CSS, HTML, Tailwind arbitrary value, or React JSX — or click Copy Full Pack to copy all four at once into your project.
When to use modern box-shadows
Elevated cards
Dashboard cards, pricing tiers, and product cards use shadows to lift content off the page and signal that it's an interactive surface.
Action buttons
Primary CTAs use a soft shadow to feel raised and clickable; the shadow can grow on hover for a tactile push-up effect that boosts perceived responsiveness.
Modals & popovers
Large diffuse shadows establish that a modal or dropdown is floating above the page content and that the underlying page is temporarily inactive.
Glass / blurred UI
Combined with backdrop-filter blur, soft outer shadows give translucent glass cards depth without losing their see-through quality.
Glow & gaming UI
Coloured 0-offset shadows with large blur produce vivid neon glows — staple of cyberpunk, gaming and dark-mode SaaS dashboards.
Neumorphism / Soft UI
Dual light + dark shadows on a flat background create the soft-plastic embossed look popularised by neumorphic design systems and smart home apps.
How it works
Layered engine
Each layer stores X, Y, blur, spread, hex colour, opacity, and inset flag. The output is built by joining layer strings with commas — CSS composites them automatically from front to back.
Real component previews
Switch the Apply Mode to render the current shadow on a real card, button, input, modal, glass surface, glow button, or neumorphism panel so you can validate the effect in context.
Tailwind exporter
Custom shadows are emitted as Tailwind 3+ arbitrary values (shadow-[…]) with underscores replacing spaces — copy-pasteable directly into JSX className strings.
4-format export
Every change regenerates CSS, HTML, Tailwind arbitrary value, and a complete React component all at once — copy a single tab or the full pack with one click.
Related tools
Frequently asked questions
Quick answers about this free online tool.
