What it does
Design Extractor scans your codebase and automatically generates a single JavaScript file that reconstructs your entire design system in Figma. It extracts color tokens, typography scales, spacing systems, components with variants, and page frames—pulling real values directly from your code, not guesses.
How it works
The skill operates in four stages:
- Identify — Detects your framework (Next.js, React, Vue, SwiftUI, etc.) and locates token sources
- Extract — Pulls colors, typography, spacing, border radius, and shadows from config files and CSS
- Scan — Finds UI components and maps their variants and states
- Generate — Creates a
figma-import.jsfile you paste directly into Figma’s console
No configuration needed. No plugins to install. One paste and your design system appears in Figma.
Use cases
- Sync code-first designs to Figma — Keep your single source of truth in code while having a visual reference in Figma
- Recover lost design documentation — Extract designs from existing codebases when Figma files have drifted
- Speed up design handoff — Generate component libraries and page frames automatically instead of manually recreating them
- Validate design consistency — Compare what Figma says vs. what the code actually does
Who benefits
Product designers working with engineering teams, design systems leads managing component documentation, and teams building with Claude Code who need to see generated designs visually.