Skip to main content

Code on the Figma canvas

Nikolas KleinProduct Manager, Figma
Split-screen product concept showing an exhibit webpage, a generated ticket-booking interface, and the corresponding React code implementation side by side, illustrating a design-to-code workflow.Split-screen product concept showing an exhibit webpage, a generated ticket-booking interface, and the corresponding React code implementation side by side, illustrating a design-to-code workflow.

With code layers in Figma Design, you can explore multiple directions with code, side by side with your team.

Share Code on the Figma canvas

Agents have expanded who can build and what’s possible to create. But too often, the process of getting there happens alone, in separate chats, disconnected workflows, and isolated exploration.

Getting started is flexible:

In Figma Design add a code layer from the toolbar, create one from an existing frame, or ask the Figma agent to generate one. From there, start from a template or describe what you want to build. You can also bring in an existing codebase—import a GitHub repository or upload a local folder directly.

In Make generate and edit code, then bring it onto the canvas as a code layer to explore, compare, and refine with your team.

With code layers in Figma Design, interactive code becomes part of the canvas itself, making it easier for teams to explore, iterate, and shape ideas together in the same place.

Explore options with code layers on the Figma canvas.

Entertain all your alts

Designers have always duplicated frames to try alternatives—code layers work the same way. Working experiences can live on the canvas so you can compare how options actually feel, not just how they look. Move, adjust, and resize elements and get an immediate code response. Keep iterating with prompts and the agent generates a new version while preserving the original. Since code layers exist in your shared file, teammates can jump in, leave comments, and prompt against the same layer.

A map design with a location pin, beside a menu showing "Build this with code" highlighted.A map design with a location pin, beside a menu showing "Build this with code" highlighted.
Turn any frame on the canvas into working code by asking the agent to build it for you.

Move between your materials

Code layers make software explorable. By selecting extract designs you can make code visually understandable by converting the current state back into editable Figma layers. You decide what comes onto the canvas—a single screen, a specific state, or a full flow. From there, one click updates the code layer with your edits. So you can work fluidly between the canvas and code.

Two mobile app mockups in a design tool, with a toolbar reading "Extract designs" and "Open code editor."Two mobile app mockups in a design tool, with a toolbar reading "Extract designs" and "Open code editor."
Extract key flows and states from code onto the canvas as editable design layers.

Refine with your judgment

When you want more specificity you can annotate in the code editor and ask the agent to make your desired change or click in and make the edit yourself. Once you're happy, convert it back to the code layer and push to your repo so your source reflects the changes you landed on. Now your whole team can see the update.

A code editor showing App.tsx React code, overlaying a dark event page design.A code editor showing App.tsx React code, overlaying a dark event page design.
Make changes to the code generated in the code editor.

With code layers in Figma Design, the canvas becomes a shared space where design and code evolve together—a place to try things, compare them, and land on the right idea to build.

Code layers are rolling out in closed beta over the next few weeks. Sign up here to request early access. Visit our help center to see a round-up of what we launched at Config, and how to get started. Find answers and inspiration on all things Figma at Figma Learn.

Collage-style product graphic showcasing AI-assisted design and development workflows, with plugin creation prompts, visual effect controls, code generation tools, and interactive UI components arranged across a creative workspace.Collage-style product graphic showcasing AI-assisted design and development workflows, with plugin creation prompts, visual effect controls, code generation tools, and interactive UI components arranged across a creative workspace.

Read Figma CEO and Co-founder Dylan Field’s recap of Config.

Nikolas Klein is a product designer turned product manager. He’s been working at Figma since 2018, and has always been focused on getting more people to explore their interactive ideas together. He is now a PM on Figma Make.

Subscribe to Figma’s editorial newsletter

By clicking “Subscribe” you agree to our TOS and Privacy Policy.

Create and collaborate with Figma

Get started for free