Primitive tokens

Raw design scales, parsed live from packages/porchlight/src/02-tokens.css at build time — so this page can never drift from the source. Semantic colors (bg/surface/text/ border/accent/danger…) are included; theme, density, and forced-colors overrides live in the themes preview.

Registered properties

@property gives these a type and initial value, so they animate cleanly and inherit predictably.

NameSyntaxInheritsInitial
--pl-motion-scale <number> yes 1
--pl-radius-control <length> yes 8px
--pl-focus-size <length> yes 2px

Fonts

Leading

Spacing

Radius

Motion

Asymmetric enter/exit: entries feel considered; exits feel snappy.

subtle overshoot

enter: fast → slow

Z-index

Disabled state — uniform dimming for all disabled controls.

Accent bar — the left/inline-start indicator for active/selected states.

Overlay scrim — the modal/dialog backdrop tint.

Menu rows — shared by anchored menu-like surfaces.

Controls

Focus — aligned with the warm brand hue for a cohesive ring.

Glow: accent-hued ring for focused/active primary controls.