Shadows
Elevation in four steps, inked warm
import { shadow } from "@nyte-ai/ui/styles/vars.stylex";shadow.shadowSmButtons, switches, slider thumbs, tabsshadow.shadowMdOutlineTooltips, toasts: a drop plus a hairlineshadow.shadowLgFloating surfaces, select popupsshadow.shadowXlDialogsRules
- The elevation shadows are inked in a warm near-black at 3 to 19 percent alpha, not neutral grey, so they sit on the warm gray ramp.
- Height follows distance from the page: controls take
shadowSm, popupsshadowLg, modal popups and dialogsshadowXl. shadowMdOutlineadds a hairline that sits outside in light mode and inside in dark mode, where a drop shadow alone would vanish.- Popups share one frame,
floatingSurfaceStylesinfloating-surface.stylex.ts: material,radius.surface,shadowLg, and an inset hairline. Compose it instead of restating them.