Variables and themes
This page helps you make variables and themes, and share tokens.
Example: you make a colour variable named brand. Many layers use it. You change brand once. All layers change.
How to open Variables
Click Variables and design tokens in the top bar. You can also click Open variables in the right panel when nothing is selected.
How to add a variable
- Open Variables.
- Click Add variable.
- Choose a type: Color, Number, String, Boolean, Timing, Easing or Image.
- Type a name and a value.
Then use the variable on a layer. Click the variable button on a field and pick it.
Timing and easing variables
A motion can use them for its duration, delay and easing. Change the variable once. Every motion that uses it changes.
Figma's Timing and Easing variables import as these types.
How to make a theme
- Open Variables.
- Click Add theme. A theme group appears as a tab.
- Click Add theme value to add a value, such as "dark".
- Type a different value for each variable in each theme.
To rename or delete a theme, click Theme axis options.
How to preview a theme
- Click empty canvas so nothing is selected.
- In the Design tab of the right panel, find Theme.
- Pick a theme value.
Every screen shows that theme. This does not change the file. If the file has no themes, Theme does not show.
How to set a theme on one frame
- Select the frame.
- In the Design tab of the right panel, find Theme. It shows only when the file has themes.
- Pick a value. Pick Auto to follow the parent.
- To remove your picks, click Reset theme overrides.
How to import and export tokens
- Click Import tokens to load W3C (DTCG) JSON or Tokens Studio JSON.
- Click Export tokens to save W3C JSON and CSS.