Skip to content
Skill

Figma to code

Turns a Figma frame or component into code in your project's stack, checked against

Figma to code is an open-source agent skill for design and media. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
6
Last commit
License
MIT
Listing updated

Similar skills

About Figma to code

This skill takes a Figma frame or component and implements it in the framework already used by the project, covering Angular, React, Lit, plain HTML/CSS/JS or another stack. It first detects the stack and loads the matching adapter, then reads the design structure, layout measurements and the variables bound to each node.

The workflow maps Figma variables to existing design tokens, proposes adding missing ones instead of pasting raw hex values, and reuses existing components before creating new ones. Auto-layout, variants, borders, line heights and icon naming are translated into the equivalent code, and dark-mode token blocks can be generated when the file defines light and dark modes.

Finally it runs a visual check: it renders the implemented view in a browser, compares screenshots, measures element boxes against the Figma measurements, and runs the project's lint and tests. It expects a working Figma connection through the figma-cli tooling and a project with a discoverable token setup. The instructions and frontmatter are written in Spanish.

When your agent uses it

Implementa un frame o componente de Figma como código en el stack del proyecto (Angular, React, Lit, HTML/CSS/JS u otro), reutilizando sus componentes y tokens, y comprueba que el resultado coincide con el diseño. Úsala cuando el usuario diga "implementa este diseño", "pásalo a código", "convierte este frame en un componente", "maqueta esta pantalla", "design to code", "build this Figma frame".

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 6 files (19 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the figma-steroids plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add kennedy122112/figma-steroids
/plugin install figma-steroids@figma-steroids

Or copy only this skill to ~/.claude/skills/figma-to-code:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/kennedy122112/figma-steroids.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/figma-to-code &&
cp -R "$tmp/skills/figma-to-code" ~/.claude/skills/figma-to-code &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/figma-to-code inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/figma-to-code to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/kennedy122112/figma-steroids.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/figma-to-code &&
cp -R "$tmp/skills/figma-to-code" ~/.agents/skills/figma-to-code &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/figma-to-code inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/figma-to-code to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/kennedy122112/figma-steroids.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/figma-to-code &&
cp -R "$tmp/skills/figma-to-code" ~/.cursor/skills/figma-to-code &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/figma-to-code inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/kennedy122112/figma-steroids.git --path skills/figma-to-code

Or copy the folder to ~/.gemini/skills/figma-to-code yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/figma-to-code:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/kennedy122112/figma-steroids.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/figma-to-code &&
cp -R "$tmp/skills/figma-to-code" ~/.copilot/skills/figma-to-code &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/figma-to-code inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/kennedy122112/figma-steroids.git

Then copy figma-steroids/skills/figma-to-code into your agent's skills folder as figma-to-code. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Stack detection
Identifies the project's framework and loads the matching implementation guidance.
Design token mapping
Links Figma variables to tokens already defined in the codebase by name.
Component reuse
Looks for existing components to use before creating new ones.
Auto-layout translation
Converts Figma layout, spacing, sizing and variant properties into code.
Visual QA loop
Compares rendered output and element measurements with the Figma reference.
Dark theme tokens
Generates light and dark token blocks when the file defines both modes.

Good for

  • Implement this Figma frame as a React component
  • Turn this design into Angular code using our existing buttons
  • Build this Figma screen in plain HTML and CSS
  • Check that the implemented page matches the Figma measurements

Figma to code FAQ

What does the skill need to run?

It requires an active Figma connection through the figma-cli tooling, as described in the instructions.

Does Figma to code install or change anything in my project?

It creates or modifies project files as needed and suggests adding .figma/ to .gitignore, and it proposes new tokens and libraries for confirmation before adding them.

Which frameworks does Figma to code support?

The instructions cover Angular, React, Lit, plain HTML/CSS/JS, and a generic fallback for other stacks.

How do I install Figma to code in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/figma-to-code to use it in all your projects, or to .claude/skills/figma-to-code in one project. Or install the figma-steroids plugin, which includes it: /plugin marketplace add kennedy122112/figma-steroids, then /plugin install figma-steroids@figma-steroids.

Does Figma to code run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Figma to code?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Figma to code?

The closest alternatives to Figma to code are Figma implement design, Figma implement design, Figma from code, Prepare figma design and Figma.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from kennedy122112/figma-steroids

  1. Audits Figma designs for WCAG contrast, touch target, text size and color-blindness issues

    • Open source
    • 6 GitHub stars
    • Design and media
  2. Builds editable Figma screens and components using the file's design variables

    • Open source
    • 6 GitHub stars
    • Design and media
  3. Connects your agent to Figma Desktop locally through a plugin bridge

    • Open source
    • 6 GitHub stars
    • Design and media
  4. Audits a whole Figma file against its design system and fixes safe mismatches

    • Open source
    • 6 GitHub stars
    • Design and media
  5. Builds and maintains a Figma design system from code tokens via figma-cli

    • Open source
    • 6 GitHub stars
    • Design and media
  6. Rebuilds an existing web screen as an editable Figma design with auto-layout

    • Open source
    • 6 GitHub stars
    • Design and media