design-tokens-sync

design-tokens-sync is a skill for Claude Code, Codex from southleft/figma-console-mcp. It costs 100 tokens per session (1,988 once invoked), scanned A, original, MIT.

A workflow for synchronising design tokens between Figma and code. Design tokens are named values such as colours, spacing and font sizes; Figma is a collaborative design tool.

In plain words
What is it for?
It helps export Figma variables to formats such as CSS, Tailwind, SCSS and TypeScript, or import token files back into Figma, with a preview before changes are made.
Why use it?
It reduces mismatches between the values used in designs and those used by the application.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps export Figma variables to formats such as CSS, Tailwind, SCSS and TypeScript, or import token files back into Figma, with a preview before changes are made.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/southleft/figma-console-mcp/design-tokens-sync
About the project

Figma Console MCP is a Model Context Protocol server that lets AI assistants access Figma as an interface for working with design systems. It supports extracting, creating, debugging, and synchronizing design tokens between Figma and codebases. The catalogue commands and instruction help agents use this workflow.

southleft/figma-console-mcp · 3,455 stars · on GitHub · southleft.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add southleft/figma-console-mcp --skill design-tokens-sync
Clone the repo
git clone --depth 1 https://github.com/southleft/figma-console-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for design-tokens-sync

README.md
[![agentmods](https://agentmods.dev/badge/skills/southleft/figma-console-mcp/design-tokens-sync/github.svg)](https://agentmods.dev/skills/southleft/figma-console-mcp/design-tokens-sync)
Your own site
<a href="https://agentmods.dev/skills/southleft/figma-console-mcp/design-tokens-sync"><img src="https://agentmods.dev/badge/skills/southleft/figma-console-mcp/design-tokens-sync/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for design-tokens-sync

Your own site · 80×15
<a href="https://agentmods.dev/skills/southleft/figma-console-mcp/design-tokens-sync"><img src="https://agentmods.dev/badge/skills/southleft/figma-console-mcp/design-tokens-sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 100 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,988 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00100 $0.01988
Opus 5.5 $0.00040 $0.00795
Sonnet 5.5 $0.00020 $0.00398
Haiku 4.5 $0.00010 $0.00199

Measured yesterday against content hash a6a977656dcd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

design-tokens-sync scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/design-tokens-sync/SKILL.md · 99 lines

How it starts

The opening of the file, as written. The whole thing — 99 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 through figma_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, then figma_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)

  1. Preview first: figma_export_tokens({ strategy: "dry-run" }), or with explicit options:
    figma_export_tokens({ format: "dtcg", outputPath: "src/styles/tokens/", modes: "all",
                          splitByCollection: true, dtcgDialect: "legacy", strategy: "dry-run" })
    
    Check source, wouldWriteTo, and the token counts.
  2. 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 requested collectionIds entry 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 to replace unless the person agrees after seeing what would be lost.
  3. 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.

Read the full file on GitHub · 99 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 99 lines · 100 tokens per session scan A a6a977656dcd

Subscribe to this mod's changes

design-tokens-sync is a skill published in the GitHub repository southleft/figma-console-mcp (3,455 stars, last pushed today), licensed MIT. It adds 100 tokens to every session and 1,988 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-27.

Related

design-tokens-sync compared with skills from other repositories

design-tokens-sync next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
design-tokens-syncsouthleft/figma-console-mcpSkill3.5ktodayMITA100Claude Code, Codex
design-to-code-checkmurphytrueman/design-system-opsSkill2262mo agoMITA71Claude Code
memoire-design-toolingmemi-design/design-skillsSkill82mo agoMITA57Claude Code, Codex
better-uimemi-design/design-skillsSkill82mo agoMITA82Claude Code, Codex
token-architecturememi-design/design-skillsSkill82mo agoMITA39Claude Code, Codex
design-to-code-handoffmemi-design/design-skillsSkill82mo agoMITA48Claude Code, Codex
analyze-component-set-figmasouthleft/skills-for-figmaSkill225mo agoMITA180Claude Code