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 d2c-aiv1.0.0In 1 marketplace
Turns Figma designs into frontend components for React, Vue, Svelte, Angular, Solid or Astro, matched to your project's tokens and fetching patterns. Claims it iterates with Playwright pixel-diff scoring until the output matches the design; needs a Figma access token and a global Playwright install.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
Claude Code commands that turn Figma designs into production-ready frontend code. Supports React/Next.js, Vue/Nuxt, Svelte/SvelteKit, Angular, Solid.js/SolidStart, and Astro. Scans your codebase for design tokens and API patterns, pulls designs from Figma, generates code matching your project's conventions (including real API integrations), and visually verifies output via Playwright screenshot comparison with objective pixel-diff scoring — iterating until the result matches the design.
# 1. Install the plugin
claude plugin add d2c
# 2. Initialize in your project (scans codebase, extracts design tokens)
/d2c-init
# 3. Build from a Figma design
/d2c-build https://figma.com/design/your-file/your-page?node-id=1-2
See the full Getting Started guide for detailed setup.
/d2c-init (once per project)
└─ Claude Code scans codebase → generates .claude/d2c/design-tokens.json
└─ Discovers existing components, hooks, styling approach
└─ Detects API call patterns (React Query, SWR, axios, fetch, GraphQL, etc.)
└─ Imports Figma Variables if Figma MCP is available (flags mismatches)
└─ Checks for global Playwright installation
/d2c-build (per task)
└─ User provides Figma URL + prompt
└─ Shows "Last used" options from previous builds alongside standard choices
└─ Asks about viewports, components to reuse, and API connections
└─ Auto-suggests reusable components based on Figma design analysis
└─ Asks for API response structures (per endpoint) if the design connects to APIs
└─ Pulls design context + screenshots from Figma MCP
└─ Generates code using project tokens, styling conventions, existing components
└─ Generates real typed API calls matching your project's fetching pattern
└─ Screenshots result via Playwright CLI
└─ Compares using pixel-diff (objective) + visual judgment (structural)
└─ Iterates (up to 4 rounds)
├─ Below 95% → auto-fixes and re-runs
└─ 95%+ or round 4 reached → stops, shows results
/d2c-audit (periodic)
└─ Scans for hardcoded values that should use design tokens
└─ Finds unused tokens in the design system
└─ Detects components bypassing the design system
└─ Checks API calls follow the project's established pattern
└─ Outputs adherence score and violation report
npm install -g playwright && npx playwright install chromium)/plugin marketplace add d2c-ai/d2c
/plugin install d2c
npx skills add d2c-ai/d2c
Works across Claude Code, Cursor, Codex, and other agents that support the Agent Skills standard.
git clone https://github.com/d2c-ai/d2c.git
cd d2c
./install.sh
Restart Claude Code after installing. The commands /d2c-init and /d2c-build will be available in any project.
# If installed via Option C
./uninstall.sh
You need Figma MCP configured. Add this to your project's .mcp.json:
{
"mcpServers": {
"figma": {
"command": "npx",
"args": ["-y", "@anthropic-ai/figma-mcp-server@latest"],
"env": {
"FIGMA_ACCESS_TOKEN": "your-figma-personal-access-token"
}
}
}
}
Figma access token: Figma → Settings → Account → Personal access tokens → Generate.
/d2c-init
This scans your codebase and generates .claude/d2c/design-tokens.json containing your styling approach, colors, spacing, typography, breakpoints, existing components, hooks, and API call patterns.
It also imports Figma Variables if Figma MCP is available, flagging any mismatches between Figma and code tokens.
Re-running init when the token file already exists performs an incremental update — only scanning for changes rather than re-reading everything.
Make sure your dev server is running (npm run dev), then:
/d2c-build
Claude Code will ask for:
It then auto-suggests reusable components from the Figma analysis, generates code with real typed API calls matching your project's pattern, and runs the visual verification loop with objective pixel-diff scoring.
7-day copy clicks
Plugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.