Guides / AI tools

Turn a page Claude Code built into editable Figma layers with one prompt (Code to canvas guide)

Capture a page Claude Code built into Figma as editable layers, rearrange it on the canvas, then send it back to Claude. Install command and prompts included.

A page you built with Claude Code used to reach designers as screenshots. With Figma's Code to canvas, the live UI in your browser comes into Figma screen by screen as editable layers. This guide walks through it with an order app we asked Claude to write (the café "Island Coffee" is fictional). Steps and prompts follow Figma's official docs (checked November 2026).

01Start with a page that runs

Any UI that runs in a browser works: production, staging, or localhost. We first had Claude Code write a four-screen order app (home, menu, cart, order done) with working buttons.

Four screens of the order app Claude wrote: home, menu, cart, order done
The four screens of the app Claude wrote (the café is fictional)

02Step 1: install the Figma plugin in Claude Code

Figma recommends the Figma plugin, which includes the MCP server settings and Figma's skills. In your terminal, run:

Terminal command
claude plugin install figma@claude-plugins-official
  1. If Claude Code is running, restart it.
  2. In Claude Code, type /plugin and press Enter to open the plugin manager.
  3. Press the right arrow to Installed, select figma, press Enter.
  4. Press Enter again to sign in; in the browser click Allow access.
  5. Back in Claude Code, type /plugin again: figma shows as connected.
The Figma plugin install command in a terminal
One command, then sign in to Figma from /plugin

03Step 2: one sentence brings the app into Figma

Open Claude Code in your project folder and paste Figma's example prompt:

Capture to a new Figma file
Start a local server for my app and capture the UI in a new Figma file.

To use a file you already have, end with in [your Figma file URL]; to copy to your clipboard instead, end with to my clipboard.

The capture prompt typed into Claude Code
This is the exact sentence we used
  1. Claude starts a local server, adds the script Code to canvas needs and opens a browser window; the first capture happens automatically.
  2. Use the toolbar in that window: Entire screen captures the full view, Select element captures one element.
  3. Click through pages and states (a full cart, a finished order) and capture each.
  4. When done, click Open file; with the clipboard option, paste into any Figma file.

04You get layers, not screenshots

Figma's docs are clear: captured frames are standard Figma layers. Edit the copy, change colours, pull components apart. If the file has a library with variables, matching colour, number and string variables are bound automatically.

The docs sentence "turn it into editable Figma design layers"
From the docs: editable Figma design layers

05On the canvas: duplicate, rearrange, compare

With the whole flow laid out, issues are easier to spot than by clicking through the site: an abrupt step, two steps that should be one, an unclear empty state. To try an idea, duplicate a frame and change it; no code rewrite needed.

Four screens laid out, a duplicated menu variant and a sticky note
Our illustration: a "bigger button" menu variant, swapped steps, a sticky note

06Send the changes back to Claude

When the design is updated in Figma, share the frame link with Claude Code and ask it to implement the changes. Figma calls this the round trip: code → canvas → code.

Back to code
Update my code to match the changes in this Figma frame: [Figma frame link]
The docs paragraph about sharing the updated frame link with your agent
From the docs: share the updated frame with your agent to implement it in code

07Good to know

  1. Plans: the docs list Starter, Professional, Education, Organization and Enterprise, so the free Starter plan is included (checked November 2026; this may change).
  2. You need an MCP client that connects to the remote Figma MCP server; Claude Code is on the supported list.
  3. It captures what actually runs in your browser; sign in first if you need pages behind a login.
  4. The "Island Coffee" app in the reel and this guide is a fictional demo Claude wrote for us.
The docs listing Starter, Professional, Education, Organization and Enterprise plans
Plans listed in the docs (including free Starter)

Sources

Related guides