
Figma to react
Turns Figma designs into React or Next.js components with TypeScript and Tailwind
Figma to react 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
- 303
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Figma to react
This skill guides an agent through converting a Figma frame into React or Next.js components using TypeScript and Tailwind CSS, with the aim of close visual fidelity to the source design. It is built around rules for handling the output of the Figma MCP server, including keeping every generated class, reading frame dimensions from node metadata instead of guessing them, and flattening nested absolute-positioned wrappers so child coordinates are not offset twice.
The rules also cover typography in detail. The agent is told to load Google Fonts through a stylesheet link rather than the Next.js font loader, to map Figma font names onto standard family names and Tailwind weight classes, and to check weights against a screenshot because Figma's weight labels often render lighter than CSS values. Other guidance covers page-level CSS for horizontal scrolling, replacing image-based rules with CSS lines, inlining SVG assets, and removing fixed heights from multi-line text blocks.
The skill expects a Figma file key and node ID, access to the Figma MCP tools, and a React or Next.js project. Longer material on table patterns and implementation templates sits in a separate reference file that the agent loads when needed.
When your agent uses it
Use when the user wants to extract Figma designs into production-ready React or Next.js components with TypeScript, Tailwind CSS, and pixel-perfect accuracy.
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 2 files (32 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
Copy the skill folder to ~/.claude/skills/figma-to-react to use it in all your projects:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/majiayu000/spellbook.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/figma-to-react &&
cp -R "$tmp/plugins/spellbook-ui/skills/figma-to-react" ~/.claude/skills/figma-to-react &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/figma-to-react inside it instead.
Copy the skill folder to ~/.agents/skills/figma-to-react to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/majiayu000/spellbook.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/figma-to-react &&
cp -R "$tmp/plugins/spellbook-ui/skills/figma-to-react" ~/.agents/skills/figma-to-react &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/figma-to-react inside it instead.
Copy the skill folder to ~/.cursor/skills/figma-to-react to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/majiayu000/spellbook.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/figma-to-react &&
cp -R "$tmp/plugins/spellbook-ui/skills/figma-to-react" ~/.cursor/skills/figma-to-react &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/figma-to-react inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/majiayu000/spellbook.git --path plugins/spellbook-ui/skills/figma-to-reactOr copy the folder to ~/.gemini/skills/figma-to-react yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/figma-to-react:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/majiayu000/spellbook.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/figma-to-react &&
cp -R "$tmp/plugins/spellbook-ui/skills/figma-to-react" ~/.copilot/skills/figma-to-react &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/figma-to-react inside it instead.
Get the folder:
git clone --depth 1 https://github.com/majiayu000/spellbook.gitThen copy spellbook/plugins/spellbook-ui/skills/figma-to-react into your agent's skills folder as figma-to-react. Agents that support SKILL.md read one folder per skill.
What it does
- Figma metadata extraction
- Reads frame size and node structure from Figma metadata so dimensions are not hardcoded.
- Absolute position flattening
- Removes redundant wrappers from nested absolute containers while keeping child coordinates correct.
- Google Fonts mapping
- Loads fonts via the Google Fonts stylesheet and converts Figma font names to Tailwind classes.
- Weight adjustment guidance
- Advises comparing font weights with a Figma screenshot since Figma labels often render lighter.
- Text block cleanup
- Removes fixed heights from multi-line text so wrapping can adjust in the browser.
- Inline SVG conversion
- Replaces external image assets with inline SVG and CSS-based lines.
Good for
- Convert a Figma landing page frame into a Next.js component with Tailwind
- Turn a Figma card design into a typed React component
- Recreate a Figma dashboard section pixel-close in a React project
- Replace image-based divider lines from Figma with CSS lines
Figma to react FAQ
What does the skill need to run?
It needs access to the Figma MCP tools to fetch metadata and design output, plus a React or Next.js project using TypeScript and Tailwind CSS.
Does Figma to react use next/font/google?
No. The skill instructs the agent to load Google Fonts through a stylesheet link in the layout instead, because rendering can differ.
Are there scripts included?
No, the skill has no scripts; it consists of instructions and one reference file for extended material.
How do I install Figma to react in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/figma-to-react to use it in all your projects, or to .claude/skills/figma-to-react in one project.
Does Figma to react 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 react?
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 react?
The closest alternatives to Figma to react are Figma, Figma implement design, Figma implement design, Figma from code and Figma to code.
Where this comes from
- Description: from the skill's own SKILL.md.
More from majiayu000/spellbook

Gives your agent cross-domain analogies and yes-and extensions to spark new ideas
- Open source
- 303 GitHub stars
- Productivity

Stress-tests an idea by hunting hidden assumptions, counterexamples and failure points
- Open source
- 303 GitHub stars
- Productivity

Gathers sourced facts, competitors and 2026 data on an idea without judging it
- Open source
- 303 GitHub stars
- Research workflow

Runs a three-role AI group chat that surfaces blind spots in a one-line idea
- Open source
- 303 GitHub stars
- Productivity

Coaches you from a one-line idea to a PRD and clickable HTML prototype
- Open source
- 303 GitHub stars
- Productivity

Guides an agent through mobile app UI design for iOS and Android
- Open source
- 303 GitHub stars
- Design and media






