What it is
Turning a Figma component design into scaffolded, convention-following component code. The Figma MCP supplies the visual truth, including the structure, layout, spacing, sizing, variants, and the variables/tokens bound to the design. The zeroheight MCP supplies the system truth, naming conventions, prop/API patterns, documented states, accessibility requirements, and whether something like this already exists. The AI reads both, then scaffolds the component: a typed props interface, variant and state handling, tokens wired to your theme, a11y attributes, and (if your repo uses them) a story file and test stubs that match your existing patterns.
The key idea: Figma alone gives you pixels with no governance; zeroheight alone gives you governance with no pixels. Together with your actual design-system code via the package, you get a component that looks right and is built the way your system says it should be.
Scope: net-new components from an approved design, rebuilding an existing component against an updated design, or generating the scaffold for an engineer to finish.
Benefits
This closes the most expensive gap in design system work: the distance between “design approved” and “component merged.” Instead of an engineer eyeballing a Figma frame, hunting through docs for the naming and a11y rules, and hand-writing boilerplate, the AI assembles a first pass that already follows your conventions. That means dramatically less PR back-and-forth, because the component is named, typed, and structured the way your system documents from the first commit.
Accessibility comes from the docs rather than being bolted on later. Consistency across contributors improves because everyone’s scaffold follows the same documented rules. A mid-level engineer can produce a component that is structured like one a senior engineer would build. And because the zeroheight MCP can check the docs first, the AI can catch “this already exists under a different name” before a duplicate gets built.
Pitfalls
Figma file hygiene is make-or-break. If the design isn’t built with proper auto-layout, named layers, real variants, and bound variables, the Figma MCP hands the AI mush and you get mush back. This use case rewards teams with disciplined Figma practices and punishes those without.
Other watch-outs:
- Two-source conflicts. Figma might use a raw hex where the docs say “use token X.” The
skills.mdneeds a clear rule for which wins (default: the documented token). - Both MCPs are read-only. Neither writes back. The new component won’t get a zeroheight doc page or update the Figma file. Documenting the component afterward is a separate, manual step.
- Scaffolded ≠ done. Output needs human review for logic, edge cases, responsive behavior, performance, and tests that actually assert something. Don’t let “it compiles” read as “it’s ready.”
- Token mapping gaps. If your Figma variables aren’t mapped cleanly to your code tokens, the AI will approximate. You should always verifiy they match.
What you'll need
- A zeroheight styleguide with Remote MCP enabled, plus the MCP server URL (available on plans with API access)
- Figma’s Dev Mode MCP server enabled (runs locally via the Figma desktop app; requires a seat with Dev Mode)
- A Figma file where the component is built properly: auto-layout, named layers, variants, and bound variables/tokens
- Your design system package (
@acme/design-system) and component-library repo open in your working environment. This is how the AI works directly with your real component code (props, types, exports). The code already in your environment is the source of truth; no mapping layer required. - An MCP-compatible AI coding tool (see options below)
- The
skills.mdfile (below) at the repo root - Optional: Figma Code Connect. It’s only worth setting up if your Figma and code component naming diverge significantly, or if people work in Figma Dev Mode without the repo open. If the package is already in your environment, you don’t need it.
How to set this up
- Enable Remote MCP in zeroheight and copy the server URL.
- Turn on Figma’s Dev Mode MCP server in the Figma desktop app (Preferences → enable the MCP server). It runs on a local endpoint.
- Register both MCP servers in your AI tool’s
mcp.json— the zeroheight remote URL and the Figma local server. Confirm both connect (ask the AI to list zeroheight pages, and to read your current Figma selection). - Open your component-library repo with the design system package installed in the AI tool, so it can read your real components, props, types, and conventions directly — this is the AI’s source of truth for the code.
- Drop the
skills.mdat the repo root (or paste into.cursorrulesfor Cursor). - Select the component frame in Figma (the Dev Mode MCP works from your current selection or a node link).
- Prompt (see the sample below).
- Review, finish, document. Fill the gaps, write meaningful tests, open the PR, and add the component’s documentation page in zeroheight (the MCP won’t do this for you).
Try it
Sample prompt
Build the PricingCard component from my current Figma selection. Use the Figma MCP for the design, the zeroheight MCP for our naming, prop, variant, and accessibility conventions, and match our existing components in src/components.
What good looks like
What good looks like: a typed component that mirrors your repo’s patterns, implements every documented variant and state (including ones missing from the frame), binds tokens via your theme API, includes a story and test stub, and ends with a short report of which Figma node and zeroheight pages it used and any conflicts it reconciled.




