Styles To Token Migration — Data skill for Claude Code
Pipeline for migrating Figma components from hardcoded Paint Styles to semantic Variables — via Component→YAML plugin + Scripter apply-scripts.
How to install Styles To Token Migration
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open denysosadchyi/styles-to-token-migration and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Styles To Token Migration does
Pipeline for migrating Figma components from hardcoded Paint Styles to semantic Variables — via Component→YAML plugin + Scripter apply-scripts.
Alternatives in Data
- Sprite Gen — Generate clean 2D game sprites & animation atlases — component-row pipeline: state rows, alpha cleanup, frame 763 ★
- Figma UI MCP — AI can draw UI directly on the Figma canvas via JavaScript, and read existing designs back as structured data 232 ★
- NERV UI V2 — Operations Console Component Library — Build web interfaces that feel like NERV designed them 194 ★
README
Styles → Token Migration
Migrates a Figma library from hardcoded Paint Styles to semantic Variables — so that every layer of every component variant is bound to a token, and switching themes happens with a single click in the Variables Panel.
*Українська версія — [нижче](#styles-token-migration-ua).*
What it does
- Scans a ComponentSet in Figma and pulls its structure (colors, variants, layer roles) into a YAML file.
- From the YAML it builds an apply-script that walks every component variant and binds Figma Variables to fills / strokes instead of Paint Styles.
- Keeps a token catalog in two Figma Variables collections:
Primitives(raw colors) andTokens(semantic aliases over primitives). Any apply-script only works withTokens.
How it works
Figma ComponentSet
│
▼
[ Plugin Component → YAML ] ← scans structure, colors, variants
│
▼
components/*.yaml ← semantic component spec
│
▼
[ Claude Code ] ← fills token_map, generates apply-script
│
▼
[ Scripter → apply-[component].js ] ← select ComponentSet → Run
│
▼
Figma Variables bound ✅
The whole pipeline is driven through **Claude Code**. The repo ships with `CLAUDE.md` containing the instructions — clone the repo, open it in Claude Code, and it will walk you through every step itself.
Step 0 — Tokens (once per project)
Two files — `tokens/primitives.css` (raw colors) and `tokens/tokens.css` (semantic aliases). The same values are duplicated as JS objects in `scripter/create-variables.js`.
Running `create-variables.js` in Scripter creates two collections in Figma Variables:
Primitives—Blue/500 = #3B82F6,Gray/900 = #111827, …Tokens—Action/primary/bg-default → Primitives/Blue/500(VARIABLE_ALIAS)
Upsert by name: re-running doesn't duplicate variables, it only updates values.
Step 1 — Plugin pulls the component structure
The **Compone
Related Skills
00 Interrogate And Onboard
Load when the owner starts /setup, /daily-run, /apply-url, or "Check my folder"; inspects context/ files direc
First Time Action Gate
The first time you do any externally-visible action — first email batch, first marketplace push, first package
DB Migration Review
Review database migration scripts for risky patterns — locking DDL, long transactions, irreversible down-migra
Social Cards Skills
Programmatic OG & Twitter Card image generation for AI agents. 6 visual styles, Satori+resvg, AI image gen pip
Ultimate Faceless Shorts Pipeline
Production-grade, code-native faceless video studio for AI coding agents. 6 micro-short 3D/2D styles + Paper B
Explain Pipeline
Explain MMD compilation pipeline and which components handle what
Related Agents
Fec Design Token Mapper
Use this subagent to map styles and variables in Figma, Sketch, MasterGo, Pixso, Mokou, or Mockup to existing
Design System Builder
Builds the design system in Figma: variables, styles, components and documentation; also reviews the UI Design
Figma Dx Specialist
Figma Designer-Experience specialist owning Figma's CODING surfaces — Dev Mode, Code Connect, plugin API, REST