Using tokens in design
In Figma, design tokens are called variables. Our Figma variables use the same values as our design tokens.
Use the alias variables wherever possible. For example, information foreground. This means that your file will stay up to date if the literal token or theme changes.
Do not detach variables or override them with raw values. This breaks the link back to the tokens in the design system and will not update if the token changes.
Literal variables are hidden by default.
You can use the theme/mode switcher on a frame or page to choose the theme for your design. Select the Apply variable mode button, then Alias (Theme), and choose the mode you need.
Help improve this page
If you have a question, idea, or suggestion to improve this component or guidance, post in the Ask Elements Teams channel.