figma.com · Free post · Product design & UX · Building AI products

Code on the Figma canvas

FigmaJun 24, 20263 min
Sourcefigma.com
KindFree post
PublishedJun 24, 2026
Originalfigma.com ↗
N:

Figma introduces code layers, enabling designers and developers to explore interactive prototypes directly on the canvas alongside their team. Code layers allow users to generate, edit, and iterate on code within Figma Design, compare multiple design directions, and seamlessly convert between visual designs and code. This feature bridges the gap between design and development workflows, making collaboration more integrated and reducing isolated exploration in separate tools.

01Key takeaways

  • Embed interactive code exploration on the design canvas to reduce context-switching between design and development tools.
  • Enable side-by-side comparison of multiple code-based design directions to evaluate how experiences feel, not just look.
  • Support bidirectional conversion between visual designs and code to maintain alignment across design and engineering workflows.
  • Use AI agents to regenerate code variations while preserving originals, allowing rapid iteration without losing prior work.
  • Make code artifacts shareable and commentable in the same file to democratize technical exploration across non-engineering roles.

02Key sections

Sharing Code on the Canvas
Users can add code layers to Figma Design via toolbar, from existing frames, or through the Figma agent. Code can be generated from templates, descriptions, or imported from GitHub repositories and local folders, making it flexible to start from various entry points.
Exploring Design Alternatives
Code layers function like duplicated frames, allowing teams to compare multiple interactive experiences side-by-side on the canvas. The agent regenerates code based on prompts while preserving originals, and teammates can comment and iterate on the same layer collaboratively.
Bidirectional Design-Code Workflow
Designers can extract designs from code layers back into editable Figma layers, then update the code with one click. This fluid movement between canvas and code allows teams to work in their preferred medium while keeping both representations synchronized.
Refinement and Handoff
Users can annotate code directly or use the agent to make specific changes, then push finalized code to repositories. This ensures the team's source code reflects the design decisions that were validated on the canvas.
“Agents have expanded who can build and what's possible to create. But too often, the process happens alone.”Nikolas Klein · figma.com
“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…”Nikolas Klein · figma.com

03Frameworks mentioned

Summary and takeaways written by PM Atlas; quotes are short excerpts. © the original author.