Figma Toolkit
Battle-tested skill for figma, server, fetch, design. Includes structured workflows, validation checks, and reusable patterns for creative design.
Figma Toolkit
A Claude Code skill for integrating Figma into your development workflow using the Figma MCP server. Connects Claude directly to your Figma files for inspecting designs, extracting specifications, and translating design tokens into code ā all without leaving your terminal.
When to Use This Skill
Choose Figma Toolkit when:
- You want to inspect Figma designs and extract specs directly from Claude Code
- You need to pull colors, typography, spacing, and component details from Figma
- You're setting up the Figma MCP integration for your project
- You want to compare your implementation against the original Figma design
- You need to extract design tokens from Figma files programmatically
Consider alternatives when:
- You need to implement a full Figma-to-code workflow (use a Figma implement design skill)
- You want general frontend design guidance (use a frontend design skill)
- You need a complete design system setup (use a UI design system skill)
Quick Start
# Install the skill claude install figma-toolkit # Set up Figma MCP (requires Figma access token) export FIGMA_ACCESS_TOKEN="your-figma-access-token" # Inspect a Figma file claude "Inspect the Figma file at [URL] and list all the components and their properties" # Extract design tokens claude "Extract the color palette and typography scale from this Figma file: [URL]" # Compare implementation to design claude "Compare my Button component implementation against the Button in this Figma file"
Core Concepts
Figma MCP Integration
| Feature | Description | Use Case |
|---|---|---|
| File Inspection | Read Figma file structure and metadata | Understand design organization |
| Component Extraction | Pull component properties and variants | Build matching React components |
| Style Extraction | Get colors, fonts, effects, grids | Create design token files |
| Layer Inspection | Examine specific frames and layers | Get precise measurements |
| Image Export | Export assets from Figma layers | Download icons and images |
Design Token Pipeline
Figma File
āāā Colors ā CSS custom properties / Tailwind config
āāā Typography ā Font family, size, weight, line-height scales
āāā Spacing ā Consistent spacing scale (4px, 8px, 16px...)
āāā Shadows ā Box-shadow values
āāā Border Radius ā Border radius scale
āāā Breakpoints ā Responsive design breakpoints
Output formats:
ā CSS Custom Properties (--color-primary: #3B82F6)
ā Tailwind config (theme.extend.colors)
ā JSON tokens (Style Dictionary format)
ā TypeScript constants
Figma Node Types
| Node Type | Description | Code Equivalent |
|---|---|---|
| Frame | Container with layout | div with flexbox/grid |
| Component | Reusable design element | React component |
| Instance | Component usage with overrides | Component with props |
| Text | Typography layer | p, h1-h6, span |
| Rectangle | Shape layer | div with styling |
| Group | Logical grouping | Wrapper div |
Configuration
| Parameter | Type | Default | Description |
|---|---|---|---|
figma_token | string | "" | Figma personal access token |
output_format | string | "tailwind" | Token format: tailwind, css, json, typescript |
framework | string | "react" | Target framework: react, vue, svelte |
include_variants | boolean | true | Extract component variants |
pixel_to_rem | boolean | true | Convert pixel values to rem |
Best Practices
-
Set up the Figma MCP server first ā The MCP server provides direct Figma API access. Configure it with your access token in the Claude Code MCP settings. Verify the connection before trying to extract designs.
-
Extract design tokens before building components ā Pull the color palette, typography scale, and spacing values first. Set these up as CSS variables or Tailwind config. Then build components using those tokens for consistency.
-
Use component names as your source of truth ā Figma component names should map to your code component names. If the designer names it "Button/Primary/Large," your code should have a Button component with variant="primary" and size="large".
-
Compare at the property level, not pixel level ā Don't try to match screenshots pixel-by-pixel. Compare colors, font sizes, spacing values, and layout properties. Small rendering differences between Figma and browser are normal.
-
Automate token extraction ā Set up a script that pulls tokens from Figma and generates your design token files. Run it when designs update to keep code and design in sync automatically.
Common Issues
MCP connection fails ā Check that your Figma access token is valid and has the right permissions. Ensure the MCP server is configured in your Claude Code settings. Test with a simple file request first.
Extracted values don't match implementation ā Figma uses absolute pixel values while your code might use rem or percentage units. Set up a consistent conversion (1rem = 16px) and apply it during token extraction.
Too many components to extract ā Focus on your design system's core components first: buttons, inputs, cards, navigation. Extract page-specific layouts as needed rather than trying to extract everything at once.
Reviews
No reviews yet. Be the first to review this template!
Similar Templates
Full-Stack Code Reviewer
Comprehensive code review skill that checks for security vulnerabilities, performance issues, accessibility, and best practices across frontend and backend code.
Test Suite Generator
Generates comprehensive test suites with unit tests, integration tests, and edge cases. Supports Jest, Vitest, Pytest, and Go testing.
Pro Architecture Workspace
Battle-tested skill for architectural, decision, making, framework. Includes structured workflows, validation checks, and reusable patterns for development.