Variables brought design tokens into Figma itself. Used well, they let one file handle themes, brands and screen sizes without duplicating a single frame.
01The four building blocks
- Variable: a named value. It can be a colour, a number, a string or a boolean.
- Collection: a group of related variables, such as Primitives or Semantic colours.
- Mode: a set of values for the same variables, such as Light and Dark.
- Alias: a variable that points to another variable instead of holding a raw value.
02A setup that scales
- Create a Primitives collection with your raw palette, spacing and radii. One mode is enough.
- Create a Semantic collection with Light and Dark modes. Alias every value to a primitive.
- Bind components to semantic variables only, never to primitives.
- Switch the mode on a frame and every component inside it follows.
03Beyond colour
Number variables work for spacing, radii and sizes, so a Compact and a Comfortable mode can share the same components. String variables are useful for prototyping copy in two languages, which helps a lot when designing Arabic and English side by side.
04Common mistakes
- Binding components straight to primitives, which breaks theming later.
- Creating a mode for every small exception instead of a new semantic variable.
- Naming variables after where they’re used today instead of what they mean.



