How to create and use variants in Figma

Updated · DeskHowTo

In Figma (verified 2026-10-24), select related components and click Combine as variants in the right sidebar to build a component set. Add properties (for example Size = Small/Large, State = Default/Hover) so each variant is a unique combination.

Place an instance and change property values in the right panel instead of hunting separate components. Publish the set to a library when teammates need it.

Jump to

Applies to Figma Design in the browser and desktop app with edit access. Publishing variants to a team library needs a plan that supports shared libraries. View-only seats can use published instances but cannot create sets.

Build a clean variant set

Combine components

  1. Select two or more similar components (or duplicate one and restyle it).
  2. In the right sidebar, click Combine as variants.
  3. Confirm the dashed purple component-set frame wraps them.

Name properties and values

  1. In the set, add or rename properties (Size, State, Color).
  2. Give each variant a unique value combination — Figma warns on duplicates.
  3. Restyle each variant so the property differences are obvious.

Use and publish

  1. Drag an instance onto the canvas.
  2. Change Size/State from the right sidebar properties.
  3. Publish the component set to your team library when ready.

Our take: variants for states, not every icon

Use variants for button states and sizes. Do not stuff unrelated icons into one set — that makes the property grid unusable.

If it fails

  • Combine as variants missing: select main components, not plain frames.
  • Duplicate combination error: two variants share the same property values — rename one.
  • Instance has no properties: you dropped a lone component, not a set instance.
  • Teammates cannot see it: publish the library and have them enable the update.

Frequently asked questions

What are Figma variants?

Related components grouped in a component set that share properties such as size, state or color.

How do I create variants in Figma?

Select components and click Combine as variants, or add a variant from a main component in the right sidebar.

Variants vs component properties?

Variant properties pick which look to show; boolean/text/instance-swap properties tweak layers inside a component.

Can I nest Auto layout inside variants?

Yes — most design-system buttons are Auto layout frames inside a variant set.

Do variants work in prototypes?

Yes — interactive components can Change to another variant on hover or click.

Sources checked: Figma Help: Create and use variants. Verified October 2026.