Designing shadows with precision
CSS box shadows are a surprisingly expressive tool. With just offset, blur, spread, colour, and inset, you can suggest elevation, depth, focus, and material texture. A single shadow can create a subtle hover cue; layered shadows can simulate realistic multiple-light-source environments.
This tool gives you full control over every parameter with live preview. Toggle inset to switch between drop shadows and inner shadows, and stack multiple shadows to build complex effects that are tedious to code by hand.
Understanding the parameters
- Offset X / Y — move the shadow right/down (positive) or left/up (negative).
- Blur — controls softness. Zero produces a sharp shadow; higher values spread the shadow edge.
- Spread — expands (positive) or contracts (negative) the shadow size from the element bounds.
- Inset — renders the shadow inside the element for a recessed effect.