Figma to Code

Matt Legrand, Staff Product Designer, Replit
February 14, 20242 min read
Figma to Replit plugin

Figma-to-Replit plugin

avataravatar
Matt Legrand & Devin Halladay

Replit Labs is a space for creative hacker projects and experiments. As a Hack Week project, Devin and I built the Figma-to-Replit plugin and released it to the community.

After selecting a frame in Figma, the plugin generates a React project and opens a new repl. The project can be built and deployed in seconds. The goal: streamline the process from designing in Figma to prototyping with code, generating visually accurate, responsive code from designs.

Unlike tools that provide simple HTML approximation with inline styles, the export is high-quality and well-organized. Figma components become React components; styles are built and compiled using Lightning CSS. For most web projects, this is a valuable starting point that saves significant frontend work.

Generate a Repl directly from your Figma design and instantly share a static React site. Use Replit AI to add functionality and tweak your design before deploying to production.

Prototyping event at a16z SF office

Debut

We showcased the plugin in a live demo at a prototyping workshop at the a16z SF office. It hit top 10 among Figma’s trending plugins.

Figma-to-Replit was one of the first plugins to support Dev Mode and was featured in Figma’s blog post on Dev Mode plugins that generate code. We leverage Dev Mode to inspect frames, preview project structure, debug responsivity, and include or exclude files and assets.

Install it here.