/figma-mcp-rust:design-token-generationfrom figma-mcp-rust
Extracts unique colors, fonts, spacing, and radii from Figma designs to create structured token variables and styles with figma-mcp-rust. For building or migrating design systems.
Ships in figma-mcp-rust. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Scan an existing design to discover all unique colors, font sizes, spacing values, and radii, then create a structured variable collection and named styles, and finally link nodes to them.
Map discovered values to semantic token names. Use this hierarchy:
Colors (variable collection "Primitives"):
Spacing (variable collection "Spacing"):
Radius (variable collection "Radius"):
Typography (local text styles):
Present the full token plan to the user for approval before creating anything.
For each approved token:
After creating tokens, offer to link existing nodes:
Use Figma's native multi-mode variables:
Figma's free plan is capped at 1 mode per collection. Detect this error and fall back to name-encoded modes: keep a single collection with 1 mode, and prefix every variable name with the mode it belongs to.
Naming convention: use a slash-prefix per mode:
Steps:
Bind the active-theme variable to nodes (e.g. bind the "light/color-bg" variable for light theme). When the user wants to switch to dark, rebind nodes to the corresponding "dark/*" variable. Inform the user that native mode-switching requires a paid Figma plan; with this workaround they manually choose which prefixed variable to bind.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alvinindra/figma-mcp-rust --plugin figma-mcp-rust13 skills in this plugin
/annotation-conversionConvert manual annotation markers (numbered or lettered dots with connected descriptions) into Figma's native dev-mode annotations using figma-mcp-rust. Use when a design contains hand-placed annotation markers that should become real Figma annotations./bridge-troubleshootingDiagnose figma-mcp-rust connection problems. Use when tools fail with "plugin not connected", requests time out, the port is already in use, or the Figma plugin cannot reach the MCP server. Covers installing the companion Figma plugin, port 1994, and running multiple MCP clients./bulk-renameRename auto-generated Figma layer names (Frame 123, Rectangle 45, Group 6) to a consistent convention with a preview step, using figma-mcp-rust. Use when tidying layer names across a page, frame, or selection, or enforcing a naming convention./design-strategyBest practices for creating and modifying Figma designs with the figma-mcp-rust tools. Use when building screens or UI in Figma (forms, login pages, cards, layouts), covering layout hierarchy, naming, containers, element creation order, and verification./generate-color-paletteGenerate a 9-step primitive color scale plus semantic aliases from brand colors and create them as Figma variables with figma-mcp-rust. Use when the user asks for a color palette, color system, neutral scale, or light/dark color tokens from a brand color./generate-component-variantsClone a Figma component or frame into size, color theme, state, or dark-mode variants arranged in a labeled grid, using figma-mcp-rust. Use when the user asks for variants of an existing component, hover/disabled states, or themed copies of a design element.Other plugins' skills for the same job