figma avatar

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-code

Installs 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.ts template files ONLY — never .figma.tsx. This skill produces parserless templates: a .figma.ts file whose default export uses a figma.code`...` tagged template. Do NOT write a .figma.tsx file and do NOT use figma.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.tsx is rejected outright. If a .figma.tsx already exists for a component, leave it untouched and add your .figma.ts template 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
1dotnet avatarcreate-datadriven-aspnetcoredotnet/skillsGenerate or scaffold ASP.NET Core code — Razor Pages, Blazor components, MVC controllers, views, and Minimal API endpoints — without using ASP.NET Core CLI scaf3.5Kskills.sh installs
2majidmanzarpour avatarthreejs-qa-releasemajidmanzarpour/threejs-game-skillsVerify and release Three.js browser games. Combines playtest QA, automated bot playtests, mobile/responsive checks, production builds, preview verification, sta3.5Kskills.sh installs
3netlify avatarnetlify-formsnetlify/context-and-toolsGuide for using Netlify Forms for HTML form handling. Use when adding contact forms, feedback forms, file upload forms, or any form that should be collected by 3.3Kskills.sh installs
4netlify avatarnetlify-identitynetlify/context-and-toolsUse when the task involves authentication, user signups, logins, password recovery, OAuth providers, role-based access control, or protecting routes and functio3.2Kskills.sh installs
5web-infra-dev avatarios-device-automationweb-infra-dev/midscene-skillsVision-driven iOS device automation using Midscene CLI. Operates entirely from screenshots — no DOM or accessibility labels required. Can interact with all visi3.2Kskills.sh installs
6freshtechbro avatarlottie-animationsfreshtechbro/claudedesignskillsAfter Effects animation rendering for web and React applications. Use this skill when implementing Lottie animations, JSON vector animations, interactive animat3.1Kskills.sh installs