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
- Default state, most common variant
- Convert to component, add properties
- Size variants
- State variants
- Type variants
- Icon slot variants last
Quality Checks
Anti-Patterns
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-matrix3description: "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."4disable-model-invocation: true # skill-optimizer5metadata:6 source: https://skillmd.com/skills/slipcast-dev/figma-variant-matrix7---89# Figma Variant Matrix Skill1011Defines 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.1213## Required Inputs1415- **Component name** (Button, Card, Input, Badge, Navigation item, etc.)16- **Component purpose** (what does it do, where is it used?)17- **Platform** (iOS / Android / Web / Multi-platform)18- **Design system context** (standalone / part of existing system)1920## Output Structure2122### 1. Component Overview23Name, category (Interactive/Display/Layout/Form/Navigation/Feedback), used in contexts.2425### 2. Variant Properties2627| Property | Values | Notes |28|---|---|---|29| Type | Primary, Secondary, Tertiary, Destructive | |30| Size | Large, Medium, Small | |31| State | Default, Hover, Active, Disabled, Loading | |32| Icon | None, Leading, Trailing, Only | |3334Total combinations: [N]. Flag if over 50 — consider splitting into multiple components.3536### 3. State Definitions3738For each state, list only what changes from Default:39- Default: [Full visual spec]40- Hover (web): [Delta from default]41- Active/Pressed: [Delta]42- Disabled: [Delta — use layer-level properties, not opacity on whole component]43- Loading: [What replaces label, interactive during loading?]44- Error (forms): [Border colour, helper text, icon changes]4546### 4. Anatomy Breakdown4748| Layer name | Purpose | Required? | Notes |49|---|---|---|---|50| container | Background and bounds | Yes | |51| label | Text | Conditional | Hide when icon-only |52| icon-leading | Leading icon slot | No | |5354### 5. Token Mapping5556| Property | Token | Fallback |57|---|---|---|58| Background default | color.brand.primary | #hex |59| Border radius | radius.medium | 8px |6061### 6. Build Order621. Default state, most common variant632. Convert to component, add properties643. Size variants654. State variants665. Type variants676. Icon slot variants last6869## Quality Checks70- [ ] All interactive states defined71- [ ] Total variant count calculated, flagged if over 5072- [ ] Every layer named semantically73- [ ] Token mapping covers all visual properties74- [ ] Disabled state uses layer-level properties not opacity7576## Anti-Patterns7778- [ ] Do not create a variant matrix with properties that overlap or conflict — each property must be independently variable79- [ ] Do not use opacity for disabled states — disabled states must use layer-level properties, not opacity80- [ ] Do not enumerate every mathematical combination if many are invalid — document only valid, buildable combinations81- [ ] Do not define variants without considering responsive behaviour — specify which properties change across screen sizes82- [ ] Do not produce a matrix without Figma implementation guidance — variant naming conventions must follow Figma's property system8384## Example Trigger Phrases85- "Define the variants for a [component] in Figma"86- "What states does my [component] need?"87- "Help me plan the variant matrix for [component]"88- "Set up the Figma properties for a [button/card/input]"89- "What are all the combinations I need for my [component]?"