# Figma to code

> Figma to code is an open-source agent skill for design and media. Turns a Figma frame or component into code in your project's stack, checked against. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/kennedy122112/figma-steroids/tree/main/skills/figma-to-code
- **Repository:** https://github.com/kennedy122112/figma-steroids
- **GitHub stars:** 6
- **License:** MIT
- **Skill name:** figma-to-code
- **Collection:** https://github.com/kennedy122112/figma-steroids
- **Categories:** [design and media](https://ai-powered.com/categories/design-and-media), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

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".

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/kennedy122112/figma-steroids/tree/HEAD/skills/figma-to-code)
- [License: MIT](https://github.com/kennedy122112/figma-steroids/tree/HEAD/skills/figma-to-code)

## Features

- **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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

## 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.

## Alternatives

- [Figma implement design](https://ai-powered.com/skills/figma-implement-design): Figma implement design is a free agent skill for design and media.
- [Figma implement design](https://ai-powered.com/skills/figma-implement-design-mtarcure): Figma implement design is an open-source agent skill for design and media.
- [Figma from code](https://ai-powered.com/skills/figma-from-code): Figma from code is an open-source agent skill for design and media.
- [Prepare figma design](https://ai-powered.com/skills/prepare-figma-design): Prepare figma design is an open-source agent skill for design and media.
- [Figma](https://ai-powered.com/skills/figma-openai): Figma is a free agent skill for design and media.
- [Figma generate library](https://ai-powered.com/skills/figma-generate-library): Figma generate library is a free agent skill for design and media.
- [Figma generate design](https://ai-powered.com/skills/figma-generate-design): Figma generate design is a free agent skill for design and media.
- [Figma design system](https://ai-powered.com/skills/figma-design-system): Figma design system is an open-source agent skill for design and media.

---
Source: https://ai-powered.com/skills/figma-to-code-kennedy122112
