CSS box-shadow generator.
Create soft, layered or hard shadows for cards and buttons. Stack several layers for a natural look and copy the CSS.
Runs in your browser. Nothing you enter is sent to KRA Digital or anyone else.
How to use it
- Start from a preset such as Layered or Soft.
- Adjust each layer’s offsets, blur, spread, colour and opacity, or tick Inset.
- Change the background and box colours to match your design.
- Copy the CSS into your stylesheet.
Questions
Why use several shadow layers?
Real shadows are sharp near an object and soft further away. Combining a tight, faint layer with a larger, softer one looks more natural than one big blur.
Do shadows slow pages down?
Static shadows are cheap. Animating large, blurry shadows can cost performance on low-end devices; animate opacity of a pseudo-element instead.
How do shadows work in dark mode?
Dark shadows barely show on dark backgrounds. Many dark themes use lighter surfaces or subtle borders to show elevation instead.
Read more
Related tools
- Design
CSS gradient generator
Design linear, radial and conic CSS gradients with up to five colour stops.
Open - Design
Colour converter
Convert any CSS colour between HEX, RGB, HSL, HWB, OKLCH and CMYK.
Open - Design
Colour contrast checker
Check text and background colours against WCAG 2.2 AA and AAA, and get a passing alternative.
Open