alvinindra/figma-mcp-rust/generate-component-variants

Claude Code and agent skill by alvinindra/figma-mcp-rust

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Clone 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.

Install

npx vskill@latest install alvinindra/figma-mcp-rust/generate-component-variants

SKILL.md

Generate Component Variants

Given an existing frame or component, produce a set of visual variants (e.g. sizes, color themes, states) by cloning and mutating it. Arrange the variants in a tidy grid for review.

Input

Ask the user:

  • Source node ID (the base component or frame to clone)
  • What variants to generate, one or more of:

a) Sizes: Small, Medium, Large (scale width/height, adjust font size and padding) b) Color themes: e.g. Primary, Secondary, Danger, Success, Warning c) States: Default, Hover, Pressed, Disabled, Loading d) Dark mode: duplicate with inverted background/text colors

  • Arrange output on same page or new frame? (default: new container frame)

Steps

1. Inspect the source

Call get_node(sourceNodeId) to understand:

  • Width, height, position
  • Fill colors (note hex values)
  • Text content and sizes
  • Child structure
2. Plan the variant grid

Calculate layout:

  • Each clone = source width x source height
  • Gap between clones = 24px
  • Label each clone with its variant name (create_text node below each)
  • Total container width = (cloneWidth + 24) x columns
3. Create container frame (if requested)

create_frame(name="Variants/ComponentName", width=totalWidth, height=totalHeight, layoutMode="HORIZONTAL", itemSpacing=24, paddingTop=32, paddingLeft=32, paddingRight=32, paddingBottom=32)

4. For each variant

Sizes:

  • Clone source: clone_node(sourceId, parentId=containerId)
  • Compute scale factor (SM=0.75, MD=1.0, LG=1.5)
  • resize_nodes to new dimensions
  • For TEXT children: set_text to same content (font size cannot be changed via MCP; note this limitation)
  • rename_node to "ComponentName/SM" etc.

Color themes:

  • Clone source: clone_node(sourceId, parentId=containerId)
  • For each fill-bearing child: set_fills(nodeId, color=themeHex)
  • Color mapping suggestion:
  • Primary: use brand primary color
  • Secondary: use brand secondary color
  • Danger: #EF4444
  • Success: #22C55E
  • Warning: #F59E0B
  • rename_node to "ComponentName/Primary" etc.

States:

  • Clone source: clone_node(sourceId, parentId=containerId)
  • Disabled: set_fills on background to gray (#94A3B8), reduce fill opacity of text nodes
  • Hover: slightly lighten the primary fill
  • rename_node to "ComponentName/Hover" etc.

Dark mode:

  • Clone source: clone_node(sourceId, parentId=containerId)
  • Swap background fill to dark (#1E293B or similar)
  • Swap text fills to light (#F8FAFC)
  • rename_node to "ComponentName/Dark"
5. Summarize

Report all created node IDs and names. Ask the user if they want further adjustments.

Rules

  • Always inspect the source node before cloning.
  • Never modify the original source node.
  • Keep all variants on the same page unless the user requests otherwise.
  • Add a text label below each variant showing its name.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
76
Repository forks
29
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 2 Nov 2026, 6 days ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/alvinindra/figma-mcp-rust/generate-component-variants/badge)](https://verified-skill.com/skills/alvinindra/figma-mcp-rust/generate-component-variants)

Something wrong with this skill or its page? Tell us.