Skip to content

Design Tokens

All tokens are exposed as CSS variables on :root and can be overridden at any level.

Colors

Neutral Scale

TokenValueUsage
--color-neutral-950#0D0D0DHeadings, deepest text
--color-neutral-700#374151Body text
--color-neutral-500#6B7280Secondary text, placeholder
--color-neutral-300#D1D5DBBorders, dividers
--color-neutral-100#F3F4F6Hover background, zebra stripes
--color-neutral-50#F5F5F4Page background

Accent

TokenValueUsage
--color-accent#9ebbdePrimary button, focus ring, selected state
--color-accent-light#7299a0Hover state
--color-accent-subtlergba(158,187,222,0.12)Tag background, focus ring

Animation

Easing Curves

TokenCurveUsage
--ease-springcubic-bezier(0.34, 1.56, 0.64, 1)Bounce, scale
--ease-smoothcubic-bezier(0.25, 0.1, 0.25, 1)State transitions
--ease-outcubic-bezier(0.0, 0.0, 0.2, 1)Overlay entrance

Duration

TokenDurationUsage
--duration-fast160msColor, opacity
--duration-base220msState switching
--duration-enter320msOverlay, drawer

Spacing (4px Grid)

TokenValue
--space-14px
--space-28px
--space-312px
--space-416px
--space-624px
--space-832px
--space-1248px

Density

TokenDefaultDescription
--density-factor1Spacing scale factor. Desktop recommended 0.75. Override for compact layout.

Border Radius

TokenValueComponents
--radius-sm6pxTag, Badge
--radius-md9pxInput, Button
--radius-lg14pxCard, Modal
--radius-full9999pxRadio, Avatar

Shadows

TokenUsage
--shadow-smCard default
--shadow-mdCard hover, dropdown
--shadow-lgModal, Drawer
--shadow-xlGlobal Toast

Dark Mode

Set data-theme="dark" on the parent container (html or body):

html
<html data-theme="dark">

Tokens that switch in dark mode:

TokenLightDark
--color-neutral-950#0D0D0D#F5F5F4
--color-neutral-700#374151#D1D5DB
--color-neutral-500#6B7280#9CA3AF
--color-neutral-300#D1D5DB#4B5563
--color-neutral-100#F3F4F6#1F2937
--color-neutral-50#F5F5F4#111827
--color-accent-subtlergba(…,0.12)rgba(…,0.2)
All shadowsLight bg shadowDark bg shadow

Other tokens (accent, animation, spacing, radius) remain unchanged in dark mode.

Auto-follow System

Combine with CSS prefers-color-scheme:

css
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; }
  html { background: #111827; }
}

MIT License