Build a restrained shadow beneath a card
Example input
x = 0 · y = 4 · blur = 12 · spread = 0
#000000 · 0.15Expected result
0px 4px 12px 0px rgba(0, 0, 0, 0.15)Keep inset off, set the offsets and blur as shown and choose fifteen percent opacity. The generated value places a soft dark shadow below the element without expanding its unblurred size. Check it on both the intended card color and the surrounding page background: a convincing preview on white can look heavy or disappear in a dark theme.