Back to Plugins
Code-to-Figma | React (Next/Vite) on Figma

Code-to-Figma | React (Next/Vite) on Figma

Preview localhost, paste as editable Figma layers.

Plugin Preview

Code-to-Figma | React (Next/Vite) on Figma preview

About this plugin

Code to Figma bridges your running dev server and Figma. Open any localhost URL inside the plugin, then hit Paste — your live UI becomes real, editable Figma layers instantly.No screenshots. No manual rebuilding. Just your actual app, captured as frames, text, rectangles, and images you can work with.HOW IT WORKS1. Install the companion package in your project:npm i code-to-figma -D(The postinstall script wires up the capture shim automatically — nothing else to configure.)2. Open the plugin, type your localhost URL, press Enter.3. Hit Paste. Your running UI lands in Figma as editable layers.WHAT YOU GET• Frames, rectangles, text, and images — all fully editable• Color and text styles auto-mapped (or matched to your existing Figma styles)• Viewport presets: Desktop, Tablet, Mobile, or custom dimensions• Scale control to fit any screen size• Zero production impact — the shim is tree-shaken out by your bundler via a NODE_ENV guardWHO IT'S FORFrontend developers who want to get real UI into Figma fast — for design reviews, handoff, documentation, or just keeping designs in sync with what's actually shipped.

Plugin Details

Version6
CreatedApril 25, 2026
Last UpdatedMay 17, 2026
CategoryImport & export plugins
CreatorPradyumna K S
Stats15 installs, 4 likes
PricingFree

Technical Details

  • API:1.0.0
  • UI:dist/ui.html
  • main:dist/code.js
  • Document Access:dynamic-page
  • Network Access:

    The plugin embeds the user's own localhost dev server in an iframe so developers can preview and capture their running app. Dev servers run on arbitrary ports (3000, 5173, 8080, etc.) that cannot be enumerated in advance; '*' is the documented fallback for this use case per Figma's network access guidelines.

  • Editor Types:
    figma
  • Allowed Domains:
    • *