New: Earn 20% as an AgentAlley affiliate. Share your link and earn on every sale you refer. Join now New: Earn 20% as an affiliate. Join now

Define component variants and states systematically

Figma Variant Matrix Skill

by mohitagw15856 · MIT license · ★ 1,395 on GitHub · updated Sep 23

Figma Variant Matrix Skill cover

Define component variants and states systematically for Figma. Use when asked to plan component variants, define states for a component, set up a Figma variant matrix, or work out what properties a component needs before building it.

---
name: figma-variant-matrix
description: "Define component variants and states systematically for Figma. Use when asked to plan component variants, define states for a component, set up a Figma variant matrix, or work out what properties a component needs before building it. Produces a complete variant matrix with all properties, values, and combinations needed."
---

# Figma Variant Matrix Skill

Defines all variants, properties, and states a component needs before building it in Figma — preventing missing variants discovered after the component is already used across 40 screens.

## Required Inputs

- **Component name** (Button, Card, Input, Badge, Navigation item, etc.)
- **Component purpose** (what does it do, where is it used?)
- **Platform** (iOS / Android / Web / Multi-platform)
- **Design system context** (standalone / part of existing system)

## Output Structure

Overview

Defines all variants, properties, and states a component needs before building it in Figma — preventing missing variants discovered after the component is already used across 40 screens.

Manual install (npx, ZIP)
Claude Codenpx skills add mohitagw15856/pm-claude-skills --skill figma-variant-matrix -g -a claude-code
Claude Code (manual)mkdir -p ~/.claude/skills && curl -sL https://codeload.github.com/mohitagw15856/pm-claude-skills/tar.gz/f6ca79348c55 \ | tar -xz -C ~/.claude/skills --strip-components=2 pm-claude-skills-f6ca79348c55/skills/figma-variant-matrix
Windows (PowerShell)New-Item -ItemType Directory -Force "$HOME\.claude\skills" | Out-Null; Invoke-WebRequest "https://m.agentalley.io/zip/a265e4f8ae3010b4f939/figma-variant-matrix.zip" -OutFile "$env:TEMP\figma-variant-matrix.zip"; Expand-Archive "$env:TEMP\figma-variant-matrix.zip" -DestinationPath "$HOME\.claude\skills" -Force
Claude.ai / desktopDownload the ZIP and upload it under Settings → Capabilities → Skills.
Codex, Cursor, other agentsPoint them at SKILL.md. The other files are plain text.

Connects with Agent Alley MCP · agentalley.io/mcp

Files included

  • SKILL.md3.4 KB
Read the files here
mohitagw15856/f6ca7931 file
SKILL.md
Show the full text86 lines

Figma Variant Matrix Skill

Defines all variants, properties, and states a component needs before building it in Figma — preventing missing variants discovered after the component is already used across 40 screens.

Required Inputs

  • Component name (Button, Card, Input, Badge, Navigation item, etc.)
  • Component purpose (what does it do, where is it used?)
  • Platform (iOS / Android / Web / Multi-platform)
  • Design system context (standalone / part of existing system)

Output Structure

1. Component Overview

Name, category (Interactive/Display/Layout/Form/Navigation/Feedback), used in contexts.

2. Variant Properties
Property Values Notes
Type Primary, Secondary, Tertiary, Destructive
Size Large, Medium, Small
State Default, Hover, Active, Disabled, Loading
Icon None, Leading, Trailing, Only

Total combinations: [N]. Flag if over 50 — consider splitting into multiple components.

3. State Definitions

For each state, list only what changes from Default:

  • Default: [Full visual spec]
  • Hover (web): [Delta from default]
  • Active/Pressed: [Delta]
  • Disabled: [Delta — use layer-level properties, not opacity on whole component]
  • Loading: [What replaces label, interactive during loading?]
  • Error (forms): [Border colour, helper text, icon changes]
4. Anatomy Breakdown
Layer name Purpose Required? Notes
container Background and bounds Yes
label Text Conditional Hide when icon-only
icon-leading Leading icon slot No
5. Token Mapping
Property Token Fallback
Background default color.brand.primary #hex
Border radius radius.medium 8px
6. Build Order
  1. Default state, most common variant
  2. Convert to component, add properties
  3. Size variants
  4. State variants
  5. Type variants
  6. Icon slot variants last

Quality Checks

  • All interactive states defined
  • Total variant count calculated, flagged if over 50
  • Every layer named semantically
  • Token mapping covers all visual properties
  • Disabled state uses layer-level properties not opacity

Anti-Patterns

  • Do not create a variant matrix with properties that overlap or conflict — each property must be independently variable
  • Do not use opacity for disabled states — disabled states must use layer-level properties, not opacity
  • Do not enumerate every mathematical combination if many are invalid — document only valid, buildable combinations
  • Do not define variants without considering responsive behaviour — specify which properties change across screen sizes
  • Do not produce a matrix without Figma implementation guidance — variant naming conventions must follow Figma's property system

Example Trigger Phrases

  • "Define the variants for a [component] in Figma"
  • "What states does my [component] need?"
  • "Help me plan the variant matrix for [component]"
  • "Set up the Figma properties for a [button/card/input]"
  • "What are all the combinations I need for my [component]?"
