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 ★
- Dbt Migration — Migrate SQL projects to dbt 276 ★
- Figma UI MCP — AI can draw UI directly on the Figma canvas via JavaScript, and read existing designs back as structured data 232 ★
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
First Time Action Gate
The first time you do any externally-visible action — first email batch, first marketplace push, first package
Social Cards Skills
Programmatic OG & Twitter Card image generation for AI agents. 6 visual styles, Satori+resvg, AI image gen pip
Explain Pipeline
Explain MMD compilation pipeline and which components handle what
Dialogue Design
Design or revise dialogue structure, branching, variables, and the content pipeline for conversations.
Build From Figma
/build-from-figma — Autonomous Figma-to-Working-App Pipeline
Prodotypor
An AI-assisted product development pipeline for Claude Code. Go from a product idea to Figma screens in 8 stru
Related Agents
Fec Design Token Mapper
Use this subagent to map styles and variables in Figma, Sketch, MasterGo, Pixso, Mokou, or Mockup to existing
Figma Dx Specialist
Figma Designer-Experience specialist owning Figma's CODING surfaces — Dev Mode, Code Connect, plugin API, REST
Ds Visual QA
Use after ds-component-builder finishes a batch, to check EVERY story of each component (not just Default) aga