Skip to content

Design Tokens

Sprout uses CSS custom properties (variables) prefixed with --sp- for colors, spacing, typography, radius, motion, z-index, and themes. Override them in your own CSS after Sprout to customize the look without editing the library.

Token categories

CategoryDescription
ColorsBackgrounds, surfaces, text, primary, danger, success, warning, info
Spacing4pt grid scale (--sp-1 through --sp-16) for padding, margin, gap
TypographyFont families, fluid size scale, line height
RadiusBorder radius for buttons, inputs, cards, modals
MotionDuration, easing, and reduced-motion behavior
Z-indexStacking order for overlays (dropdown, modal, toast, tooltip)
ThemesHow data-theme switches color token sets (dark, light, high-contrast, auto)

Quick override example

css
/* After loading Sprout CSS */
:root {
  --sp-primary: #2d5a3d;
  --sp-radius-md: 8px;
}

See each category page for the full token list and usage.

MIT License · Lightweight by principle. Sustainable by design.