Depth cues come from shadow-sm through shadow-2xl and from ring-* utilities that draw focus-friendly outlines without fighting border radius.
Shadow vs ring
- Shadow — elevation and card separation (
shadow-md) - Ring — faux outline using box-shadow; great for focus and selected states (
ring-2 ring-indigo-500)
Rings follow border radius; use ring-offset-2 when you need a gap between ring and control edge—common on buttons.
Self-check
- When would you pick
ringoverborder-2? - What does
shadow-nonehelp you reset?