Figma Capture Button · v0.2
Copy your local app into Figma.
Add a small button to your local app. Capture the whole page or pick one component, then paste it into Figma as editable layers. It only appears while you are building, so it stays out of your deployed app.
Prompt for your coding agent
Install figma-capture-button in this app. Runnpm install figma-capture-button. Then add this import to the app entry point: import 'figma-capture-button/auto'. The button should appear on localhost and let me capture the full page or select one element to paste into Figma.
Try it here: open the button, choose a capture mode, then paste in a Figma file
How it works
-
Add it to your app
Copy the prompt above into Cursor, Claude Code, or your coding agent. It installs the package and adds a single import. It works with Vite, Next.js, other bundlers, or plain HTML via CDN.
-
Capture a page or component
On localhost, a pink Figma button appears. Open it to capture the entire screen, or choose select element and click the exact piece you want.
-
Paste editable layers
Paste in any Figma file. Your capture arrives as editable layers and text, not a flat screenshot. The capture button hides itself so it will not show up in your frame.
Workflow walkthrough
Watch the full loop: install the package, open the local capture button, choose the right capture mode, then paste the result into Figma as editable layers.
-
Capture from localhost
The button appears only while you are building, so the capture flow stays close to your real app state.
-
Choose the right scope
Grab a whole page for review, or select one component when you want to keep refining a specific piece.
-
Keep working in Figma
Paste turns the app state into editable Figma layers, not a flat screenshot.
Built for design review
-
Only runs locally
The package checks for
localhostbefore it loads Figma's capture script. On deployed builds there is no button, no network request, and nothing to remove later. -
Capture the right scope
Use entire screen for a page, flow, or review snapshot. Use select element for a card, modal, navigation state, or any component you want to refine in Figma.
-
Stays out of the way
Drag the button anywhere on the page. It remembers its position across reloads, stays inside the viewport, and hides itself while capturing.
-
Simple by default
Most projects only need the one-line auto import. Developers can still customize the selector, hotkey, position, container, and cleanup behavior with
initFigmaCapture().
Developer setup
import 'figma-capture-button/auto'
import { initFigmaCapture } from 'figma-capture-button'
const cleanup = initFigmaCapture({
selector: '*',
hotkey: true,
})