Skip to content

Colors

Color tokens are theme-driven: they change with data-theme (dark, light, high-contrast) or with system preference when using auto. All tokens use the --sp-* prefix.

Roles

TokenRole
--sp-bgPage background
--sp-surface, --sp-surface-2, --sp-surface-3Surfaces (cards, inputs, raised areas)
--sp-border, --sp-border-2Borders and dividers
--sp-text, --sp-text-2, --sp-text-mutedPrimary, secondary, muted text
--sp-primary, --sp-primary-fg, --sp-primary-hoverBrand and buttons
--sp-danger, --sp-danger-fgErrors, destructive
--sp-warning, --sp-warning-fgWarnings
--sp-success, --sp-success-fgSuccess, confirmation
--sp-info, --sp-info-fgInformational

Use semantic roles (e.g. --sp-danger for errors) so themes can restyle the whole UI consistently. See Themes for how themes change these values.

MIT License · Lightweight by principle. Sustainable by design.