figma-to-tailwind

Fetch Figma file variables and write them as Tailwind CSS v4 @theme tokens.

Updated May 18, 2026
One-click install
npx skills add https://github.com/gaspanik/vanilla-tailwind4-starter --skill figma-to-tailwind-gaspanik
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: figma-to-tailwind
Source: https://github.com/gaspanik/vanilla-tailwind4-starter/tree/main/.claude/skills/figma-to-tailwind
Command: npx skills add https://github.com/gaspanik/vanilla-tailwind4-starter --skill figma-to-tailwind-gaspanik

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Transforms design variables defined in a Figma file into Tailwind CSS v4 @theme tokens, eliminating manual token mapping and ensuring design-to-code parity.

Core Features & Use Cases

  • Import all design tokens from a Figma file and export them as Tailwind @theme tokens in the project's CSS entry.
  • Automatically map color, spacing, radii, typography and other design tokens to appropriate CSS variables for consistent theming.
  • Use case: a design system team exports Figma tokens and updates the Tailwind theme across a multi-page site with a single workflow.

Quick Start

Run the skill with a Figma URL to fetch all tokens and write them to the Tailwind theme file.

Frequently Asked Questions about figma-to-tailwind

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I import Figma variables into Tailwind CSS v4?

To import Figma variables into Tailwind CSS v4, provide a Figma file URL to fetch all design tokens and automatically write them as @theme tokens into your project's detected Tailwind entry file.

What design tokens can be mapped from Figma to Tailwind?

Figma to Tailwind mapping supports color, spacing, typography, and radius tokens. It handles multiple Figma collections and modes, writing them as CSS variables for consistent theming across multi-page sites.

How do I sync my Figma design system with a Tailwind theme file?

You can sync a Figma design system with a Tailwind theme file by fetching variables from the Figma URL and exporting them as Tailwind v4 @theme tokens, eliminating manual token mapping and ensuring design-to-code parity.

Does the Figma to Tailwind token workflow support multiple Figma collections and modes?

Yes, the Figma to Tailwind token workflow supports multiple Figma collections and modes. It fetches all variables from the Figma file URL and maps them to appropriate CSS variables for your project.

How does the Figma to Tailwind skill find the correct CSS entry file?

The Figma to Tailwind skill finds the correct CSS entry file by scanning your project structure for a suitable Tailwind entry file, then writing the fetched Figma variables as @theme tokens directly into that file.

Can I automate Figma to Tailwind token handoffs for multi-page sites?

Yes, you can automate Figma to Tailwind token handoffs for multi-page sites. This design-to-code workflow fetches all Figma variables and writes them as Tailwind v4 @theme tokens, enabling consistent theming and faster handoffs.