Article
Designing Beautiful Shadows in CSS
Josh W. Comeau
Read on joshwcomeau.com
(opens in a new tab)
1 highlight ·
Sep 2021
15 Sep 2021
Here's the first trick for cohesive shadows: every shadow on the page should share the same ratio. This will make it seem like every element is lit from the same very-far-away light source, like the sun.