How to use
- Adjust the primary shadow properties: horizontal (X) and vertical (Y) offsets, blur radius, spread radius, and shadow color.
- Click "+ Add Layer" to combine multiple shadow levels for natural depth and realistic light diffusion.
- Or select a preset elevation level, ranging from subtle card outlines to floating dialog elevations.
- Copy the generated standard CSS box-shadow property or Tailwind arbitrary class in a single click.
FAQ
Why are multi-layered box shadows superior to single shadows?
Natural ambient lighting never casts a single uniform shadow. Stacking two or more shadows with subtle opacities and graduated blur radii mimics real-world ambient occlusion, producing clean, tactile, and modern UI surfaces.
What is the difference between blur radius and spread radius?
Blur controls the gradient softness of the shadow edges, while spread physically expands or contracts the shadow footprint relative to the box dimensions before blurring takes effect.
When should I use inset box shadows?
Inset shadows render inside the element perimeter, ideal for depicting sunken surfaces, recessed form inputs, active toggle switches, or depressed button states.
How do I integrate the generated code into Tailwind CSS?
You can copy the arbitrary utility class directly into your HTML elements (such as shadow-[0_4px_6px_rgba(...)]) or paste the CSS rules into your tailwind.config.js theme extension.