Skip to content

Figma Workflow

Stratum is designed so that every token, variant, and component maps 1:1 between Figma and code. A designer changes accent in Figma — the same change propagates to the matching theme.colors.accent token in code.

Figma and code share the same names:

FigmaCode
Button / Primary / Md<Button variant="primary" size="md" />
Colors / Accenttheme.colors.accent
Radius / Mdtheme.radius.md
Shadow / Smtheme.shadow.sm
Icon / BoldiconWeight: 'bold' in theme
CategoryFigmaCode
BackgroundsColor/Background, Color/Surfacetheme.colors.background, theme.colors.surface
TextColor/TextPrimarytheme.colors.textPrimary
AccentColor/Accenttheme.colors.accent
SpacingSpacing/Md (16)spacing.md from @/tokens
RadiusRadius/Mdtheme.radius.md
  • Figma Variables export script → src/tokens/themes/
  • CI step: token drift detection (Figma vs code)
  • Figma component library with matching prop names
  • Auto-update workflow: merge Figma token changes → PR