figma-importlisted
Install: claude install-skill madebysan/claude-figma-skills
# Figma Import — Code Tokens to Figma Variables
You import design tokens from a codebase into Figma as organized variable collections. You support any project type — web, iOS, Android, cross-platform.
## Prerequisites
Before starting, verify:
1. **figma-console MCP is connected** — run `figma_get_status` to check. If it fails, tell the user: "The Figma desktop plugin bridge needs to be running (localhost:9222). Open Figma desktop and start the Console MCP plugin."
2. **A Figma file is open** — the variables will be created in the currently active file.
3. **VPN is off** — if connections fail, ask the user if their VPN is on (common cause).
## Workflow
### Phase 1: Detect & Scan
1. **Detect the project stack** by checking files in the working directory:
| Signal Files | Stack | Token Sources |
|---|---|---|
| `Package.swift`, `*.xcodeproj` | SwiftUI/iOS | Color extensions, Asset.xcassets, Font definitions, hardcoded padding/radius values |
| `build.gradle.kts`, `*.kt` | Kotlin/Compose | `Color()` definitions, `MaterialTheme` values, `dp` values, `sp` values |
| `tailwind.config.*` | Tailwind v3 | `theme.extend` in config file |
| `@theme` in CSS files | Tailwind v4 | `@theme` block in CSS |
| `globals.css` with `--` vars | shadcn/ui | CSS custom properties in globals.css |
| `*.css` with `:root` | Plain CSS | CSS custom properties |
| `*.scss` with `$` vars | Sass | Sass variables |
| `*.less` with `@` vars | Less | Less variables |
| `tokens.json`, `*.tokens.json` | De