figma-to-code
Installation
SKILL.md
Figma to Code
Convert Figma design files into production-ready UI code that integrates with the project's existing codebase.
When to Use
- User provides Figma exports (JSON, images, screenshots, or dev-mode code)
- User asks to "build UI from Figma", "implement this design", or "convert Figma to code"
- User mentions a "figma pack" or design handoff
Supported Input Formats
- Figma JSON export — richest data (via Figma REST API or export plugin). Run
parse_figma_json.jsto extract structure. - Screenshots/images — read visually with the Read tool. Extract layout, colors, typography, spacing.
- Dev-mode snippets — CSS/code copied from Figma dev mode. Use directly as reference.
- SVG/asset exports — icons and illustrations. Place in project assets directory.