Box Shadow Generator
Create beautiful CSS box shadows with multiple layers, inset support, and live preview.
0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.06).shadow { box-shadow: 0px 4px 6px -1px rgba(0, 0, 0, 0.1), 0px 2px 4px -1px rgba(0, 0, 0, 0.06); }shadow-[0px_4px_6px_-1px_rgba(0,_0,_0,_0.1),_0px_2px_4px_-1px_rgba(0,_0,_0,_0.06)]What Box Shadow Does
Box shadow adds depth to elements without images. You can stack multiple shadows, push them in any direction, blur the edges, and even create inner shadows for inset effects.
The syntax looks intimidating at first - offset-x, offset-y, blur, spread, color, inset - but each property does one thing. This generator shows you what each value actually does before you copy the CSS.
Box Shadow Properties
When to Use Box Shadow
Card elevation
Subtle shadows make cards appear to float above the background. Use low opacity (0.05-0.15) with moderate blur for a natural look.
Button states
Increase shadow on hover to simulate lifting. Decrease or use inset shadow for pressed states.
Focus rings
Colored shadows create visible focus indicators without affecting layout. Better than outlines for custom designs.
Tips for Natural Shadows
- Use multiple layers: Stack 2-3 shadows with different blur values for realistic depth.
- Keep opacity low: Real shadows are subtle. Start at 0.1 and adjust from there.
- Match your light source: If shadows go down-right, keep all elements consistent.
- Colored shadows: Use your brand color at very low opacity for a modern touch.
What Box Shadow Does
Box shadow adds depth to elements without images. You can stack multiple shadows, push them in any direction, blur the edges, and even create inner shadows for inset effects.
The syntax looks intimidating at first - offset-x, offset-y, blur, spread, color, inset - but each property does one thing. This generator shows you what each value actually does before you copy the CSS.
Box Shadow Properties
When to Use Box Shadow
Card elevation
Subtle shadows make cards appear to float above the background. Use low opacity (0.05-0.15) with moderate blur for a natural look.
Button states
Increase shadow on hover to simulate lifting. Decrease or use inset shadow for pressed states.
Focus rings
Colored shadows create visible focus indicators without affecting layout. Better than outlines for custom designs.
Tips for Natural Shadows
- Use multiple layers: Stack 2-3 shadows with different blur values for realistic depth.
- Keep opacity low: Real shadows are subtle. Start at 0.1 and adjust from there.
- Match your light source: If shadows go down-right, keep all elements consistent.
- Colored shadows: Use your brand color at very low opacity for a modern touch.