How to use it
- Set the offsets, blur, spread, color and opacity of the first layer.
- Add more layers for softer, more realistic shadows.
- Press Copy CSS.
How it works
Each layer is written as: [inset] x-offset y-offset blur spread color. Blur softens the edge, spread grows or shrinks the shadow, and a color with opacity is written as rgba(). Layers are separated by commas, with the first layer on top.
Examples
- 0 4px 12px 0 rgba(0, 0, 0, 0.25) is a soft shadow below a card.
Limitations
- The preview shows one box on a plain background; check the shadow on your real design, including dark mode.
- Large blurs on many elements can slow down older devices.
References
Last verified . See our Accuracy & Editorial Policy. Found a problem? Email contact@tools.gift.