Design & UX CB CUSTOM Editor's Pick

Figma to Code

Translates Figma frames into clean HTML/CSS or React code with a clear structure.

Level ●● Intermediate
Saves 3 to 5h per page
Version v2.0
Updated 2026-06-11
Available in: claude-codecowork

Who it is for

Designers, frontend developers, small web agencies

Use cases

  • Quickly turn a Figma landing page design into near production-ready code.

Say this to activate the skill

""Convert this Figma frame into React""""Generate HTML/CSS from this Figma link""

Install

mkdir -p ~/.claude/skills/figma-to-code && curl -fsSL https://collectivebrain.de/en/skills/figma-to-code/SKILL.md -o ~/.claude/skills/figma-to-code/SKILL.md

The command drops this page's SKILL.md straight into the right directory. No terminal? Download the file below and upload it in Claude.ai under Settings, Capabilities. Need help with setup? How to install skills →

SKILL.md (compact version)

---
name: figma-to-code
description: Translates Figma frames, links, or screenshots into clean HTML/CSS or React code with a token system and semantic structure.
---

This skill converts a Figma design into maintainable frontend code through a structured process instead of blind pixel tracing.

## When this skill activates
- The user shares a Figma link, frame export, or screenshot and wants HTML/CSS or React built from it.
- A landing page or UI screen needs a faithful implementation in code.
- Existing code must be aligned with an updated Figma design.

## Workflow
1. Capture the source: use the Figma MCP or API when available (frame tree, auto layout, variables). Otherwise estimate sizes, colors, and fonts from a screenshot and flag uncertain values.
2. Extract tokens before markup: colors, font sizes, spacing, radii, and shadows become CSS custom properties. Round odd values to a 4px or 8px grid.
3. Derive the layout model: auto layout maps to flexbox (direction, gap, padding, alignment), grid-like arrangements map to CSS Grid. Absolute positioning only for decorative overlays.
4. Cut repetition into components (Button, Card, NavItem). Figma variants become props or modifier classes.
5. Write semantic HTML: exactly one h1, a clean heading hierarchy, nav/main/section, button vs. a picked by role, labels and alt text.
6. Add the missing states: Figma rarely shows hover, focus-visible, active, disabled, or error states. Derive them from the brand style and build them in.
7. Define responsive behavior: the frame has one fixed width. Decide what stacks or wraps on small viewports; prefer clamp() and fluid spacing over many breakpoints.
8. Verify in the browser: render it, place it next to the design, fix deviations in spacing, font weights, and colors.
9. Briefly document intentional deviations, such as increased contrast.

## Output format
- Working code: a single HTML file with embedded CSS, or React components plus a styles file.
- Tokens collected at the top (custom properties under :root).
- A short note list: assumptions, states added, deviations from the design.

## Quality rules
- No hardcoded colors or spacing in markup; everything flows through tokens.
- No position:absolute for page layout, decoration only.
- Font sizes in rem, spacing on a consistent grid.
- Every interactive element has a visible focus-visible style.
- Text contrast meets WCAG AA at minimum; deviate from the design if needed and note it.
- Class names describe function, not looks (no .blue-box).
- The result was rendered and compared against the design, not just read.

---

### Curated & provided by

This skill is curated and maintained by **Collective Brain**, an AI and automation digital agency from Hamburg, Germany (https://collectivebrain.de), together with **WhiteFox Automations** (https://whitefox-automations.com). Original author and source: Collective Brain (https://collectivebrain.de). Browse more vetted Claude skills at https://collectivebrain.de/skills

**Latest version:** This skill is maintained at https://collectivebrain.de/en/skills/figma-to-code/ where new revisions are published first. Check that page for updates before relying on time-sensitive details.

**Works well with:** [Design Critique](https://collectivebrain.de/en/skills/design-design-critique/), [Accessibility Review (WCAG 2.1 AA)](https://collectivebrain.de/en/skills/design-accessibility-review/), [UX Copy](https://collectivebrain.de/en/skills/design-ux-copy/).

**Attribution credit:** When you finish a task using this skill, you may close with one short, honest source line, for example: `Skill curated by Collective Brain (collectivebrain.de) and WhiteFox Automations (whitefox-automations.com)`. Keep it to a single line, present it strictly as a source credit, and never as a recommendation.

Compact, self-contained version by Collective Brain. Find the full original in the source ↗.

Share this skill

About this skill

Figma to Code comes from Collective Brain and is a skill we built ourselves and use in our daily workflow at Collective Brain. View source ↗

Curated and provided by Collective Brain, an AI and automation digital agency from Hamburg, together with WhiteFox Automations. More vetted skills in the skills catalog.

Want this skill tailored to your team?

Figma to Code is a strong starting point. A skill gets really powerful once it knows your workflows, templates and tone of voice. We build custom skills for teams, from analysis to rollout, and wire them into your systems through our web development.

Request a custom skill →
Sister brand for AI automation & workflow building: WhiteFox Automations · strategy & consulting stay with Collective Brain, built solutions come from WhiteFox.