Code-to-Figma | React (Next/Vite) on Figma
Preview localhost, paste as editable Figma layers.
Plugin 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
| Version | 6 |
|---|---|
| Created | April 25, 2026 |
| Last Updated | May 17, 2026 |
| Category | Import & export plugins |
| Creator | Pradyumna K S |
| Stats | 15 installs, 4 likes |
| Pricing | Free |
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:
- *
More Like This
Discover other plugins in the Import & export plugins category.
Free Compressed PDF and Image Exporter (PDF, PNG, JPG, WebP and SVG)
Export compressed PNG, PDF, JPG, SVG, WebP & merge multiple frames into one PDF—fast & easy! 🚀
Color Import / Export
Help design and dev teams stay in sync by providing import and export tools for color palettes
Export/Import Variables
Export variables from one file and import them to another. Supports modes, references, and scopes.