Skip to content

Foundations

Elevation

Stance shadow tokens for light and dark themes, solid outlines in high contrast, and the fixed z-index scale for overlays, menus and toasts.

Elevation is expressed with soft, indigo-tinted shadows in light mode and deeper shadows over lighter surfaces in dark mode. In high contrast, shadows become solid outlines, because depth must not depend on subtle shading.

Shadows

--st-shadow-xsInputs, subtle lift
--st-shadow-smCards at rest
--st-shadow-mdHovered cards, sticky headers
--st-shadow-lgPopovers, menus, toasts
--st-shadow-xlDialogs and drawers

Z-index

Layers use a fixed scale. Never invent ad-hoc z-index values.

TokenValue
--st-z-base0
--st-z-raised1
--st-z-sticky100
--st-z-dropdown1000
--st-z-overlay1100
--st-z-modal1200
--st-z-popover1300
--st-z-toast1400
--st-z-tooltip1500