Drop shadow

Also called box shadow or elevation

A shadow cast behind an element to make it look raised off the page, with larger, softer shadows signaling higher elevation.

What is Drop shadow?

A drop shadow is a darker, blurred copy of an element’s outline, usually offset downward as if light came from above. Small, tight shadows make a card look slightly raised; larger, softer, fainter shadows make a menu or dialog look like it floats. Design systems turn this into a short scale of elevation levels.

CSS offers two tools. box-shadow follows the element’s box and corner radius, supports spread and inset shadows, and stacks several layers for realistic depth. filter: drop-shadow() follows the visible shape instead, including transparent PNGs, SVG icons, and tooltip arrows, but has no spread or inset.

Layer two or three shadows, a tight one for contact plus a wide, faint one for ambient light, for depth that looks natural. Shadows barely show in dark mode, so lighter surfaces and subtle borders do more of the work there.

Often confused with

Glow effect
A glow is centered, colored light that draws attention. A drop shadow is dark and offset, and it shows how high an element sits.
All terms

Glow effect

A soft halo of colored light around a button, card, or text, made with colored shadows or a blurred layer behind the element.

Neumorphism

A soft UI style where buttons and cards look pushed out of, or pressed into, a surface of the same color, using light and dark shadows.

Card

A bordered, rounded container that groups one item’s image, title, details, and actions so it can sit in a list or grid with others.

Z-index

A CSS property that decides which element appears on top when elements overlap, with higher numbers sitting closer to the viewer.