How to use modes and aliases with Figma variables
In Figma (verified 2026-10-24), open the Variables panel, create or open a collection, add modes (for example Light/Dark or Desktop/Mobile), then define color/number/string/boolean variables with a value per mode. Use aliases so semantic tokens (Background/Primary) point at primitive tokens (Blue/500). Apply a mode on a frame or section so instances resolve the right values.
This builds on basic Variables create/apply — focus is modes, aliases and collection structure for design systems. Editing variables needs edit access; some seat plans limit variables.
Applies to Figma Design files in the browser or desktop app. Styles still work for one-off fills; variables are better when you need mode switching and token aliases.
Add modes, aliases, and apply them on frames
Open collections and add modes
- Open the file → Local variables (or Assets → Variables, depending on UI).
- Create or select a collection (for example Color or Spacing).
- Add modes across the top (Light/Dark, or breakpoint names) and name them clearly.
Create variables and aliases
- Add variables (color, number, string, boolean) with a value in each mode.
- For semantic tokens, set the value to another variable (alias) instead of a raw hex.
- Group variables (Background, Text, Border) so designers and Dev Mode can scan them.
Apply modes on frames
- Select a frame or section → in the right panel, set the variable mode for that collection.
- Nested frames can override the parent mode when you need mixed themes.
- Publish the library if other files should consume the same tokens.
Our take: primitives + semantics, not one flat list
Keep Blue/500 raw; alias Button/Background to it — modes then switch cleanly without hunting hex in components.
If it fails
- No Variables panel: wrong file type or view-only access.
- Mode missing on frame: apply the collection mode on the parent frame, not only a stray layer.
- Alias greyed out: types must match (color→color).
- Dev sees raw values: bind fills/strokes to variables in Design mode first.
Frequently asked questions
What are advanced Figma variables?
Using collections with multiple modes and aliases so tokens switch by theme or breakpoint instead of detached styles.
What is a variable mode?
A named column of values in a collection (Light vs Dark). Frames pick which mode resolves.
What is an alias?
A variable whose value is another variable of the same type — useful for semantic tokens.
Do modes work with components?
Yes — instances inherit the mode from the parent frame unless you override it.
Variables vs styles?
Styles are single values; variables support modes, aliases and tighter Dev Mode inspect.