design-to-code

Convert Figma designs into accessible, responsive components with mapped CSS and design tokens.

Updated Mar 22, 2026
One-click install
npx skills add https://github.com/fullya99/simple-blog-page --skill design-to-code-fullya99
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: design-to-code
Source: https://github.com/fullya99/simple-blog-page/tree/main/.claude/skills/gstack/design-to-code
Command: npx skills add https://github.com/fullya99/simple-blog-page --skill design-to-code-fullya99

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Translating Figma designs into code by hand is slow and error-prone: spacing, typography, colors, and auto-layout behavior must be manually interpreted for every frame. This Skill reads the design hierarchy via Figma MCP and generates components that match the design while respecting the project's existing conventions. ## Core Features & Use Cases - Figma hierarchy parsing: Accepts a Figma URL or node-id, extracts layout structure, design tokens (colors, typography, spacing, shadows), and component variants. - Convention-aware code generation: Detects the project's framework, styling approach (Tailwind, CSS Modules), and component directory before generating semantic HTML with mapped CSS. - Responsive and accessible output: Maps Figma frame widths to breakpoints, implements hover/focus states, and enforces semantic HTML with alt text and aria-labels. - Use Case: A designer shares a Figma link for a new pricing card component. The Skill reads the node, extracts tokens, detects the project uses Next.js with Tailwind, and generates a typed React component with variant props and a fidelity checklist. ## Quick Start Convert this Figma frame into a component for my project: https://www.figma.com/file/ABC123/MyFile?node-id=1:2

Frequently Asked Questions about design-to-code

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I convert a Figma design to code?▼

Provide a Figma URL or node-id, and the Skill reads the design hierarchy via Figma MCP, extracts tokens like colors and spacing, then generates a component matching your project's framework and styling approach.

How does Figma auto-layout map to CSS?▼

Auto-layout maps directly to flexbox: horizontal direction becomes flex-direction row, item spacing becomes gap, and padding maps to CSS padding. Fill container becomes flex: 1 and hug contents becomes width: fit-content.

Does Figma to code conversion work with Tailwind CSS?▼

Yes. The Skill detects Tailwind via tailwind.config files and generates utility classes instead of raw CSS, including breakpoint prefixes like md: and lg: based on Figma frame widths.

Can it handle Figma component variants and states?▼

Figma component sets are converted into a single component with variant props, such as a union type like variant: "primary" | "secondary". Boolean properties become props like disabled or loading.

What are the limitations of automated Figma to code conversion?▼

Ambiguities like breakpoint mapping, animation details, and component boundaries require user clarification. iOS corner smoothing has no direct CSS equivalent, and dynamic content must be defined as props rather than hardcoded.