Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Variants | Prototyping
UI/UX with Figma
course content

Course Content

UI/UX with Figma

UI/UX with Figma

1. Figma Basic Tools
2. Creating and Organizing Objects
3. Creating Visuals
4. Prototyping
5. Submitting Work

book
Variants

What are variants?

Variants allow you to group multiple variations of a component, such as different styles or states of a button, into a single container. For example, dark, light, and green versions of a search button can be grouped into one variant set, simplifying asset management and usage.

Creating a variant set

  • Select a group of components.
  • Go to the Design panel and choose Create Component Set to group the components into a single variant.
  • Use slashes (e.g., button/dark/default) to organize properties like style (dark, light, green) and state (default, hover).
  • Rename property labels for clarity, such as changing "Property 1" to Style and "Property 2" to State.

Managing variants

Instances of variants can be created by copying any one of them. Properties of each instance can be adjusted from the Design panel, allowing you to switch between different styles or states. To add more variants, use the plus icon under the variant set to include additional variations.

Creating interactions

For interactive prototypes, connect a default button to its hover state in the Prototype tab. Set the Trigger to "While Hovering" and Animation to "Dissolve" with a 500ms duration. Use the Preview button near the flow starting point to test interactions directly.

This streamlined structure makes the process easier to understand and follow. Let me know if you need further adjustments!

True or False: Creating multiple components is more efficient than using variants when dealing with variations of a single component.

True or False: Creating multiple components is more efficient than using variants when dealing with variations of a single component.

Select the correct answer

Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 4. Chapter 6
We're sorry to hear that something went wrong. What happened?
some-alt