Switching between Dark and Light themes in Figma prototypes using conditional expressions

You’ll learn how to switch between mods using the example of a light and a dark theme in Figma.

A lesson on Dark Light themes in Figma prototypes using conditional expressions. Watch on YouTube https://youtu.be/vUVKo-YMoAM

You will see how to create and configure themes through a collection. You will learn how to manage the application state. You will learn to use conditional expressions in Figma interactive prototypes.

  • 2:30 Overview of Theme variables and mods
  • 3:25 Overview of variable assignment
  • 4:40 Overview of the task
  • 5:10 Overview of the toggle component
  • 6:20 Creating a modal toggle component
  • 6:55 Creating the component’s interactivity
  • 7:35 What is the application state
  • 9:05 Creating a state variable
  • 9:50 Intermediate result: what was done
  • 11:10 Task description: what we’re going to do next
  • 11:45 Creating a conditional expression
  • 12:30 Creating a condition for switching the mode
  • 14:10 Switching the state variable
  • 15:20 Conditional operator not
  • 16:20 Switching option
  • 16:40 Homework
  • 17:25 Checking the result
November 28, 2026