Create, preview, customize, and copy beautiful CSS box shadows in real time.
Inspired by popular shadow example galleries and built for real UI work.
Click any card to load the shadow into the generator above, or copy it directly.
Everything you need to know about CSS box shadows.
The box-shadow CSS property adds shadow effects around an element's frame. Syntax: box-shadow: offset-x offset-y blur-radius spread-radius color. The inset keyword makes the shadow appear inside. Multiple shadows can be stacked by separating with commas.
Add the inset keyword before the shadow values: box-shadow: inset 0 2px 8px rgba(0,0,0,0.2). Inset shadows appear inside the element — useful for pressed button states, recessed inputs, or inner depth effects.
Yes — separate multiple shadow values with commas: box-shadow: 0 2px 4px rgba(0,0,0,0.1), 0 8px 24px rgba(0,0,0,0.15). Shadows render front-to-back, first value on top. Layering shadows creates more natural, multi-depth effects.
Common causes: overflow: hidden on a parent clips the shadow; a higher z-index element covers it; the shadow color matches the background; or the element has no defined size. Ensure the element has a visible background and sufficient padding.