design-tokens-sync
Skill3.5k starsChanged 11 months agoMITView on GitHub
Sync design tokens between Figma variables and code with figma_export_tokens and figma_import_tokens — DTCG, CSS variables, Tailwind v3/v4, SCSS, TS, Style Dictionary, Tokens Studio — with dry runs first, multi-mode themes, aliases, and a verified round trip. Use when the user wants to export Figma variables to code, push token edits from code into Figma, set up tokens.config.json, or reconcile token drift.
1 other project uses a version of this.
Trending
More talk lately.about the whole repository
Most recently taken up by
- OneWave-AI/claude-skillstheir own version, first seen Sep 21, 2026
Who's talking about southleft/figma-console-mcp
- @glencampbell.design“This MCP will work better at performing actions in Figma. Connecting to Figma with Claude Code, which …”Bluesky · Mar 25, 2026 · 3 likes
- @azu.bsky.social“AIアシスタントとFigmaを接続するMCPサーバ。 Figma MCPと違って、Figma Pluginを経由することでWriteの操作ができる。 デザイン変数、コンポーネント、スタイルの取得や、デザイントー… ""…”Bluesky · Mar 16, 2026 · 2 likes
- @github-trending-js.bsky.social“🚀 Skyrocketing! 🚀 (200+ new stars) 📦 southleft / figma-console-mcp ⭐ 3,116 (+242) 🗒 TypeScript Your …”Bluesky · Nov 5, 2026 · 1 likes
- @ryonakae.com“Figma Console …”Bluesky · Oct 22, 2026 · 1 likes
- A Hacker News story“Figma Console MCP”Hacker News · Jul 21, 2026 · 1 points
The biggest 5 of 32 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 32
Talked about on GitHub, Bluesky and Hacker News (32 times).
On GitHub · 23
- Nov 30, 2026⬆️ Figma Console MCP updated: v1.46.0 → v2.5.1 — adamforrester/xd-toolkit0 reactions
- Nov 6, 2026feat(data): add Kandev, Stroq, Figma Console MCP and unslop to catalog — QAInsights/awesome-ai-tools0 reactions · 6 comments
- Nov 2, 2026⬆️ Figma Console MCP updated: v1.41.2 → v1.46.0 — adamforrester/xd-toolkit0 reactions
- Nov 1, 2026chore(deps): bump zod and figma-console-mcp in /apps/s2a-toolkit-bridge — adobecom/consonant0 reactions · 1 comment
- Oct 26, 2026⬆️ Figma Console MCP updated: v1.40.9 → v1.41.2 — adamforrester/xd-toolkit0 reactions
18 more on GitHub
- Oct 19, 2026chore(deps): bump @modelcontextprotocol/sdk and figma-console-mcp in /apps/s2a-toolkit-bridge — adobecom/consonant0 reactions · 1 comment
- Oct 14, 2026chore(deps): bump @modelcontextprotocol/sdk and figma-console-mcp — adobecom/consonant0 reactions · 1 comment
- Oct 5, 2026⬆️ Figma Console MCP updated: v1.40.7 → v1.40.9 — adamforrester/xd-toolkit0 reactions
- Sep 28, 2026⬆️ Figma Console MCP updated: v1.40.4 → v1.40.7 — adamforrester/xd-toolkit0 reactions
- Sep 21, 2026⬆️ Figma Console MCP updated: v1.40.0 → v1.40.4 — adamforrester/xd-toolkit0 reactions
- Aug 17, 2026⬆️ Figma Console MCP updated: v1.39.1 → v1.40.0 — adamforrester/xd-toolkit0 reactions
- Aug 3, 2026⬆️ Figma Console MCP updated: v1.38.0 → v1.39.1 — adamforrester/xd-toolkit0 reactions
- Jul 27, 2026⬆️ Figma Console MCP updated: v1.36.0 → v1.38.0 — adamforrester/xd-toolkit0 reactions
- Jul 20, 2026⬆️ Figma Console MCP updated: v1.35.0 → v1.36.0 — adamforrester/xd-toolkit0 reactions
- Jul 13, 2026⬆️ Figma Console MCP updated: v1.34.0 → v1.35.0 — adamforrester/xd-toolkit0 reactions
- Jul 6, 2026⬆️ Figma Console MCP updated: v1.32.0 → v1.34.0 — adamforrester/xd-toolkit0 reactions
- Jun 25, 2026Set up figma-console-mcp (Southleft) for local design↔code workflow — digital2analogue/parsimony0 reactions · 1 comment
- Jun 22, 2026⬆️ Figma Console MCP updated: v1.31.0 → v1.32.0 — adamforrester/xd-toolkit0 reactions
- Jun 15, 2026⬆️ Figma Console MCP updated: v1.29.0 → v1.31.0 — adamforrester/xd-toolkit0 reactions
- May 25, 2026⬆️ Figma Console MCP updated: v1.27.1 → v1.29.0 — adamforrester/xd-toolkit0 reactions
- May 18, 2026⬆️ Figma Console MCP updated: v1.23.0 → v1.27.1 — adamforrester/xd-toolkit0 reactions
- May 11, 2026⬆️ Figma Console MCP updated: v1.22.1 → v1.23.0 — adamforrester/xd-toolkit0 reactions
- Apr 13, 2026⬆️ Figma Console MCP: initial tracking at v1.22.1 — adamforrester/xd-toolkit0 reactions
On Bluesky · 8
- Mar 25, 2026This MCP will work better at performing actions in Figma. Connecting to Figma with Claude Code, which should point at your code project.… — @glencampbell.design3 likes and reposts · 1 reply
- Mar 16, 2026AIアシスタントとFigmaを接続するMCPサーバ。 Figma MCPと違って、Figma Pluginを経由することでWriteの操作ができる。 デザイン変数、コンポーネント、スタイルの取得や、デザイントー… ""… — @azu.bsky.social2 likes and reposts
- Nov 5, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 southleft / figma-console-mcp ⭐ 3,116 (+242) 🗒 TypeScript Your design system as an API. Connect AI… — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Oct 22, 2026Figma Console MCPとかの、Figmaプラグイン使ってMCPサーバーをローカルで立てるタイプじゃないと独自フォントは扱えないな。なんかでもこういうのってWebSocketで通信するから接続不安定で微妙なんよなあ github.com/southleft/fi... — @ryonakae.com1 likes and repost
- Mar 21, 2026📦 southleft / figma-console-mcp ⭐ 1,146 (+37) 🗒 TypeScript Your design system as an API. Connect AI to Figma for extraction, creation,… — @github-trending-js.bsky.social1 likes and repost
3 more on Bluesky
- Mar 20, 2026github.com/southleft/figma... GitHub - southleft/figma-console-mcp: Your design system as an API. Connect AI to Figma for extr... — @technews4869.bsky.social1 likes and repost
- Mar 19, 2026Figmaの変数やコンポーネント記述をMCPプロトコル経由でAIに連携させるツールらしい AIにデザイン操作やデータ抽出させたい場合に便利そうかな yug1224 starred southleft/figma-console-mcp… — @yug1224.com1 likes and repost
- Feb 17, 2026AIがFigmaでデザインできるMCPありそうで無さそうなので作ってみよかなと思っていたけど、やりたいことの完全上位互換みたいなやつ既にあってやる気なくなっちゃった / southleft/figma-console-mcp: Your design system as an… — @ryonakae.com1 likes and repost · 1 reply
On Hacker News · 1
- Jul 21, 2026Figma Console MCP1 point
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- OneWave-AI/claude-skills★ 378same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- accessibility-reviewSkill
- code-connectSkill
- design-code-paritySkill
- generate-code-with-design-systemSkill
- generate-with-design-systemSkill
- grade-generationSkill
- import-web-pageSkill
- troubleshoot-connectionSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 1 is distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Every response includes source: { fileName, fileKey }.
- Very specific: line 43
Check source, wouldWriteTo, and the token counts.
- Distinctive: line 61
Only DTCG (both the legacy and the 2025.10 dialect) is fully supported as import input.
- Very specific: line 65
Use collectionMapping ({ "primitives": "Primitive Tokens" }), modeMapping ({ "light": "Light" }) and prefix (stripped on import) when the …
- Very specific: line 66
Check applyResult.errors[].
- Very specific: line 70
Check what uses it first: figma_find_usages({ kind: "variable", id }) (inspect toolset) gives the bound layers by page.
- Very specific: line 86
Run figma_import_tokens({ dryRun: true }) on the repo's DTCG.
- Very specific: line 95
Write without first checking source.
- Very specific: line 96
Use replace on either tool to get around a refusal without the person agreeing.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Sync design tokens (Figma ↔ code)
Tools (Local Mode): this skill uses tools outside the core set. If they aren't in your tool list, call
figma_enable_toolsets({ toolsets: ["variables", "inspect"] })once at the start; if they still don't appear, call them throughfigma_call({ tool, arguments }). Cloud Mode lists every tool, so skip this there.
Two tools do all the work: figma_export_tokens (Figma → files) and figma_import_tokens (files → Figma). DTCG JSON is the canonical pivot format. It carries Figma variable IDs in $extensions["figma-console-mcp"], so renames on either side don't create duplicates. Always dry-run first, and confirm the source file before writing.
0. Preconditions
- The Desktop Bridge plugin must be open in the right Figma file. Run
figma_list_open_files, thenfigma_navigate({ url, lock: true })if needed. - Variables are read through the plugin, so this works on any Figma plan.
- Every response includes
source: { fileName, fileKey }. Check it each time. The wrong active file is the #1 cause of bad syncs.
1. Configure once: tokens.config.json
Calling figma_export_tokens() with no config returns a suggestedScaffold. Show it to the person, write it with your file tools, then call again. A typical config:
{
"figmaFile": "<fileKey or URL>",
"source": { "dir": "src/styles/tokens", "pattern": "*.tokens.json", "canonical": "dtcg" },
"generated": { "dir": "src/styles/generated",
"formats": [ { "format": "css-vars", "splitByMode": true },
{ "format": "tailwind-v4" } ] },
"modes": { "map": { "Light": "light", "Dark": "dark" }, "default": "Light" },
"conflictResolution": "ask"
}Pin figmaFile. With it set, exports are routed to that file and fail if it isn't open, no matter which tab is focused.
2. Export (Figma → code)
- Preview first:
figma_export_tokens({ strategy: "dry-run" }), or with explicit options:
Checkfigma_export_tokens({ format: "dtcg", outputPath: "src/styles/tokens/", modes: "all", splitByCollection: true, dtcgDialect: "legacy", strategy: "dry-run" })source,wouldWriteTo, and the token counts. - Write with the default
strategy: "merge". That's the safe mode: it refuses to overwrite an existing DTCG file if doing so would drop tokens it doesn't manage (hand-added tokens, other collections), if a requestedcollectionIdsentry is missing, if the export is empty, or if the file was generated from a different Figma file. When it refuses, report the reason. Don't switch toreplaceunless the person agrees after seeing what would be lost. - Generate the runtime formats from config, or one at a time:
format: "css-vars": mode-aware selectors, aliases resolved.tailwind-v4/tailwind-v3,scss,ts-module,json-flat/json-nested,style-dictionary-v3,tokens-studio.- Useful options:
prefix(e.g."ds-"),colorFormat(hex, hex8, rgba, oklch, hsl),sizeUnit(px, rem, pt, dp),remBase.
outputPath is treated as a directory by default. A path ending in .json, .css, .scss, .less, .ts or .js is treated as a single file, so the export must produce exactly one file (one format, no splitting). To re-export one collection into one file, use scope: "collection" with collectionIds.
3. Import (code → Figma)
- Always dry-run first:
Report the plan to the person: counts and samples offigma_import_tokens({ dryRun: true }) // uses tokens.config.json figma_import_tokens({ files: [{ path, content }], format: "dtcg", dryRun: true }) figma_import_tokens({ payload: "<dtcg json>", format: "dtcg", dryRun: true })toCreate,toUpdate,toRename,toDelete, plus any conflicts. - Only DTCG (both the legacy and the 2025.10 dialect) is fully supported as import input. CSS, Tailwind, SCSS and Tokens Studio input returns NotImplemented. Convert to DTCG first, or import the DTCG source those formats were generated from.
- Apply with
strategy: "merge"(the default). It creates, updates and renames, and never deletes. Figma-only variables are reported, not removed. - Conflicts (both sides changed since the last sync): with
onConflict: "ask"(the default) nothing is written. Show each conflict to the person and let them choosefigma-wins,code-winsorskipper run. Don't choose for them. strategy: "replace"permanently deletes Figma variables that are absent from the token files, but only in the collections those files contain. The server asks the person to confirm the deletions. If the client can't show that prompt, you must get explicit approval yourself first: list what will be deleted, and warn that anything bound to those variables loses its binding.- Use
collectionMapping({ "primitives": "Primitive Tokens" }),modeMapping({ "light": "Light" }) andprefix(stripped on import) when the names differ between sides. - Check
applyResult.errors[]. Failures are per item, so the overall result can be a partial success.
4. Before renaming or deleting a variable
Check what uses it first: figma_find_usages({ kind: "variable", id }) (inspect toolset) gives the bound layers by page. Report the count to the person before a destructive import (replace mode) removes or renames variables in use.
For a brand or product theme on top of a shared library, prefer an extended collection, figma_extend_library_collection, over copying the library's variables. It inherits every variable and overrides only what differs.
5. Multi-mode and aliases
- Modes: export with
modes: "all"or["Light","Dark"].splitByMode: trueproduces one file per mode. Import creates missing collections with the token file's full mode list. - Aliases are kept as references in DTCG and JSON (
{color.primary}). CSS, SCSS and Tailwind resolve them, because those formats can't express aliases (resolveAliasescontrols this). - On import, references are written as real variable aliases. References that can't be resolved are skipped with a warning. Report those.
- Colors with opacity ("grey/900 at 50%") round-trip through
$extensions["figma-console-mcp"].composedColor. Edit that, not only$value, to keep the link. - Library aliases show up as
{__library:VariableID:…}. They're preserved but not resolvable locally. List them for the person.
6. Verify the round trip
After any write:
- Export DTCG with
strategy: "dry-run"and check that the result matches the files you expect. - Run
figma_import_tokens({ dryRun: true })on the repo's DTCG. A clean round trip shows 0toCreate,toUpdate,toRenameandtoDelete, and no conflicts. Anything else is drift. Report it. - Spot-check a few values in Figma:
figma_get_variables({ format: "filtered", namePattern: "<token>", resolveAliases: true }).
Report
State the source file (name and key), the direction, the strategy, the counts created, updated, renamed and deleted, the conflicts and how they were resolved (and by whom), any skipped references, and the files written.
Never
- Write without first checking
source. - Use
replaceon either tool to get around a refusal without the person agreeing. - Resolve conflicts automatically.
- Hand-edit generated files (CSS, Tailwind, etc.). Edit the DTCG source and regenerate.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

