@clovis500c/figma-bridge 1.12.0 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -6
- package/dist/server.js +686 -282
- package/package.json +3 -2
- package/plugin/code.js +330 -53
- package/plugin/ui.html +17 -2
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ for the optional comments and version history tools.)
|
|
|
11
11
|
Works with **Claude Code**, **Claude Desktop**, **Codex**, **Antigravity**, **Gemini CLI**, **Cursor**, **Windsurf**
|
|
12
12
|
and any other MCP client.
|
|
13
13
|
|
|
14
|
-
<p align="center"><img src="docs/plugin.
|
|
14
|
+
<p align="center"><img src="docs/plugin.png" alt="Figma Bridge plugin" width="620"></p>
|
|
15
15
|
|
|
16
16
|
<!-- Demo: record it with docs/record-demo.md, save it as docs/demo.gif, then uncomment.
|
|
17
17
|
<p align="center"><img src="docs/demo.gif" alt="An agent building, importing and exporting with Figma Bridge" width="720"></p>
|
|
@@ -19,14 +19,14 @@ and any other MCP client.
|
|
|
19
19
|
|
|
20
20
|
## Features
|
|
21
21
|
|
|
22
|
-
- **Build whole layouts in one call** from a JSON spec: auto-layout and grid, rich text, icons, images, component sets with variants and properties, prototype links.
|
|
22
|
+
- **Build whole layouts in one call** from a JSON spec: auto-layout and grid, rich text, icons, images, component sets with variants and properties, prototype links, and professional layer names (Header, Card, Title, PrimaryButton) ([naming](docs/naming.md)).
|
|
23
23
|
- **Import any website or HTML** as editable auto-layout frames, one per viewport ([details](docs/import-web.md)).
|
|
24
24
|
- **Round-trip the design system**: write variables with Light/Dark modes and styles from JSON, W3C tokens or Tailwind; export them to DTCG, CSS, Tailwind v3/v4, SCSS or TypeScript ([details](docs/design-system.md)).
|
|
25
25
|
- **Score and fix design system health**: token coverage, contrast, text styles, detached instances, duplicates, naming, with safe automatic fixes.
|
|
26
26
|
- **Read existing designs** compactly, search every page, and reuse the file's design system.
|
|
27
27
|
- **Check its own work** with screenshots, a design audit, and a pixel diff against a mockup.
|
|
28
28
|
- **Hand off to your codebase**: export a frame into your project with its own components, tokens and stack (React, Next, Vue, Svelte, React Native; Tailwind, CSS modules, styled-components; shadcn, MUI, Chakra) ([details](docs/export-code.md)), plus Dev Mode annotations.
|
|
29
|
-
- **Ship to Roblox**: turn a frame into native Roblox UI (ScreenGui, UIListLayout, UICorner, UIStroke, 9-slice panels) as an `.rbxmx` model and a Luau script for a Roblox Studio MCP, with optional asset upload ([details](docs/roblox.md)).
|
|
29
|
+
- **Ship to Roblox**: turn a frame into native Roblox UI (ScreenGui, UIListLayout, UICorner, UIStroke, UIShadow, 9-slice panels), all in scale with professional names, as an `.rbxmx` model and a Luau script for a Roblox Studio MCP, with optional asset upload ([details](docs/roblox.md)).
|
|
30
30
|
- **Figma Design, FigJam and Slides**: stickies, shapes, connectors, tables, Mermaid flowcharts laid out as diagrams, and slide decks; several files at once ([details](docs/figjam-slides.md)).
|
|
31
31
|
- **200 000+ icons** through Iconify, checkpoints to roll back, and a library of reusable scripts.
|
|
32
32
|
- **Zero-friction connection**: the plugin connects and reconnects on its own. Each AI command is one Ctrl+Z step, and you can cancel it from the plugin.
|
|
@@ -68,7 +68,7 @@ Requires [Node.js](https://nodejs.org) 20+ and the Figma **desktop** app.
|
|
|
68
68
|
|
|
69
69
|
3. Restart your AI client, open a Figma file and run **Plugins → Development → Figma Bridge**. A green **Live** badge means it's connected.
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
**Updates are automatic:** each time your AI client starts, it runs the latest release and refreshes the plugin. Reopen the plugin in Figma when it shows **Update installed**.
|
|
72
72
|
|
|
73
73
|
<details>
|
|
74
74
|
<summary>With Bun instead of npm</summary>
|
|
@@ -165,7 +165,7 @@ To reopen the plugin later, use **Ctrl+Alt+P** or the **Figma Bridge** button in
|
|
|
165
165
|
| `prototype` | Link frames (click, hover, transitions) and set flow starting points |
|
|
166
166
|
| `annotate` | Add, list or clear Dev Mode annotations |
|
|
167
167
|
| `export_code` | Export a frame to code; with `projectPath`, code that uses the project's components and tokens |
|
|
168
|
-
| `export_roblox` | Export a frame to Roblox UI: `.rbxmx`, a Luau builder script and PNG assets, optionally uploaded |
|
|
168
|
+
| `export_roblox` | Export a frame to Roblox UI in scale: `.rbxmx`, a Luau builder script and PNG assets, optionally uploaded |
|
|
169
169
|
| `insert_icon` · `search_icons` | Iconify icons as editable vectors |
|
|
170
170
|
| `place_image` · `import_svg` | Images from disk or URL, SVG as vectors |
|
|
171
171
|
| `checkpoint` | Save layers and restore them later |
|
|
@@ -182,7 +182,8 @@ Each tool describes its parameters to the agent, which needs no extra instructio
|
|
|
182
182
|
|---|---|
|
|
183
183
|
| **Offline** | The MCP server isn't running: start or restart your AI client and check that `FigmaBridge` is enabled. |
|
|
184
184
|
| **Port busy** | Another program uses port 3055. Close it; the plugin reconnects. |
|
|
185
|
-
| **
|
|
185
|
+
| **Update installed** | A newer version was installed: click **Reopen**, then run the plugin again (Ctrl+Alt+P). |
|
|
186
|
+
| **Older server** | Your AI client still runs an older release: restart it. |
|
|
186
187
|
|
|
187
188
|
Logs, screenshots, comparison heatmaps and exported code are written to `%TEMP%\figma-bridge`.
|
|
188
189
|
`import_web` uses your installed Chrome or Edge; set `FIGMA_BRIDGE_BROWSER` to use another Chromium-based browser.
|