CSS Box Shadow Generator
Build, layer, preview, and export CSS box shadows and Tailwind arbitrary classes.
How to use
Choose a preset or edit each shadow layer's offsets, blur, spread, color, opacity, and inset mode. Reorder layers with the arrow controls, then adjust the preview surface and box colors. The smooth shadow builder creates an eased stack from a layer count and target elevation. Copy the result as a CSS box-shadow declaration, a Tailwind arbitrary shadow class, or a reusable CSS variable.
FAQ
How do layered box shadows create depth?
Several low-opacity shadows with progressively larger offsets and blur radii approximate the gradual falloff of real light better than one heavy shadow.
Can I use the output with Tailwind CSS?
Yes. Copy the generated shadow-[…] arbitrary class. Spaces are converted to underscores while commas preserve multiple shadow layers.
What is an inset box shadow?
An inset shadow is drawn inside the box border, which is useful for pressed controls, recessed surfaces, and inner highlights.