published fresh until

Why does my agent's Figma build ignore my components?

Summary When Figma-to-code output ignores your components, map them with Code Connect and add screenshot checks from Figma's official skill. Figma's 27-case test with Claude Sonnet 4.5 and Opus 4.7 found median code quality rose from 2 to 3 of 4 and tokens fell 29.5%. Not tried by WhatWorks.

Not for pulling a built UI into Figma; design tokens and rules file

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The problem

You connect the Figma MCP server to your coding agent, paste a frame link and ask it to build the screen. The result looks roughly right but is made of fresh markup: the agent re-creates your buttons, tabs and steppers instead of importing the ones in your repo, and spacing or fonts drift from the design. This entry is about that gap, Figma to code. The reverse direction is in code-first-ui-then-figma-console-mcp, and exports from a design canvas are in claude-design-or-stitch-export-to-claude-code.

What Figma's own test says

Figma's engineering blog post "Better code, fewer tokens: The benefits of Code Connect in MCP" (Tom Weightman, 5 Aug 2026) describes a test of 27 cases with and without Code Connect, run through get_design_context on two React design systems with Claude Sonnet 4.5 and Opus 4.7, scored by LLM judges. These are Figma's numbers, not independent ones:

  • Median code quality went from 2 to 3 on a 1 to 4 scale; token use fell 29.5% and task time fell 19.6%.
  • Coverage was the biggest factor. In the larger system only about 6% of the response was Code Connect snippets, in the example system about 20%; more coverage meant fewer exploratory tool calls.
  • Without it, one run hand-built tabs and buttons that were not functional. A Coinbase engineer quoted in the post said the agent sometimes fabricated components, for example a stepper made of progress bars.

What to do, as the official sources describe it

1. Map your components with Code Connect. The Figma mcp-server-guide says linking components to your codebase is the best way to get consistent reuse: "Without it, the model is guessing." As of November 2026, Figma's Code Connect help page lists Professional, Education, Organization, Government and Enterprise plans with a Full or Dev seat; the UI maps published library components. 2. Prompt with the target. The guide's examples: name the framework, the component folder ("Use src/components/ui components") and the exact file to add to. The default output of get_design_context is React plus Tailwind, which the agent is expected to translate. 3. Use the official design-to-code skill. The repo ships a figma-design-to-code skill (also bundled in Figma's plugin). Its rules include: take a screenshot as the visual target, inspect project paths for matching components and tokens before editing, reuse a Code Connect component whenever it can express the design, and verify every static asset before finishing. 4. Split big frames. For large selections call get_metadata first, then fetch child nodes one by one; the guide warns large selections cause errors and incomplete responses. 5. Make it prove the result. Ask for a screenshot comparison of the finished screen against the Figma frame, and review the diff yourself. Mixed reports exist from people who ran Claude with Figma MCP and Playwright on larger features: the agent said it was validated while the UI still differed. I did not verify that.

Common mistakes

  • Reconnect after upgrades: in a Figma forum thread (Oct 2025) staff said get_code was renamed get_design_context and clients with an old tool list fail until they reconnect. Reconnecting or restarting the desktop MCP server fixed it for several posters.
  • Variants: a Figma forum report (Feb 2026, no staff reply, unresolved on the page I read) says Code Connect snippets vanish once a component becomes a variant set. Check this on your own library.
  • Seats: as of November 2026, the desktop server needs a Dev or Full seat on a Professional, Education, Organization, Government or Enterprise plan, per Figma's help article.

Sources

Figma blog (Aug 2026); figma/mcp-server-guide README and skills; Figma forum threads; Figma help center. I read these on 2026-10-18 and did not run the workflow.

Started from a post by @Tom Weightman (Figma), packaged by the editor. Original post

Subjects

More in agent workflows

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Why does my agent's Figma build ignore my components?
Summary: When Figma-to-code output ignores your components, map them with Code Connect and add screenshot checks from Figma's official skill. Figma's 27-case test with Claude Sonnet 4.5 and Opus 4.7 found median code quality rose from 2 to 3 of 4 and tokens fell 29.5%. Not tried by WhatWorks.
Copy for agent
get the whatworks thread figma-to-code-agent-ignores-my-components-code-connect and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread figma-to-code-agent-ignores-my-components-code-connect
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks