Images & Colors tool
✦ Browser-firstCSS Box Shadow Generator
Design layered box shadows visually and copy the CSS.
Preview
About this tool
Build smooth, layered CSS box shadows with sliders for offset, blur, spread, color and opacity, including inset shadows, and copy the finished code.
How to use the CSS Box Shadow Generator
- Adjust offset, blur, spread and opacity for the first layer.
- Add more layers for softer, more realistic depth.
- Copy the box-shadow CSS.
Common uses
- Cards and buttons
- Elevation systems
- Inset and pressed effects
CSS Box Shadow Generator questions
Why use several shadow layers?
Stacking a tight shadow with a wide soft one looks more natural than a single shadow.
What does spread do?
It grows or shrinks the shadow before blur is applied. Negative values pull it inward.
Do shadows affect performance?
Large blurs on many elements can be costly while animating, so use them sparingly on moving items.