1---
2name: figma-variant-matrix
3description: "Define component variants and states systematically for Figma. Use when asked to plan component variants, define states for a component, set up a Figma variant matrix, or work out what properties a component needs before building it. Produces a complete variant matrix with all properties, values, and combinations needed."
4---
5 
6# Figma Variant Matrix Skill
7 
8Defines all variants, properties, and states a component needs before building it in Figma — preventing missing variants discovered after the component is already used across 40 screens.
9 
10## Required Inputs
11 
12- **Component name** (Button, Card, Input, Badge, Navigation item, etc.)
13- **Component purpose** (what does it do, where is it used?)
14- **Platform** (iOS / Android / Web / Multi-platform)
15- **Design system context** (standalone / part of existing system)
16 
17## Output Structure
18 
19### 1. Component Overview
20Name, category (Interactive/Display/Layout/Form/Navigation/Feedback), used in contexts.
21 
22### 2. Variant Properties
23 
24| Property | Values | Notes |
25|---|---|---|
26| Type | Primary, Secondary, Tertiary, Destructive | |
27| Size | Large, Medium, Small | |
28| State | Default, Hover, Active, Disabled, Loading | |
29| Icon | None, Leading, Trailing, Only | |
30 
31Total combinations: [N]. Flag if over 50 — consider splitting into multiple components.
32 
33### 3. State Definitions
34 
35For each state, list only what changes from Default:
36- Default: [Full visual spec]
37- Hover (web): [Delta from default]
38- Active/Pressed: [Delta]
39- Disabled: [Delta — use layer-level properties, not opacity on whole component]
40- Loading: [What replaces label, interactive during loading?]
41- Error (forms): [Border colour, helper text, icon changes]
42 
43### 4. Anatomy Breakdown
44 
45| Layer name | Purpose | Required? | Notes |
46|---|---|---|---|
47| container | Background and bounds | Yes | |
48| label | Text | Conditional | Hide when icon-only |
49| icon-leading | Leading icon slot | No | |
50 
51### 5. Token Mapping
52 
53| Property | Token | Fallback |
54|---|---|---|
55| Background default | color.brand.primary | #hex |
56| Border radius | radius.medium | 8px |
57 
58### 6. Build Order
591. Default state, most common variant
602. Convert to component, add properties
613. Size variants
624. State variants
635. Type variants
646. Icon slot variants last
65 
66## Quality Checks
67- [ ] All interactive states defined
68- [ ] Total variant count calculated, flagged if over 50
69- [ ] Every layer named semantically
70- [ ] Token mapping covers all visual properties
71- [ ] Disabled state uses layer-level properties not opacity
72 
73## Anti-Patterns
74 
75- [ ] Do not create a variant matrix with properties that overlap or conflict — each property must be independently variable
76- [ ] Do not use opacity for disabled states — disabled states must use layer-level properties, not opacity
77- [ ] Do not enumerate every mathematical combination if many are invalid — document only valid, buildable combinations
78- [ ] Do not define variants without considering responsive behaviour — specify which properties change across screen sizes
79- [ ] Do not produce a matrix without Figma implementation guidance — variant naming conventions must follow Figma's property system
80 
81## Example Trigger Phrases
82- "Define the variants for a [component] in Figma"
83- "What states does my [component] need?"
84- "Help me plan the variant matrix for [component]"
85- "Set up the Figma properties for a [button/card/input]"
86- "What are all the combinations I need for my [component]?"
View all files on GitHub →

Details

Updated
Sep 23, 2026
License
MIT
Stars on the repo
★ 1,395
Checked
Source
mohitagw15856/pm-claude-skills ↗
Creator
mohitagw15856 · 193 listings
View creator

Made with figma-variant-matrix

Figma Variant Matrix Skill — Galaxy 3D — fly through all 1170 skills as a glowing constellation you orbit and click into (from the mohitagw15856/pm-claude-skills README)
Figma Variant Matrix Skill — Galaxy 3D — fly through all 1170 skills as a glowing constellation you orbit and click into (from the mohitagw15856/pm-claude-skills README)

by mohitagw15856

Figma Variant Matrix Skill — PM Skills Wrapped — your practice turned into a shareable, Spotify-Wrapped-style story (from the mohitagw15856/pm-claude-skills README)
Figma Variant Matrix Skill — PM Skills Wrapped — your practice turned into a shareable, Spotify-Wrapped-style story (from the mohitagw15856/pm-claude-skills README)

by mohitagw15856

Similar skills

