CSS Box Shadow & Border Radius Generator
Dial in a box shadow and border radius with sliders, watch the preview update, and copy the CSS.
Preview
Shadow layers
Corner radius
Presets
Generated CSS
About the box shadow generator
Box shadow takes five values and border radius takes up to eight, which is more than anyone wants to tune by editing a stylesheet and reloading. Drag the sliders here and the preview updates instantly. Multiple shadow layers are supported, which is how convincing depth is actually built: a tight, dark shadow close to the element for contact, plus a wider, softer one for ambient light. Each corner radius can be set independently for asymmetric shapes.
How to use the box shadow generator
- Adjust the horizontal and vertical offset to set the shadow direction.
- Increase blur for a softer shadow and spread to make it larger overall.
- Set the shadow color and opacity, and toggle inset for an inner shadow.
- Set the corner radii, then copy the generated CSS.