Shadows

Elevation shadows using CSS variables. Built from --foreground/--background, so they follow whichever surface class is in scope.

Shadow Tokens

5 shadow tokens: two general elevation steps (sm, lg), a soft ambient drop for floating panels (popover), and the dedicated button pair (btn-primary, btn-secondary).

Small
shadow-sm

Subtle elevation for small elements (toggles, pills)

Large
shadow-lg

Strong elevation for modals and lightboxes

Nav Pill
shadow-nav-pill

The floating nav pill. Three layers: a bright inner top edge, a dark inner bottom edge, and a wide drop. Louder than the button insets because the pill is translucent glass — on the near-black pages its fill lands within a few units of the page itself, so the highlight and the border are the only things drawing its shape.

Popover
shadow-popover

Soft lift for floating panels — applied by the .popover-surface class, so popovers should not add a shadow of their own

Button Primary
shadow-btn-primary

Four stacked layers under the primary button — a tight contact shadow beneath a wider soft one, so it reads as seated rather than floating.

Button Secondary
shadow-btn-secondary

The secondary button has no border at all — its entire edge is this: an inner ring, a brighter inner top edge (lit from above), an outer ring and a soft drop.

Elevation Shadows

Standard elevation shadows for depth hierarchy:

shadow-sm
shadow-lg

Usage

Common Patterns

shadow-sm — Buttons, small elementsshadow-lg — Modals, dropdowns