token-sync-layer

Sync Figma design variables into code-ready token files via DTCG JSON and Style Dictionary.

77|11|Updated Jun 2, 2026
One-click install
npx skills add https://github.com/jrpease/throughline --skill token-sync-layer-jrpease
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: token-sync-layer
Source: https://github.com/jrpease/throughline/tree/main/skills/token-sync-layer
Command: npx skills add https://github.com/jrpease/throughline --skill token-sync-layer-jrpease

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires style-dictionary, and includes scripts (resource) and references (resource) components.

What problem does it solve? Design tokens defined in Figma drift out of sync with code over time, forcing developers to hand-copy values and manually reconcile colors, spacing, and typography across platforms. This Skill automates the one-directional pipeline from Figma variables to framework-specific code artifacts, landing every change as a reviewable pull request. ## Core Features & Use Cases - Figma-to-code token pipeline: Extracts every Figma variable collection, normalizes them into DTCG-format JSON (one file per mode), and compiles them through Style Dictionary v4 into platform outputs. - Multi-platform adapters: Ships vetted presets for shadcn/Tailwind, MUI, vanilla CSS, iOS Swift, and Android Kotlin, and can generate and validate adapters for any other framework. - Safety gates: Runs rename detection, contrast validation, and output verification on every sync, then lands results as a reviewable PR instead of silently overwriting files. - Use Case: A designer updates the dark-mode color ramp in Figma; you run the sync, review a PR showing tokens added, changed, and probable renames, and merge updated tokens.css, Tailwind preset, and Swift files. ## Quick Start Ask the agent to sync your Figma design tokens into code for your target platform, for example by saying: sync my Figma tokens into a Tailwind and shadcn theme and open a PR with the changes.

Frequently Asked Questions about token-sync-layer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I sync Figma design tokens to code?

Extract Figma variables into DTCG-format JSON, then compile them with Style Dictionary into platform-specific outputs like tokens.css, a Tailwind preset, or Swift files. The sync lands changes as a reviewable pull request rather than overwriting files directly.

What is the DTCG format for design tokens?

DTCG is the Design Tokens Community Group format using $value and $type fields, with semantic tokens expressed as references to primitives. It acts as the canonical intermediate between Figma variables and Style Dictionary platform outputs.

Does Style Dictionary support iOS Swift and Android Kotlin output?

Yes, but the stock ios-swift and compose transform groups mishandle px dimensions and color-mix values. This pipeline ships a custom native configuration that must be imported rather than transcribed, with one build per mode.

Can I sync Figma tokens to a framework without a preset adapter?

Yes. For frameworks outside the curated presets, an adapter is generated from the framework's conventions and verified against a real component before use. Validated adapters can be saved for reuse in future syncs.

Why did my token sync drop a light or dark mode?

Style Dictionary dedupes tokens by dot-path, so a single build over all token files collapses modes into whichever file sorted last. Run one build per mode with separate source lists to prevent silent mode loss.

What happens when a token is renamed in Figma?

The sync diffs against previous output and flags probable renames when a vanished token and a new token share identical value and type. These are surfaced prominently in the PR so reviewers can update consumers before merging.