design-code-parity
Skill3.5k starsChanged 11 months agoMITView on GitHub
Keep a Figma component library and the code library that mirrors it in line — compare each component's variants, props, styling and tokens, triage every discrepancy to a design-side fix, a code-side fix, or a decision for a person, and produce a parity report. Use when the user asks about drift between Figma and code, "are our components in sync", parity audits, or before or after a design-system release.
Trending
More talk lately.about the whole repository
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
In this repository9 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- accessibility-reviewSkill
- code-connectSkill
- design-tokens-syncSkill
- 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
5 rules. About 0 are common, 1 is distinctive, and 4 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.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Ask, or read from the repo or team docs, which side is the source of truth:
- Very specific: line 33
Code side: Read the source and build a codeSpec.
- Very specific: line 71
After applying fixes, re-run figma_check_design_parity for that component and record the before and after scores.
- Very specific: line 84
Check the source file key in each response.
- Very specific: line 86
Treat every conflict and every delete candidate as needs decision.
≈ “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
Design ↔ code parity
Tools (Local Mode): this skill uses tools outside the core set. If they aren't in your tool list, call
figma_enable_toolsets({ toolsets: ["inspect", "parity", "components", "variables"] })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.
Find where the Figma library and the code library disagree, and fix only what has a clear owner. Never silently pick a side. If nobody has said which side is canonical for a component or property, the discrepancy goes to a person.
0. Establish canonical source
Ask, or read from the repo or team docs, which side is the source of truth:
- per library ("Figma is canonical"),
- per component, or
- per concern (e.g. design owns visuals, code owns the props API).
Record the answer. If there isn't one, treat every discrepancy as needs decision. You can still measure parity, but don't apply fixes.
1. Pair components
- Figma:
figma_search_components({ query, libraryFileKey? })orfigma_get_library_components({ libraryFileKey, query })gives you nodeIds and keys. - Code: list the exports of the component package (entry
index.ts,package.jsonexports, component directory). - Pair them by name. Components on only one side go in the report as missing in code or missing in Figma. Don't create the missing side unless the person asks.
2. For each pair, gather both sides
Figma side:
figma_analyze_component_set({ nodeId: "<COMPONENT_SET id>" })gives the variant axes and values, state → pseudo-class mapping, property definitions mapped to prop types, and slots.figma_get_component_for_development({ nodeId })gives bound token names, sizing and annotations. For deep trees, usefigma_get_component_for_development_deep({ nodeId, depth: 0 }).
Code side. Read the source and build a codeSpec. Fill in only the sections you actually read, and leave the rest out:
codeSpec: {
filePath: "src/components/Button/Button.tsx",
visual: { backgroundColor, borderColor, borderWidth, borderRadius, opacity, fills:[{color,opacity}], strokes:[{color,width}], effects:[{type,color,offset:{x,y},blur}] },
spacing: { paddingTop, paddingRight, paddingBottom, paddingLeft, gap, width, height, minWidth, maxWidth, minHeight, maxHeight, layoutDirection: "horizontal"|"vertical" },
typography: { fontFamily, fontSize, fontWeight, lineHeight, letterSpacing, textAlign, textDecoration, textTransform },
tokens: { usedTokens: ["--color-primary", …], hardcodedValues: [{ property, value }], tokenPrefix: "--ds-" },
componentAPI: { props: [{ name, type, required, defaultValue, values: [...] }], events: [...], slots: [...] },
accessibility: { … },
metadata: { name, description, status, version, tags }
}- Resolve token references to values where the parity check needs a value (e.g.
var(--space-3)→ 12). - For
accessibility, render the component's default markup and runfigma_scan_code_accessibility({ html, mapToCodeSpec: true }), then pass the returnedcodeSpec.accessibilityas is. - For variant parity, compare
componentAPI.props[].valuesagainst the variant axes fromfigma_analyze_component_set. Check that each Figma axis maps to a prop whose values match, and that each state has a code equivalent.
3. Run the check
figma_check_design_parity({ nodeId: "<component or set id>", codeSpec, canonicalSource: "design" | "code", enrich: true })canonicalSource defaults to "design", so always pass it explicitly, set to what you recorded in step 0. When there's no canonical source, pass either value, but treat the returned fix items as proposals only. The discrepancy list is the evidence either way.
4. Triage every discrepancy
| Bucket | When | Action |
| Design-side fix | Code is canonical for this property, and the Figma fix is mechanical | Apply it with tools. Use figma_set_fills / figma_set_strokes with variableId, figma_set_layout, or figma_edit_component_property / figma_add_component_property for props. Variant structure changes go through the person first. |
| Code-side fix | Design is canonical, and the code fix is mechanical | Edit the source: the token reference, the prop values, the default. Keep the component's public API stable unless the person approves a change. |
| Needs decision | No canonical source, both sides changed, an API or breaking change, a missing component, or a value with no token on either side | Don't change anything. List it with both values and a recommendation. |
| Not a discrepancy | A known intentional difference (platform convention, documented exception) | Note it once. |
Token-level differences, where both sides use a token but the tokens' values differ, are a token sync issue. Handle those in step 5, not per component.
After applying fixes, re-run figma_check_design_parity for that component and record the before and after scores.
5. Token drift
Compare the code's token files against Figma variables without writing anything:
figma_import_tokens({ dryRun: true })uses tokens.config.json. Without a config, passfiles: [{ path, content }]orpayloadplusformat: "dtcg". The diff plan shows:toCreate: in code, not in Figma.toUpdate: values differ.toRename.toDelete: in Figma, not in code.- conflicts, where both sides changed since the last sync.
figma_export_tokens({ format: "dtcg", strategy: "dry-run" })shows what an export would write (wouldWriteTo), and whether it would refuse because of hand-added tokens or a different source file.- Check the
sourcefile key in each response. Drift reported against the wrong Figma file is meaningless.
Treat every conflict and every delete candidate as needs decision. To actually sync, use the design-tokens-sync skill.
6. Link components to their code
Once pairs are confirmed, offer to add the links developers see in Dev Mode with figma_manage_dev_resources({ action: "add", items: [{ nodeId, url, name: "Storybook" | "Code" }] }). It skips links that already exist. Only link URLs you actually know (the code file's repo URL, the Storybook story); never guess one.
7. Parity report
PARITY REPORT — <library> vs <package>@<version> (canonical: <design|code|undeclared>)
SUMMARY
- Components paired: <n> | missing in code: <n> | missing in Figma: <n>
- Mean parity score: <before> → <after>
- Token drift: create <n>, update <n>, rename <n>, delete <n>, conflicts <n>
PER COMPONENT
<Name> — score <before> → <after>
- Fixed (design): <property>: <old> → <new> (<tool call>)
- Fixed (code): <file:line> <property>: <old> → <new>
- Needs decision: <property> — Figma <value> vs code <value> — recommend <side> because <reason>
MISSING
- In code: <components>
- In Figma: <components>
DECISIONS NEEDED (consolidated)
1. ...Hand the "Decisions needed" list to the person. Don't resolve those items yourself.
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.

