Translates Figma designs into functional React and Tailwind CSS code.

Install

mkdir -p .claude/skills/vibefigma && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/9072" && unzip -o skill.zip -d .claude/skills/vibefigma && rm skill.zip

Installs to .claude/skills/vibefigma

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Convert Figma designs to production-ready React components with Tailwind CSS. Use when user provides a Figma URL, asks to convert Figma designs to React/code, wants to extract components from Figma, or mentions "vibefigma". Requires a Figma access token (via --token flag, FIGMA_TOKEN env var, or .env file).
308 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Beginner

Key capabilities

  • Convert Figma designs to React components with Tailwind CSS
  • Generate React component files from a Figma URL
  • Extract assets like images and icons from Figma designs
  • Overwrite existing files with generated code when confirmed
  • Generate regular CSS instead of Tailwind CSS
  • Prompt for Figma URL, access token, and output paths in interactive mode

How it works

The `vibefigma` CLI tool converts Figma design data into React components and assets based on a provided Figma URL and access token.

Inputs & outputs

You give it
Figma URL with a specific node selected
You get back
React component (`.tsx`) with Tailwind CSS classes and assets

When to use vibefigma

  • Converting UI designs to code
  • Extracting components from Figma
  • Accelerating frontend implementation

About this skill

VibeFigma - Figma to React Converter

Convert Figma designs into React components with Tailwind CSS using the vibefigma CLI.

Usage

Interactive Mode (Recommended for first-time users)

npx vibefigma --interactive

Prompts for Figma URL, access token, and output paths.

Direct Command

npx vibefigma "https://www.figma.com/design/FILE_ID?node-id=X-Y" --token FIGMA_TOKEN

With Environment Variable

export FIGMA_TOKEN=your_token
npx vibefigma "https://www.figma.com/design/FILE_ID?node-id=X-Y"

Using .env File

The user can add their Figma access token to a .env file in their project root:

FIGMA_TOKEN=your_token_here

Then run:

npx vibefigma "https://www.figma.com/design/FILE_ID?node-id=X-Y"

Note: If the token is not configured, vibefigma will throw an error. Only then inform the user about the token requirement.

Common Options

OptionDescription
-t, --token <token>Figma access token
-c, --component <path>Output path (default: ./src/components/[Name].tsx)
-a, --assets <dir>Assets directory (default: ./public)
-f, --forceOverwrite existing files without confirmation
--no-tailwindGenerate regular CSS instead

Getting a Figma Access Token

  1. Go to Figma Account Settings
  2. Scroll to Personal Access Tokens
  3. Click Generate new token → name it → copy immediately
  4. Store it securely in a .env file or pass via --token flag

Workflow

  1. Get Figma URL with specific node selected (frame/component to convert)
  2. Check if output file already exists at the target path (default: ./src/components/[Name].tsx or user-specified path)
  3. If file exists, ask the user for confirmation before overwriting, then use the --force flag
  4. Run: npx vibefigma "<URL>" -c <output-path> (add --force if overwriting confirmed)
    • User configures token in .env or via --token flag
  5. If vibefigma throws a token error, inform the user about the token requirement
  6. Review generated component
  7. If code needs cleanup, see references/responsive-cleanup.md for making code responsive and production-ready

Output

VibeFigma generates:

  • React component (.tsx) with Tailwind CSS classes
  • Assets (images/icons) in the assets directory

Notes

  • Always select a specific node/frame in Figma URL for best results
  • Generated code may need manual cleanup for production use
  • See references/responsive-cleanup.md for responsive design patterns

Prerequisites

Figma access token

Limitations

  • Always select a specific node/frame in Figma URL for best results
  • Generated code may need manual cleanup for production use

How it compares

This skill automates the conversion of Figma designs to functional React code, bypassing manual UI coding from design specifications.

Compared to similar skills

vibefigma side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
vibefigma (this skill)06moReviewBeginner
visual-design-foundations55moNo flagsBeginner
frontend-design-pro108moNo flagsIntermediate
design04moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry