Design Tokens
Primitives, semantic roles, and component color aliases generated from Figma. Sync via Copied! — then consume through Tailwind, CSS variables, or Copied!. Tap any swatch or path on this page to copy.
Step 1 · Pull
Writes Copied!.
Step 2 · Build
Compiles @spring/ds-react/tokens into generated CSS and a sync manifest.
Step 3 · Use
Tailwind reads the token package; runtime styles use CSS variables from the build output.
Primitives
Literal hex values from Figma's Copied! collection. Prefer semantic roles in UI code — avoid binding directly to primitives.
Semantic
Choose by intent, not hex. Previews pair text automatically; paths and resolved values copy on tap.
Copied! — pick a chip to preview; paired text updates for contrast.
Brand Primary · preview
The quick brown fox jumps over the lazy dog.
Primary actions and brand fills. Paired with Copied!.
Text · text.onBrand
Copied! — each preview uses the surface that role is meant for.
Brand · preview
Aa Bb
The quick brown fox jumps over the lazy dog.
Sample · 0123456789 — sat on Copied!.
Copied! — strokes use 2px in the system.
Border · Subtle
2px stroke
Border · Default
2px stroke
Border · Strong
2px stroke
Border · Brand
2px stroke
Border · Disabled
2px stroke
Border · Status Success
2px stroke
Border · Status Error
2px stroke
Pairs semantic.bg.status* with semantic.text.status*, graphic, and optional border.
Success
Confirmations, completed states, positive outcomes.
Background
Text
Graphic
Border
Info
Neutral notices, tips, and background context.
Background
Text
Graphic
Warning
Cautions and reversible risks — read before continuing.
Background
Text
Graphic
Error
Validation errors, failed actions, destructive flows.
Background
Text
Graphic
Border
Components
Aliases map semantic roles to buttons, inputs, overlays, and elevation so theming stays centralized.
9 tokens
badge-error-bg
badge-error-icon
badge-error-text
badge-success-bg
badge-success-icon
badge-success-text
badge-warning-bg
badge-warning-icon
badge-warning-text
12 tokens
button-disabled-bg
button-disabled-text
button-ghost-hover
button-ghost-text
button-outline-border
button-outline-text
button-primary-bg
button-primary-hover
button-primary-text
button-secondary-bg
button-secondary-hover
button-secondary-text
7 tokens
input-bg
input-bg-active
input-border
input-border-focus
input-placeholder
input-text
input-text-active
7 tokens
overlay-bg
overlay-border
overlay-brand-bg
overlay-inverse-bg
overlay-inverse-text
overlay-text
overlay-text-secondary
4 tokens
surface-card-bg
surface-card-border
surface-divider
surface-dock-bg