CSS Box Shadow Generator
Build CSS box-shadow values with offset, blur, spread, color, inset and extra layers. Presets include Tailwind shadows, smooth layered and neumorphism.
The CSS box-shadow property draws one or more shadows around (or inside) an element without images. This generator writes the value from offsets, blur, spread, color and opacity, validates any extra layers you add, and renders the result on a sample card in your own browser, so the preview is exactly what the CSS produces. Presets include the Tailwind CSS shadow scale, a smooth five-layer shadow, a focus ring and a neumorphic pair.
How to use this tool
- Pick a preset, or keep "Custom" and set the offsets, blur, spread, color and opacity.
- Tick Inset for an inner shadow.
- Add extra layers, one per line, for layered or ring effects.
- Copy the CSS line; adjust the preview card and background colors to match your page.
Formula
box-shadow: [inset] <x> <y> <blur> <spread> <color> [, more layers]
Positive x moves the shadow right and positive y down. Blur softens the edge (it cannot be negative); spread grows or shrinks the shadow before blurring — a negative spread keeps a large blur from peeking out at the sides.
Example
The defaults — 0 px across, 8 px down, 24 px blur, −4 px spread, black at 20% — give box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.2);, a soft shadow that sits below the card. Adding the layer 0 0 0 1px red outlines the card with a 1 px ring without changing its size.
Frequently asked questions
Does box-shadow affect layout?
No. Shadows are painted outside the box without taking space, so they never move other elements. That is also why 0 0 0 1px rings are popular instead of borders.
Why are realistic shadows made of several layers?
Real shadows have a sharp core near the object and a soft spread further away. Stacking two to five shadows with growing offsets and blur imitates this better than one big blur.
Is box-shadow slow?
Static shadows are cheap. Animating a large blur can cost frames on low-end phones; animate opacity of a pseudo-element with the shadow instead.
Sources
Last updated:
Page address with these inputs: https://kakao.mobile/tools/css-box-shadow-generator/
Cite or embed this tool
kakaoCalc. (2026, November 8). CSS Box Shadow Generator. https://kakao.mobile/tools/css-box-shadow-generator/
“CSS Box Shadow Generator.” kakaoCalc, 8 Nov. 2026, kakao.mobile/tools/css-box-shadow-generator/.
Paste this code into your page. The widget runs in your visitors' browsers, shows no ads and keeps a link back to this page. Embedding terms