Shadows
Summary
Three families of shadow, each a scale of Tailwind utilities: shadow-* for elevation,
inset-shadow-* for recessed surfaces, and drop-shadow-* for shapes that are not boxes.
Inherited from Tailwind v4 defaults, not yet a pmndrs decision. See Tailwind's box-shadow docs.
Every shadow is black at low opacity. On a dark surface, the lighter ones barely show. Each
family also has a -none utility that removes the shadow.
Box shadow
shadow-* sets box-shadow from the --shadow-* theme variable:
shadow-2xsshadow-xsshadow-smshadow-mdshadow-lgshadow-xlshadow-2xlInset shadow
inset-shadow-* sets an inner box-shadow from the --inset-shadow-* theme variable. It
stacks with shadow-* on the same element:
inset-shadow-2xsinset-shadow-xsinset-shadow-smDrop shadow
drop-shadow-* applies filter: drop-shadow() from the --drop-shadow-* theme variable. It
follows the painted shape, transparent pixels excluded, so it suits icons, SVGs and cut-out
images:
drop-shadow-xsdrop-shadow-smdrop-shadow-mddrop-shadow-lgdrop-shadow-xldrop-shadow-2xl