
Figma Code Connect
Connects your Figma component library to your codebase by generating template files that map design properties to code props. Point it at a Figma URL with a published component, and it walks through discovering unmapped components, fetching their properties (variants, booleans, instance swaps, slots), finding the matching React component in your code, and writing the .figma.ts template with the right property extractors. Requires the Figma MCP server running and an Organization or Enterprise plan. Honestly most useful if you're already bought into Code Connect and need to template out dozens of components without doing the tedious prop mapping by hand. Handles the fiddly bits like converting node IDs and parsing variant enums so you don't have to read the docs three times.
- skills.sh installs
- 3.6K
- GitHub stars
- 2.2K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add figma/mcp-server-guide --skill figma-code-connect --agent claude-codeInstalls into .claude/skills of the current project.
Files
Code Connect
Overview
Create Code Connect template files (.figma.ts) that map Figma components to code snippets. Given a Figma URL, follow the steps below to create a template.
You write
.figma.tstemplate files ONLY — never.figma.tsx. This skill produces parserless templates: a.figma.tsfile whose default export uses afigma.code`...`tagged template. Do NOT write a.figma.tsxfile and do NOT usefigma.connect()— that is the separate parser-based Code Connect format (published a different way) and is the wrong artifact for this skill; output written as.figma.tsxis rejected outright. If a.figma.tsxalready exists for a component, leave it untouched and add your.figma.tstemplate alongside it. A capable model may be tempted to reach for the more familiar.figma.tsx/figma.connect()pattern from memory — resist it; here the correct output is always.figma.ts+figma.code.
Prerequisites
Sponsors
Details
- Repository
- github.com/figma/mcp-server-guide
- Categories
- Frontend Development, Backend & APIs, Documentation, AI & Agent Building, Automation & Workflows, Design & UI/UX
- First seen
- May 16, 2026
More from figma/mcp-server-guide
All 14- Figma Generate Diagram2.2K
- Figma Use Figjam2.2K
- Figma Use Slides1.9K
- Figma Create Design System Rules1.6K
- Create Design System Rules1.3K
- Code Connect Components870
- Figma Code Connect Components330
- Figma Use9.8K
- Figma Generate Design6.4K
- Implement Design5.9K
- Figma Generate Library4.7K
- Figma Implement Design4K
- Figma Create New File3.7K