Design soft shadows for cards and buttons with a live preview: offset, blur, spread and opacity, with layered shadows that look more natural, then copy the code.
Three light layers look more real than one heavy shadow.
A colour from your brand
A translucent navy or deep violet shadow looks better than grey black.
One light source
Keep every shadow on the page in the same direction.
Using shadows in the interface
Do
Light shadows for cards, stronger ones for pop-ups
Raise the shadow slightly on hover for a lift effect
Avoid
Heavy shadows on every element
Very dark shadows on dark backgrounds where they vanish
Example: service cards that lift on hover
Give the card a soft one or two layer shadow normally and a slightly stronger one on :hover, plus transition: box-shadow .2s. Visitors feel the card is clickable with no extra images.
Key terms
Short definitions of what you meet along the way.
box-shadow
A CSS property that draws a shadow with offset, blur, spread and colour.
Blur
The higher it is, the softer and wider the shadow.
We use necessary cookies to run the site, and Google Analytics to measure visits only if you agree. You can change your choice at any time from “Cookie settings”. Privacy policy