0

Card Shadow CSS — Subtle box-shadow Code

Build CSS box-shadow code visually: sliders for offset, blur, spread, color with opacity, inset mode and up to four layers with a live preview.

0px
4px
12px
0px
0.25
Processing... 0%

Result

This page opens the box-shadow generator preset to a classic card shadow: 2px down, 8px blur, 15% black opacity. It is deliberately quiet — enough to separate a card from the page without announcing itself — and the preview shows exactly how quiet.

This range corresponds to the lowest elevation steps in most design systems: list cards, dropdown menus, popovers and table rows on hover. If you need a stronger lift for modals or floating panels, raise the Y offset and blur together — they should grow in proportion to keep the light source believable.

Copy the box-shadow line into your component styles, or duplicate it as a second layer with a tighter blur to add edge definition. The tool is free and runs entirely in your browser.