Level 2 · Reusable, systematic design · about 10 minutes · free

Variants: one component, many states

Buttons have hover and disabled states; cards can be default or featured. Variants keep every version in one tidy set with simple switches.

Variants: one component, many states: the finished result in FigCraft
Start the interactive lesson: narrated demo, steps and quiz →

What you’ll learn

Step by step

  1. Go to the Components page and select the main Profile card.
  2. Click + Add variant. FigCraft wraps it in a set and adds Variant2.
  3. Select Variant2. Set its fill to E6F4EE and its stroke to 1 px 8CCBB4.
  4. Rename the variants: double-click and type Style=Default and Style=Featured.
  5. Select the set. The right panel shows a property Style with two values.
  6. Back on Screens, select Jonah's instance.
  7. A Style menu appears. Choose Featured.
  8. The look changes; Jonah's name stays.
  9. Add a third variant Style=Muted with fill F2F4F3 and no shadow.
  10. Set Mara's instance to Muted and back to Default. Save.

Tips

Check yourself

Why not just make two separate components, Card and Featured card?

Variants keep them in one set, so any instance can switch with one click and keep its content.

← Components: design once, use everywhereVariables and dark mode →

FigCraft is an open-source project by its own authors. Craftpath is an independent, free learning resource.