Figma Sync
/install figma-sync
figma-sync
Bidirectional Figma ↔ Code synchronization skill.
Setup
export FIGMA_TOKEN="your-personal-access-token"
Get a token at https://www.figma.com/developers/api#access-tokens
Commands
Pull (Read + Generate Code)
python3 scripts/figma_pull.py --file-key \x3CKEY> --platform rn-expo --output-dir ./out
python3 scripts/figma_pull.py --file-key \x3CKEY> --node-ids 1:2,3:4 --platform web-react --output-dir ./out
Outputs: designModel.json, tokens.json, codePlan.json, and generated component files.
Push (Write Back)
python3 scripts/figma_push.py --file-key \x3CKEY> --patch-spec patch.json
python3 scripts/figma_push.py --file-key \x3CKEY> --patch-spec patch.json --execute # actually apply
Dry-run by default. Pass --execute to apply changes.
Diff
python3 scripts/figma_diff.py --file-key \x3CKEY> --local-model designModel.json
Outputs changes and a patchSpec to sync.
Preview
python3 scripts/figma_preview.py --file-key \x3CKEY> --operations ops.json
Shows what would change without touching anything.
Platforms
- rn-expo: React Native + Expo + TypeScript (primary)
- web-react: React + Tailwind CSS (secondary)
Rate Limits
Uses exponential backoff, ETag caching, and respects Figma's rate limits (~30 req/min).
Cache stored in .figma-cache/ directory.
References
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install figma-sync - After installation, invoke the skill by name or use
/figma-sync - Provide required inputs per the skill's parameter spec and get structured output
What is Figma Sync?
Read Figma files, extract design tokens, generate React Native Expo TS or Web React + Tailwind code, write back to Figma, and diff local models against Figma for minimal patches. Triggers: "pull figma", "sync figma", "figma to code", "push to figma", "diff figma", "extract design tokens", "generate from figma", "preview figma changes". It is an AI Agent Skill for Claude Code / OpenClaw, with 1448 downloads so far.
How do I install Figma Sync?
Run "/install figma-sync" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Figma Sync free?
Yes, Figma Sync is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Figma Sync support?
Figma Sync is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Figma Sync?
It is built and maintained by kristinadarroch (@kristinadarroch); the current version is v1.0.0.