Box shadow generator
A good shadow lifts cards, buttons and pop-ups off the page — a bad one looks muddy. This box shadow generator lets you tune every part of the CSS box-shadow with sliders: horizontal and vertical offset, blur, spread, colour and opacity, plus inset for pressed-in effects. Start from presets such as Subtle, Floating, Hard retro or a realistic two-layer shadow, check it on your own box and corner radius, and copy ready-to-paste CSS.
How to use it
- Pick a preset or move the sliders.
- Set the box colour and corner radius to match your design.
- Copy the CSS into your stylesheet.
Example
box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.18); is a soft shadow that suits most cards: it sits 8px below the box, blurs over 24px and is 18% black. Pair it with a background from the CSS gradient generator, and check colour codes with the colour converter.