figma avatar

Figma Code Connect

Create and maintain .figma.ts template files that map Figma components to code snippets via Code Connect.

skills.sh installs
3.7K
GitHub stars
2.2K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers URL parsing, unmapped-component discovery, property fetching, code component matching, and template authoring for Code Connect
  • Includes figma.code tagged templates with property-extraction methods such as getString, getBoolean, and getSlot, keyed to Figma TEXT, BOOLEAN, VARIANT, INSTANCE_SWAP, and SLOT properties
  • Enforces that output is always .figma.ts and never the parser-based .figma.tsx or figma.connect() format
  • Designed for teams on Organization or Enterprise Figma plans whose components are published to a team library

Install

$ npx -y skills add figma/mcp-server-guide --skill figma-code-connect -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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

Details

Repository
github.com/figma/mcp-server-guide
Categories
Design & UI/UX, Frontend & UI Code
First seen
May 16, 2026

More from figma/mcp-server-guide

All 8

Similar to Figma Code Connect

More Design & UI/UX