id, title, category, status, canonical_id, aliases, duplicate_of, source_trust_level, confidence_score, verification_status, tags, raw_sources, last_reinforced, github_commit, tech_stack
id
title
category
status
canonical_id
aliases
duplicate_of
source_trust_level
confidence_score
verification_status
tags
raw_sources
last_reinforced
github_commit
tech_stack
wiki-2026-0508-figma-to-code-workflow
Figma to Code Workflow
10_Wiki/Topics
verified
self
Figma to React
Design to Code
Design Token Pipeline
none
A
0.85
applied
figma
design-system
tokens
react
workflow
2026-05-10
pending
language
framework
typescript
react
Figma to Code Workflow
매 한 줄
"매 design token 을 single source of truth — 매 Figma Variables → JSON → CSS/TS 의 자동 sync" . 매 2023 Figma Variables launch 후 표준화, 매 2026 Figma Code Connect + Style Dictionary + LLM-assisted MCP server 가 default workflow.
매 핵심
매 Pipeline 단계
Design : Figma Variables (color, spacing, typography).
Export : Figma API or Tokens Studio plugin → JSON.
Transform : Style Dictionary → CSS vars + TS types.
Consume : components import tokens, 매 hardcode X.
매 Component sync 방식
Code Connect : Figma component ↔ React component pin.
Storybook : Figma plugin 의 design ↔ story link.
Visual regression : Chromatic — 매 token diff 의 detection.
매 응용
Multi-brand theming: tokens swap → 매 component 의 unchanged.
Dark mode: light/dark variable mode toggle.
A11y: contrast token 자동 검증.
💻 패턴
Figma Variables export (REST)
Style Dictionary config
Tailwind config consuming tokens
Figma Code Connect (React)
MCP server (Claude/Cursor 의 Figma read)
CI: token drift detection
매 결정 기준
상황
Approach
Single brand, small
CSS vars manual export
Multi-brand or theming
Style Dictionary + modes
Tight design↔code coupling
Code Connect + Storybook
LLM-assisted dev
Figma MCP server
기본값 : Figma Variables → Style Dictionary → Tailwind/CSS vars + Code Connect.
🔗 Graph
🤖 LLM 활용
언제 : Figma MCP → component spec → React scaffold (props, variants 자동).
언제 X : 매 pixel-perfect layout 매 manual hand-off 의 X — LLM 매 약함.
❌ 안티패턴
Hardcoded hex : color: #FF6B6B 매 component 안에 — token swap 매 불가.
One-way sync : code → Figma 의 reverse 무시 → drift.
No transform layer : Figma JSON 매 직접 import — 매 platform-specific 변환 X.
Ignoring modes : light/dark 매 separate file → maintenance hell.
🧪 검증 / 중복
Verified (Figma Variables docs, Style Dictionary 4.x, Code Connect 1.x).
신뢰도 A.
🕓 Changelog
날짜
변경
2026-05-08
Phase 1
2026-05-10
Manual cleanup — Figma → Style Dictionary → React pipeline