See all →
SkillDesign, redesign, shape, critique, audit, polish, clarifyImpeccablepbakaus/impeccable · by pbakausUse when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or otherwise improve a frontend interface. Covers websites, landing pages, dashboards, product UI, app shells, components, forms, settings, onboarding, and empty states. Handles UX review, visual hierarchy, information architecture, cognitive load, accessibility, performance, responsive behavior, theming, anti-patterns, typography, fonts, spacing, layout, alignment, color, motion, micro-interactions, UX copy, error states, edge cases, i18n, and reusable design systems or tokens. Also use for bland designs that need to become bolder or more delightful, loud designs that should become quieter, live browser iteration on UI elements, or ambitious visual effects that should feel technically extraordinary. Not for backend-only or non-UI tasks.★ 70.4k GitHub starsSkillApple's approach to interface design and fluidApple designemilkowalski/skills · by emilkowalskiApple's approach to interface design and fluid, physical motion, translated for the web. Use when building or reviewing gesture-driven UI, spring animations, drag/swipe/sheet interactions, momentum and interruptible transitions, translucent materials and depth, typography (optical sizing, tracking, leading), reduced-motion, or the design foundations (feedback, spatial consistency, restraint) behind Apple-style interfaces.★ 40.8k GitHub starsSkillBuild an animation from scratchBuilding Animationsemilkowalski/skills · by emilkowalskiBuild an animation from scratch, making the decisions in the order that determines whether it feels right — should it animate at all, what purpose, which tool, which properties, which curve and duration, how it interrupts, how it exits. Writes the implementation. Use when asked to animate something, add motion, make a component feel alive, or build a transition. For critiquing existing motion use review-animations; for auditing a whole codebase use improve-animations.★ 40.8k GitHub starsSkillRenders a component you choose in every stateBreakjakubkrehel/skills · by jakubkrehelRenders a component you choose in every state and scenario on a temporary page and stress tests it.★ 7.1k GitHub starsSkillReviews your work across multiple categories like UIChange reviewjakubkrehel/skills · by jakubkrehelReviews your work across multiple categories like UI, typography, layout, color, writing and accessibility and gives you a detailed analysis of the findings.★ 7.1k GitHub starsSkillCraft-first interface design for dashboards, admin panelsThe ProblemDammyjay93/interface-design · by Dammyjay93Craft-first interface design for dashboards, admin panels, SaaS apps, tools, settings pages, data interfaces, and interactive products. Use when designing, building, reviewing, auditing, or refining product UI where visual craft, layout hierarchy, tokens, states, visual direction, or design-system consistency matter. Not for marketing pages, landing pages, campaigns, or brand-only work.★ 5.8k GitHub stars

More from mohitagw15856

SkillDesign a 360-degree feedback survey or write a structured360-Degree Feedback Template Skillmohitagw15856/pm-claude-skills · by mohitagw15856Design a 360-degree feedback survey or write a structured 360 feedback report. Use when asked to build a 360 feedback process, write 360 feedback for a colleague, design a feedback survey, or produce a feedback report. Produces either a complete survey instrument with rating scales and open-ended questions, or a structured narrative feedback report with themes, strengths, and development areas.★ 1.4k GitHub starsSkillDesign statistically rigorous A/B tests for product featuresA/B Test Planner Skillmohitagw15856/pm-claude-skills · by mohitagw15856Design statistically rigorous A/B tests for product features, UI changes, onboarding flows, and pricing experiments. Use when asked to set up an experiment, design an A/B test, calculate sample size, or interpret test results. Produces a complete test plan with hypothesis, variant definitions, sample size, duration estimate, guardrail metrics, and a results interpretation guide.★ 1.4k GitHub starsSkillGenerate a WCAG 2.2 accessibility audit checklistAccessibility Audit Skillmohitagw15856/pm-claude-skills · by mohitagw15856Generate a WCAG 2.2 accessibility audit checklist and remediation suggestions for any UI or design. Use when asked to audit for accessibility, check WCAG compliance, review a design for a11y issues, or create an accessibility remediation plan. Produces a prioritised checklist with pass/fail assessments and specific fixes.★ 1.4k GitHub starsSkillBuild a structured account plan for any key customerAccount Plan Skillmohitagw15856/pm-claude-skills · by mohitagw15856Build a structured account plan for any key customer or target account. Use when asked to create an account plan, key account strategy, strategic account review, or territory plan. Produces a complete account plan with relationship map, growth opportunities, risks, and 90-day action plan.★ 1.4k GitHub starsSkillOptimize an article for Answer Engine Optimization so AIAEO Optimizer Skillmohitagw15856/pm-claude-skills · by mohitagw15856Optimize an article for Answer Engine Optimization (AEO) so AI engines like ChatGPT, Perplexity, and Claude can extract, quote, and cite it. Use when asked to AEO-optimize, make content AI-readable, improve AI citation chances, or adapt an article for answer engines. Produces an AEO-optimised rewrite with question headings, 50–80 word answer capsules, a paragraph-length audit, and flagged trust signals.★ 1.4k GitHub starsSkillConduct a structured ethical review of an AI or ML featureAI Ethics Review Skillmohitagw15856/pm-claude-skills · by mohitagw15856Conduct a structured ethical review of an AI or ML feature, model, or product. Use when preparing to deploy an AI system, assessing algorithmic risk, auditing a model for bias, or producing a responsible AI impact assessment. Produces a structured ethics review covering fairness, transparency, privacy, safety, accountability, and societal impact with a risk tier score, pre-deployment checklist, and prioritised mitigations.★ 1.4k GitHub stars