Shadow
Appearance
Renders the shadow inside the element instead of outside
Preview Settings
Preview
Generated CSS
.element {
box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.18);
}box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.18);
Generate custom CSS box shadows with live preview. Adjust offset, blur, spread, color, opacity, and inset shadow, then copy clean CSS instantly.
Renders the shadow inside the element instead of outside
.element {
box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.18);
}box-shadow: 0px 8px 24px 0px rgba(0, 0, 0, 0.18);
The CSS box-shadow property adds a shadow effect around an HTML element's frame. It accepts values for horizontal offset, vertical offset, blur radius, spread radius, and color. An optional inset keyword renders the shadow inside the element border rather than outside.
Box shadows are widely used to add visual depth to cards, buttons, modals, and images — helping elements appear elevated or interactive without additional markup or images. Multiple shadows can be layered by comma-separating values for more sophisticated effects.
Need to pick or convert a shadow color? Use the Color Converter →
Coming soon: CSS Box Shadow Design Patterns
A practical guide covering shadow design tokens, multi-layer shadows, performance considerations, inset shadow techniques, and real-world examples from popular UI frameworks and design systems.
Have feedback or a suggestion? Let us know.