· 8 min read · Figma, AI, Design Systems, Process

Figma code layers and why the canvas matters

A Figma canvas with a code layer running a ticket booking flow and its code open next to it
Image: Figma

Figma put running code on the canvas. They call it code layers and it lands at a moment when a lot of companies are asking whether they need Figma at all.

Working straight out of code just makes so much more sense, conceptually. You design and the result is what you design. No translations from your pixel-perfect design through possibly a bored/overworked/disinterested frontend developer. In practice it shows that its not that simple.

What code layers are

A code layer is an interactive prototype backed by running code that sits right on the canvas, next to your normal frames. As far as Figma's examples show, it's built on React. You can click it, type into it and see real states and animations, not a click-through of static screens.

Then you edit it by either prompting the agent, by editing the code or with point and edit. "Extract designs" turns the current state or a whole recorded flow into normal Figma layers. You fix them like any other design and push the changes back into the code layer. If the code layer came from GitHub, it stays connected and can open a pull request (neat) .

There is a cost. AI is no longer free in Figma. Creating one from frames costs at least 250 credits and a Professional Full seat gets 3,000 a month. So that's at most about a dozen code layers a month before you buy more. Fewer if you also edit them.

The pieces around it

Code layers don't stand alone. Over 2026 Figma opened up a lot: code to canvas, write to canvas, the Figma agent, Specs (beta), Guidelines (beta) and code sources in libraries (beta). Put together, that's a whole round package. Design in Figma, build with an agent, pull the result back into Figma, fix it visually and send it back.

Does it catch up with Claude Design?

Claude Design artefact is Anthropic's design tool. You describe what you need and it builds it on a canvas of artboards, as a web page made of some Anthropic version of HTML and React, same as code layers. You can edit visually a bit, ask for variations with varying success, import your design system from your code... I wrote a bit about it in part 1 of my workflow series.

Code layers close a big part of the gap. Both now give you real running code on a canvas, both use AI to build it and both connect to coding agents. But they come from opposite sides. Each is missing what the other one has.

Claude Design starts from code and is weak at being a design tool. Anthropic's own docs say the design tool has no version history yet and that editing with several people at once is "still basic and may not work reliably". Its export list doesn't include Figma. One early review, written before a big editor update in June, called it great at the first 80% and painful at the last 20%.

Figma starts from the canvas and is weak at code. Code layers only seem to work with a limited set of lightweight projects (I haven't tested that). And everything costs Figma credits, while Claude Design uses the limits of the Claude plan you probably already pay for.

Code layers don't make Figma "as good as" Claude Design. They make Figma a design tool that can hold code, while Claude Design is a code tool that's learning to be a design tool.

Who will replace whom?

Figma's side is the hard to copy. Multiplayer, version history, libraries, permissions and ten years of designers' habits are not built in a few months. On the other hand thats just software and Anthropic doesnt get money from their desing tool. Anthropic seems to have an unlimited financing machine. Figma is not in the same playing field as Anthropic.With a few updates to the Claude Design artefact, the need for Figma might become so small that it's pointless.

Figma has to move fast, code layers are a big step, but it needs to release features to cheaper plans, fix their Figma AI credits that are expensive and don't do much. Figma would need a real two-way sync with code, tokens that work, branching that works like git, normal pricing for AI, ...

The "ditch Figma" question

Now the part I care about most. Should a software company move design into code and drop Figma?

Some companies reportedly already work code first.

But look closer and almost nobody actually dropped Figma. I couldn't find a single note about a bigger company that cancelled it across the board. Every company example I found that went code first kept Figma for something. Exploring directions, comparing variants, talking to stakeholders, assets.

And the code-first people admit what they lost.

That's the real cost. When you design in code, you design inside what the AI can build. You stop exploring and start iterating.

The first version becomes the version. Even inadvertently, that first AI prototype can imprint so strongly that even in a relaxed setup it becomes the version. In a fast-paced environment, when the BA already says it's really good, the designer will most likely not go into explore mode.

A canvas lets you put ten directions next to each other, cross things out, draw something the AI would never suggest. That's not a nice-to-have, that's most of what designing is. And it fits a pattern I keep writing about. "Move design into code" usually means "make design faster", which usually means design becomes approving screens the AI made. The exploring, the comparing, the talking to people about what they actually need, that's what gets cut. It's cheap to cut because it doesn't show up anywhere until much later.

So my answer is no. Not because code first is wrong, but dropping the canvas means dropping the place where design thinking happens. Designers, product managers, clients and management can all look at a canvas. Most of them will never look at a pull request.

Conclusion

So it's not canvas or code, we have all these tools that are suddenly interoperable. Doesn't it just make way more sense to use them all?

Canvas first, then code, then back to canvas. Explore in Figma, let Claude Code build it with your real components, pull the result back with code to canvas or a code layer, fix it visually, send it back. This is the round trip Figma is now built for. Or code first, Figma on the side. Start from a running prototype in the real codebase, refine it with AI and keep Figma for assets, details and the occasional exploration. Anything is easy.

If your company wants to ditch Figma, I'd ask what exactly it wants to get rid of. If it's the handoff, fine, code layers and coding agents can kill most of it. If it's the canvas itself, I think you'd be throwing out the part where the actual design happens.

Sources

Comments