Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By bitovi Verified Orgv2.0.0MITIn 1 marketplace
Rebuilds a Figma design system from a running web app's code, extracting tokens and building components that are pixel-diffed against the live app. Needs a Figma MCP server, Playwright and your dev server running.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 caution to review before installing
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Rebuilds a Figma design system from a running web app's codebase. Point it at your app and a Figma file, and it discovers your components, extracts your design tokens, then builds the component library and screens in Figma — comparing every build against screenshots of the real app and iterating until they match.
Before running, make sure you have:
use_figma, get_screenshot, get_metadata)npm install -D @playwright/test && npx playwright install chromium
npm run dev).temp/ to your .gitignore — the pipeline writes working files thereFrom this repo (development):
claude --plugin-dir ./plugins/figma-from-code
From another project (installed):
/plugin marketplace add /path/to/ai-enablement-prompts
/plugin install figma-from-code@bitovi-ai-enablement
Interactive mode (recommended for first run — pauses for review at each phase):
Run the figma-from-code pipeline against
<Figma URL or file key>
The orchestrator detects your project config (dev server URL, source directories, CSS token file, Tailwind config, icon library) and asks you to confirm before building. Approve at each checkpoint to continue, or stop and resume later.
Batch mode (unattended — no pause points):
Run the figma-from-code workflow with
<Figma URL or file key>
The workflow accepts a Figma URL, a bare file key, or a JSON args object:
# Figma URL (file key is extracted automatically)
https://www.figma.com/design/abc123XYZ/My-File
# Bare file key
abc123XYZ
# JSON args with config overrides
{ "fileKey": "abc123XYZ", "devServerUrl": "http://localhost:3000" }
Batch config overrides (all optional — defaults shown):
| Arg | Default | Notes |
|---|---|---|
fileKey | (required) | Figma file key or URL |
devServerUrl | http://localhost:5173 | Your running dev server |
sourceDir | src | App source root |
componentsRoot | [] (auto-detected) | Array of component dirs; auto-populated after Phase 0a |
pagesRoot | src/pages | Pages/screens directory |
cssPath | src/index.css | CSS custom properties file |
tailwindConfigPath | tailwind.config.js | Set to null for Tailwind v4 / vanilla CSS |
iconLibrary | lucide-react | Set to null to skip icon extraction |
startPhase / endPhase | phase0a / phase5 | Bound the run to specific phases |
State survives between sessions:
Resume the figma-from-code run
The orchestrator reads .temp/figma-from-code/progress.md and state.json, verifies which phases are complete, and continues from the first incomplete phase. Built components are never rebuilt.
| Phase | Name | What happens |
|---|---|---|
| 0a | Component discovery | Crawls the running app in a browser and scans the source code to find every component, where it's used, and what it depends on. Produces a tiered, bottom-up build order (atoms before composites). |
| 0b | Asset discovery | Scans the source for icon and SVG usage (Lucide supported out of the box) and extracts the SVG markup. |
| 1 | Design tokens | Reads your CSS custom properties (and Tailwind config, if any) and creates Figma variable collections: Palette, Semantic, and Spacing. |
| 2 | File structure | Creates the Figma page skeleton (Foundations, Components, Screens) and the container frames everything builds into. |
| 2.5 | Pre-capture | Screenshots every component and screen in the running app, and extracts their text content. These become the reference targets every Figma build is compared against. |
| 3 | Component builds | Builds icon/asset masters first, then each tier of components in dependency order. Includes a fix loop to ensure it visually matches the app. |
| 4 | Screen assembly | Composes the built components into full screen frames, one per route, validated against full-page app screenshots. |
| 5 | Validation | Compares assembled screen frames against full-page app screenshots, fixes mismatched screens (up to 2 iterations), cleans up the Components page, and writes a report to .temp/figma-validation/report.md. Individual components are not re-validated — they already passed during Phase 3. |
Alongside the Figma output, every built component gets a .figma/figma.json tracking file next to its source code (node ID, dependencies, last update), enabling future syncs and incremental rebuilds.
Two PreToolUse hooks ship with the plugin and register automatically: a prerequisite gate that blocks a component from being created in Figma before its children exist, and an instance gate that blocks a build from being marked complete until its child instances pass a structural check.
7-day copy clicks
npx claudepluginhub bitovi/ai-enablement-prompts --plugin figma-from-codeBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground