A proof of concept demonstrating automated Figma-to-Angular implementation using Claude Code with pixel-perfect visual verification.
- Extracts design specs from Figma via MCP
- Implements Angular components with exact Figma values
- Creates Storybook stories for documentation
- Compares screenshots pixel-by-pixel until implementation matches design
- Node.js 18+
- Figma Desktop
- Claude Code CLI
- ImageMagick (for screenshot comparison)
npm install -g @anthropic-ai/claude-codeclaude loginIn Figma Desktop: Figma menu → Settings → Enable Local Server
Then add to Claude Code:
claude mcp add figma-desktop http://127.0.0.1:3845/mcp --transport httpclaude mcp add playwright -- npx @playwright/mcp@latest --config playwright-mcp-config.jsonnpm install-
Start Storybook:
npm run storybook
-
Open Figma Desktop with your design file
-
Run Claude Code:
claude
-
Give it a Figma URL:
Implement this Figma design: https://www.figma.com/design/xxx?node-id=123-456
Claude automatically uses the implement-figma-design skill to extract specs, implement the component, and iterate until pixel-perfect.
The skill (.claude/skills/implement-figma-design/SKILL.md) guides Claude through:
- Get Figma specs - Uses Figma Desktop MCP for exact design values
- Implement component - Angular standalone with OnPush, signal inputs
- Create story - Storybook story matching Figma exactly
- Compare pixels - Playwright screenshots vs Figma, ImageMagick diff
- Iterate - Fix mismatches until <0.5% difference
npm start # Dev server
npm run storybook # Storybook dev server
npm run build # Production build
npm test # Run testsMIT