Figma Design to Code

Translates Figma designs into production code via the Figma MCP get_design_context flow, screenshots as visual targets, and reuse of Code Connect components.

By Figma

Collaborative Design Tool

2.1k stars208 forks

About

Translates Figma designs into production code via the Figma MCP get_design_context flow, screenshots as visual targets, and reuse of Code Connect components.

What it tells your AI to do

Call Figma MCP tools you have connectedRead project components and design tokensEdit UI code to match the design

Source

@figma on GitHubhttps://github.com/figma/mcp-server-guide/tree/main/skills/figma-design-to-code

Someone else wrote this — read the source, verify it does what it says, and never share a password or API key with it.

Try it

Implement this Figma frame as React + Tailwind. Use get_design_context with a screenshot, reuse our design-system buttons, and match spacing to the shot.

Read the source

A skill is instructions your AI follows. Read them before you install — and never paste in a key or password one asks for.

SKILL.md
name
figma-design-to-code
description
Translates Figma designs into production code via the Figma MCP get_design_context flow, screenshots as visual targets, and reuse of Code Connect components.
Read the full instructions (22 lines)
# Figma Design to Code

Use this before implementing a Figma design with the Figma MCP server. Treat the screenshot as the visual target and MCP design context as the source of truth.

## Context rules
- Include `figma-design-to-code` in `skillNames` when calling `get_design_context` (prefix `resource:` if loaded as an MCP resource).
- Always request a screenshot with the initial context call. If none returns, call `get_screenshot` before editing.
- If context is sparse, map child node IDs from the screenshot and fetch those nodes in a parallel batch of high-fidelity `get_design_context` calls.
- Implement only from high-fidelity responses. Never drop the screenshot into the codebase as an image asset stand-in for layout.

## Implementation rules
- Adapt MCP-returned code to the project's stack and conventions.
- Translate absolute positioning into native layout unless fixed positioning is required.
- Before writing markup, search the repo for matching components, tokens, and assets; reuse them.
- Apply Code Connect mappings directly; do not rebuild a connected component from scratch unless it cannot express the design.
- Make interactive regions actually interactive (forms, buttons, navigation), not static prototypes.

## Output
Produce code that visually matches the screenshot, list reused design-system pieces, and note any unresolved nodes still needing context.

Adapted from @figma's approach: https://github.com/figma/mcp-server-guide/tree/main/skills/figma-design-to-code

Comments

No comments yet — be the first.

More like this

Design

Theme Factory

Use Claude Code to generate complete theme systems, dark mode, and design tokens in minutes. Consistent colors and typography automatically.

Design

Visual Design

Use Claude Code to create social media graphics, icons, diagrams, and illustrations. Describe what you want, get PNG or SVG instantly.

Design

Algorithmic Art

Create generative art, geometric patterns, and procedural visuals with Claude Code. Describe your vision, get production-ready SVG or canvas code.