Roosevelt Docs
Roosevelt Docs
Welkom
Architecture
Workflows
Infrastructure
AI & Automation
API Reference
Design System
Design System

Foundations

Design TokensTypographyColorsSpacingMotion

Components

ComponentsButtonCardBadgeInputNavigation

Patterns

LayoutFormsFeedback

Guidelines

AccessibilityDark ModeFigma Handoff
Guides
Design System

Figma Handoff

Figma Variables naar CSS tokens mapping

Figma Handoff

De Figma design file spiegelt de token architectuur van de codebase. Designers en developers spreken dezelfde taal.

Figma → Code Mapping

Figma VariableCSS TokenTailwind
color/brand--color-brandtext-brand
color/label/primary--color-label-primarytext-label-primary
color/bg/primary--color-bg-primarybg-surface-primary
color/outline/default--color-outline-defaultborder-outline
text/body/size--text-body-sizetext-body
space/4--space-4p-2 (8px)
radius/m--radius-mrounded-m

Bento-Structuur

De token architectuur volgt het Bento/Adyen model:

Figma Variables          Code
────────────────────────────────
Collection: Core    →    :root { --color-brand: #5F2104 }
Collection: Semantic →   Tailwind config extends
Mode: Light          →   :root { ... }
Mode: Dark           →   @media (prefers-color-scheme: dark) { ... }

Workflow

  1. Designer past Figma Variables aan
  2. Review token wijzigingen in design review
  3. Developer update globals.css tokens
  4. Verify visuele regressie via Storybook/screenshots
ℹ

Design File

De Figma design file is beschikbaar op Claude-Designs. Alle tokens zijn gedefinieerd als Figma Variables.

Naamconventies

FigmaCSSTailwind
color/label/primary--color-label-primarytext-label-primary
color/bg/secondary--color-bg-secondarybg-surface-secondary
text/title/size--text-title-sizetext-title
space/8--space-8p-4 (16px)

Houd deze mapping 1:1 — als een token in Figma wijzigt, wijzigt exact één CSS variable.

Previous

Dark Mode

Next

Guides

On this page

Figma HandoffFigma → Code MappingBento-StructuurWorkflowNaamconventies