Testing in Figma
Loading your plugin
After running bun run build, follow these steps:
- Open the Figma desktop app (not the browser version)
- Open any Figma file
- Go to Plugins > Development > Import plugin from manifest...
- Navigate to your project folder:
apps/design-plugin/dist/ - Select manifest.json
Your plugin now appears under Plugins > Development.
Running the plugin
Click Plugins > Development > [Your Plugin Name] to launch it. A window will appear with your plugin's UI.
Making changes
After editing code:
- Run
bun run build(or keepbun run devrunning for auto-rebuild) - In Figma, close the plugin window
- Re-launch the plugin — it loads the latest build automatically
You do not need to re-import the manifest after the first time.
Debugging
- Plugin console: In Figma, go to Plugins > Development > Open console. This shows messages from the plugin side (the code that talks to Figma).
- UI console: Right-click inside the plugin window and select Inspect Element. This opens the browser devtools for the UI side.
Common issues
Plugin doesn't appear after import:
Make sure you're selecting apps/design-plugin/dist/manifest.json, not the figma.manifest.ts source file.
Changes don't show up:
Run bun run build again. If using bun run dev, wait a moment for the rebuild to finish.
Plugin window is blank: Check the plugin console for errors. A blank window usually means a JavaScript error during startup.