Creative & DesignIntermediate
figma-code-connect-components
Connect Figma design components to code components using Code Connect
Developer Setup
Setup & Installation
bash
npx skills add https://github.com/figma/mcp-server-guide --skill figma-code-connect-componentsnpx skills add https://github.com/figma/mcp-server-guide --skill figma-code-connect-componentsOr paste this URL into your assistant to install:
Overview
What This Skill Does
Connect Figma design components to code components using Code Connect
Application
When to use this Skill
- Integrating figma code connect components into your development workflow.
- Following best practices for connect figma design components to code components using code connect.
- Automating repetitive tasks with AI-assisted tooling.
- Building production-grade applications with proper standards.
- Debugging and troubleshooting common implementation issues.
Documentation
Show Skills.md file
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.
Note: This project may also contain parser-based
.figma.tsxfiles (usingfigma.connect(), published via CLI). This skill covers templates files only —.figma.tsfiles that use the MCP tools to fetch component context from Figma.
Prerequisites
- Figma MCP server must be connected — verify that Figma MCP tools (e.g.,
get_code_connect_suggestions) are available before proceeding. If not, guide the user to enable the Figma MCP server and restart their MCP client. - Components must be published — Code Connect only works with components published to a Figma team library. If a component is not published, inform the user and stop.
- Organization or Enterprise plan required — Code Connect is not available on Free or Professional plans.
- URL must include
node-id— the Figma URL must contain thenode-idquery parameter. - TypeScript types — for editor autocomplete and type checking in
.figma.tsfiles@figma/code-connect/figma-typesmust be added totypesintsconfig.json:{ "compilerOptions": { "types": ["@figma/code-connect/figma-types"] } }
Step 1: Parse the Figma URL
Lines 1 - 25 of 521
Recommendations