Shadows add depth cues and hierarchy. Use restraint to avoid muddy, over-designed interfaces.
Shadow decisions
- Smaller blur for subtle separation.
- Larger soft shadow for floating overlays.
- Consistent elevation scale across components.
Pitfall
Heavy multi-layer shadows on many elements can increase paint cost and visual noise.
Important interview questions and answers
- Q: Box-shadow vs drop-shadow filter?
A: Box-shadow follows box shape; filter drop-shadow follows alpha silhouette. - Q: Why use elevation tokens?
A: Predictable hierarchy and easier theme tuning. - Q: Common card shadow mistake?
A: Same heavy shadow everywhere, removing hierarchy meaning.
Practice: Change one property in the playground and observe cascade + layout in DevTools.