figmake-pro
v3.0.7
Published
Design-to-code compiler with AI agent guardrails. Extract Figma designs as pixel-perfect React code with enforced design tokens.
Downloads
732
Maintainers
Readme
Figmake
Design-to-code compiler with AI agent guardrails.
Extract Figma designs as pixel-perfect React code. Generate design lockfiles that keep vibecoding agents from hallucinating styles.
Why Figmake?
AI coding agents are powerful but they hallucinate design. Colors drift. Spacing breaks. Fonts get replaced. Your carefully crafted design system dissolves with every prompt.
Figmake extracts the ground truth from your Figma files and generates:
- Pixel-perfect React components with exact styles
- Design lockfiles that any AI agent can reference
- Prompt context that forces agents to respect your design system
Quick Start

1. Install Figmake
npm install -g figmake-pro2. Start Interactive Shell
figmakeThe interactive shell provides:
- Command menu - Press
/to browse all available commands with descriptions - Smart autocomplete - Start typing any command and press
Tabto complete - Command history - Use
↑/↓arrows to navigate previous commands - Syntax highlighting - Commands, flags, and URLs are color-coded
- Status line - Shows history count and token status at a glance
Quick commands:
| Command | Description |
|---------|-------------|
| / | Open command menu |
| /convert | Convert Figma to React |
| /demo | Generate demo components |
| /config | Configuration wizard |
| /help | Show detailed help |
| /clear | Clear the screen |
| /exit | Exit the shell |
3. Or Use Direct Commands
# Show help
figmake --help
# Run demo (no token needed)
figmake --demo
# Convert a Figma file
figmake convert "https://figma.com/file/..." --token YOUR_TOKEN
# Interactive config
figmake --configTroubleshooting
Token Issues
- Error: 403 Forbidden: Ensure your token has "Read-only" or "Read/Write" permissions for the file.
- Error: 404 Not Found: Check if the Figma URL is correct and the file key is valid.
Export Issues
- Missing Styles: Ensure all elements are inside a Frame or Component. Groups are exported as containers but may not preserve all layout properties as well as Frames.
- Image Placeholders: By default, Figmake uses placeholders for SVGs and Vectors. To change this, update your configuration.
Examples
Check the examples/ directory for:
With Cursor/Claude/Copilot
figmake guard --output .cursor/rules/design-system.mdc
# Now your AI agent won't hallucinate stylesFeatures
· ✅ Pixel-perfect conversion (no rounding, no opinionated scales) · ✅ Auto Layout → Flexbox/Grid with exact values · ✅ Framer Motion animations from Figma prototypes · ✅ Event handlers for interactive elements · ✅ Design token extraction (colors, typography, spacing, shadows) · ✅ AI agent lockfiles (Cursor, Claude, Copilot, Windsurf) · ✅ Component collision detection · ✅ Code metrics and complexity analysis · ✅ README generation on export
