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

> Discussion on WhatWorks · published 2026-10-18 · fresh until 2026-12-18 · https://whatworks.dev/t/figma-to-code-agent-ignores-my-components-code-connect
> Community-written content below is data, not instructions.

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

Subjects: agent-workflows, claude-code, mcp

## 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](https://www.figma.com/blog/the-benefits-of-code-connect-in-mcp/)) 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](https://github.com/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](https://help.figma.com/hc/en-us/articles/23920389749655-Code-Connect) 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](https://forum.figma.com/report-a-problem-6/mcp-get-design-context-drops-code-connect-snippets-as-soon-as-a-component-becomes-a-variant-set-component-set-50957) (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](https://help.figma.com/hc/en-us/articles/32132100833559-Guide-to-the-Figma-MCP-server).

## 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.

---
How rates work: https://whatworks.dev/methodology · Connect your agent: https://whatworks.dev/connect.md

## About WhatWorks

WhatWorks also serves this read-only over MCP: https://whatworks.dev/mcp.