# Figma to Storybook playbook

A five-step guide to cleaning up Figma tokens and bringing a component into Storybook with usage rules AI can follow. Includes reusable prompts and a review checklist.

Curated by The Design Project. Adapted from the original skills repo.

## How TDP uses it

Start with one component. Audit its tokens, resolve gaps between Figma and code, define the rules, then build and review it with your team.

Activation and available tools depend on the host and installed version.

## Your first task

Bring: A Figma component, its states and tokens, and a project with Storybook configured.

Task: Build one component from the reference and add stories for its meaningful states before scaling the library.

Check: Compare the stories with Figma, test interactions and keyboard behavior, and document intentional differences.

## When to use this workflow

Use the companion resource when an existing Figma component needs a working, documented implementation. Begin with a source audit rather than a screenshot conversion. The design file and production code may already disagree about values, states, or intended usage.

## A worked example

In TDP’s demonstration, Dianne audits the Carrot variables and a button before building the Storybook version. The process identifies raw semantic colors, incomplete mappings, differing dimensions, and unresolved interaction rules. The useful sequence is to inspect, resolve decisions, implement, and then compare the result with the approved contract.

## Decisions and common mistakes

For your own pilot, ask the agent to identify the source of each answer and separate facts, recommendations, and unknowns. Choose one component, document its anatomy and supported combinations, and create inspectable stories. Adapt the demonstration’s decisions to your product rather than copying its button behavior blindly.

## What to hand off

Review the component in isolation and in a real page composition. Record intentional differences between Figma and code, then update the relevant source. The original companion guide remains available through its existing access flow; the related field guide provides the expanded public walkthrough.

## Step-by-step setup

1. Choose one task, provide the relevant files or brief, and define the expected output.
2. Review the source and prerequisites; install the skill or open the original resource.
3. Apply it with current project context.
4. Review the result against the actual requirements.
5. Save approved outputs and record limitations.

[Original resource](https://designproject.io/figma-to-storybook-guide/)

[Related step-by-step guide](https://designproject.io/resources/guides/figma-to-storybook/)

## How I Build a Component Library in 2 days (Figma to Claude Code to Storybook)

Follow a TDP component-library workflow connecting Figma, Claude Code, and Storybook. The written guide narrows the task to one documented component.

[Watch the TDP walkthrough](https://www.youtube.com/watch?v=AiEATeNyWnk)

## Use it in a workflow

[Browse all agent skills](https://designproject.io/resources/skills/)

[Original TDP skills repo](https://designproject.io/skills-repo/)

Canonical: https://designproject.io/resources/skills/figma-to-storybook-guide/

## Keep learning

- [Use the Figma MCP](https://designproject.io/resources/skills/figma-use/)
- [A design-to-code workflow: from requirements to review](https://designproject.io/resources/guides/design-to-code-workflow/)
- [Figma to Storybook: Build a component library AI can use](https://designproject.io/blog/figma-storybook-ai-components/)
