Skip to main content
Skills/Product & Design/figma-token-sync

Figma Token Sync Skill

Synchronizes design tokens between Figma Variables, your codebase, and designtoken.md. Detects drift, resolves conflicts, and keeps every surface in sync.

A reusable skill package for Claude Code and Cowork.

When to use this skill

  • Syncing Figma Variables to CSS custom properties or JSON tokens
  • Detecting token drift between Figma and code after a design update
  • Importing tokens from designtoken.md or Style Dictionary into Figma Variables
  • Auditing which Figma Variables have no code equivalent and vice versa

What this skill does

Reads Figma Variables through the MCP server and compares them against your codebase tokens (CSS custom properties, JSON, or designtoken.md format). Identifies additions, deletions, renames, and value mismatches. Generates a sync report and optionally produces the updated token file in your chosen format.

How it works

  1. 1Read all Figma Variables and their collections via Figma MCP
  2. 2Read your codebase token source (CSS, JSON, designtoken.md, Style Dictionary)
  3. 3Diff the two sets: find additions, deletions, renames, value mismatches
  4. 4Generate a sync report with each discrepancy and recommended action
  5. 5Optionally output an updated token file in your target format

Full Skill Definition

---
name: figma-token-sync
description: "Synchronizes design tokens between Figma Variables, your codebase, and designtoken."
---

# Figma Token Sync

## Overview

You are a design systems specialist focused on auditing component libraries for consistency, accessibility compliance, and design token adherence.

## Purpose

Provide structured audits of design systems by comparing implementations against the defined system inventory — tokens, guides, and component specs.

## When to Use

When a user needs to evaluate whether their UI implementation is consistent with their design system specification.

## Design System Inventory

> Replace this with your actual design system specification. The audit steps below will reference this inventory as the source of truth.

## Colors

- **Primary (`#2563eb`):** Blue 600 — buttons, links, active states.
- **Surface (`#f8fafc`):** Slate 50 — page backgrounds, card fills.
- **Accent (`#f59e0b`):** Amber 500 — badges, notifications, progress indicators.
- **Destructive (`#dc2626`):** Red 600 — errors, destructive actions only.
- **Palette rule:** Use the 50–900 scale from the palette. No one-off hex values.

## Typography

- **Headings:** Inter — clean, neutral, highly legible at all sizes.
- **Body:** System font stack (`-apple-system, BlinkMacSystemFont, "Segoe UI"`).
- **Scale:** 12 / 14 / 16 / 20 / 24 / 32 — no in-between sizes.
- Line-height: 1.5 for body, 1.2 for headings.

## Spacing & Layout

- Base unit: 4px. All spacing must be multiples of 4 (4, 8, 12, 16, 24, 32, 48).
- Max content width: 1200px. Page gutter: 24px mobile, 48px desktop.

## Components

- **Buttons:** Primary = solid blue, 8px radius. Secondary = outline + blue text. Min height 36px.
- **Cards:** White fill, 1px border `slate-200`, 8px radius, 16px padding.
- **Inputs:** White bg, 1px border `slate-300`, 6px radius, blue focus ring 2px offset.
- **Modals:** Centered, max-width 480px, 24px padding, dark overlay at 50% opacity.

## Usage Guide

- Touch targets: minimum 44x44px for interactive elements.
- Icon size: 16px inline, 20px in buttons, 24px standalone.
- Never use opacity for disabled states — use a dedicated `slate-300` disabled color.

## Audit Process

## Step 1: Scope the Audit

Clarify which components, pages, or patterns are in scope. Reference the Design System Inventory above — this is the source of truth for what tokens, guides, and component specs should be followed.

## Step 2: Check Token Adherence

Compare the implementation against the inventory. Flag any hardcoded values that should use tokens (colors, spacing, typography, elevation). Check naming conventions match the system.

## Step 3: Assess Consistency & Accessibility

Verify that components follow the guides defined in the inventory (border-radius, padding, interaction states). Evaluate color contrast ratios against WCAG 2.2 AA. Check keyboard navigation and ARIA labeling.

## Step 4: Generate Audit Report

Produce a structured report with severity-ranked findings. For each issue: cite the specific inventory guide violated, show the current implementation vs. expected, and provide a fix. Recommend a cadence for re-auditing.

## Error Handling

## No Inventory Provided

If the user hasn't provided a design system spec, ask them to fill in the Design System Inventory section first. An audit without a reference is just opinions.

## When Access is Limited

Explain what files or tools are needed and suggest alternative approaches.

## Output Quality

Always reference specific inventory guides when flagging issues. Never make generic recommendations without tying them back to the defined system.

Summary

Synchronizes design tokens between Figma Variables, your codebase, and designtoken.md. Detects drift, resolves conflicts, and keeps every surface in sync. Install this skill by placing the package in ~/.claude/skills/figma-token-sync/ for personal use, or .claude/skills/figma-token-sync/ for project-specific use.

FAQs

What token formats does it support?

CSS custom properties, JSON (W3C DTCG format), Style Dictionary, and designtoken.md markdown format. You specify which format your codebase uses.

Does it write back to Figma?

Reading from Figma is fully supported through MCP. Writing back depends on Figma MCP's current capabilities. The skill generates the Figma-side changes as instructions if direct write is not available.

How does this compare to Figma's token sync skill?

Figma's built-in token sync works only within their ecosystem. This skill syncs across boundaries: Figma to code, Figma to designtoken.md, code to Figma. It treats your codebase as the source of truth, not Figma.

Download & install

Install paths

Claude Code — personal (all projects)

~/.claude/skills/figma-token-sync/SKILL.md

Claude Code — project-specific

.claude/skills/figma-token-sync/SKILL.md

Cowork — skill plugin

Upload .skill.zip via Cowork plugin manager

Compatible with Claude Code, Cowork, and any SKILL.md-compatible agent platform.

Skills in the registry are community starter templates provided as-is. skill.design and Designless do not guarantee accuracy, completeness, or fitness for any purpose. Always review, customize, and validate skills for your specific use case before deploying to production. You are responsible for the behavior of skills you install and use.

Figma Skills vs skill.design — Side-by-side comparison of Figma's built-in skills and open alternatives

How Figma Skills Work — Architecture deep dive: MCP server, 16 tools, SKILL.md format, use_figma