Figma Variables Guide (2023)

A guide that describes what Figma variables are and provides naming conventions and references to content.

Oscar de la Hera Gomez
Written by Oscar de la Hera Gomez
First published on 08/07/2023 at 13:28
Last Updated on 09/06/2023 at 13:43
<p>A flower that represents Figma with the text "Figma Variables Guide" beneath it.</p>

A guide that describes what Figma variables are and provides naming conventions and references to content.

SubscribeCheck out Figma's Guide

The following guide provides links to documentation that enables you to understand and learn how to use variables in Figma. It also covers the terminology that is used by Figma when discussing and using variables.

Please note that Variables are available only on files that are on the education plan and any paid plans.

"Variables in Figma design store reusable values that can be applied to all kinds of design properties and prototyping actions. They help save time and effort when building designs, managing design systems, and creating complex prototyping flows."

Terminology

Variables

<p>A screenshot of Figma's Introduction to Variables YouTube video showing how to create variables.</p>

Variables are numbers, colors, text (strings) or booleans that are used across your design system.

If a variable references another variable, the variable that is referenced is known as a Token.

How to create a variableHow to rename variablesHow to update the value of a variableHow to delete a variableHow to remove deleted variables that are still attached in Figma

Tokens

<p>A screenshot of Figma's Introduction to Variables YouTube video showing tokens in context.</p>

A token is a variable that has a semantic name and references another variable.

This is amazing as if you change the variable that is referenced by the token, it will change anywhere where the token is applied.

For example:

You have a collection called Styleguide that holds all the colors for a design system.

In another collection called Design System, a variable called primary-color references (or links) the white color from the Styleguide Collection.

White is the token used within the primary-color variable.

Please note that tokens are only available for colors and numbers.

How to create a TokenHow to remove deleted variables that are still attached in Figma

Groups

<p>A screenshot of Figma's Introduction toVariables YouTube video showing how variables are grouped together in a collection.</p>

Groups are folders within a collection that hold variables, allowing you to organize your variables into categories.

How to create a group for variablesHow to rename a variables groupHow to create a new variable within a groupHow to move a variable from one group to anotherHow to ungroup, delete or duplicate a variables group

Collections

<p>A screenshot of Figma's Introduction toVariables YouTube video showing how you can create a new collection, rename a collection or delete a collection.</p>

Collections hold variables, either alone or as groups, and can be thought of as baskets in which you divide variables to (i.e. Styleguide, Primitives, Tokens, App Design System, Web Design System).

Variables within collections can be linked to variables in other collections - these are known as tokens.

How to create a variable collectionHow to rename a variable collectionHow to delete a variable collectionHow to switch between collections

Modes

<p>A screenshot of Figma's Introduction to Variables YouTube video showing how you can create a light and dark mode within a collection.</p>

Modes are columns within a collection.

This allows you to apply different variables (rows) to different modes.

For example:

  • The design system collection has two modes: Dark Modes and Light Mode (The Modes). Dark Mode (the mode) uses white (the token) for the primary-color (the variable), whilst Light Mode (the mode) uses black (the token) as a primary color (the variable).
  • The language manager collection has 24 modes, one for each of the 24 different languages of an Apple App. For the welcome page, the hello variable uses Hola in Spanish (Spanish Mode), 你好 in Simplified Chinese (Simplified Chinese Mode) and Hello in English (English Mode).
How to create a new Figma Variable ModeHow to rename a Variable ModeHow to duplicate a Variable ModeHow to delete a Variable Mode

Libraries

<p>A screenshot from Figma's introduction to Variables showing a library open within a Figma design file.</p>

Libraries the term used for the pop up that allows you to access variables within a Figma Design files.

Design Systems

<p>An image that shows visual elements of a design system, intended to suggest that it serves as a toolkit or framework.</p>

A design system is a collection of reusable components and elements, such as materials, typography, logos or colors, that serve as the backbone behind the creation and promotion of a physical or digital product.

What is a Design Systems?

Learn how to use Variables with Figma

Learn the Basics

Follow our tutorials below to learn the basics behind applying String (Text), Boolean, Color and Number variables.

How to use a String Variable in FigmaHow to use a Boolean Variable in FigmaHow to use a Color Variable in FigmaHow to use a Number Variable in Figma

Create and Use Design Systems

Follow the tutorials below to learn how to create and use design systems that include dark and light mode, localization and responsive design.

How to create a Design System using Variables in FigmaHow to create and use Light & Dark Mode in an app or website designHow to adapt Designs to work with Multiple Languages in FigmaFigma Responsive Design Guide (2023)

Preview Variable Drive Designs

Follow the tutorials below to learn the ways you can preview designs driven by variables.

How change the Variable Mode for a Page in a Figma Design FileHow to set the Variable Modes of a Section in Figma

Additional Content

We recommend that you watch the following Youtube videos to get a grasp of how Variables work in Figma.

To make sure you get the most out of the videos, download Figma's playground file designed to help you learn how to use variables.

Check out Figma's Variable Playground File

Looking to migrate Styles to Variables ?

Check out the video below to learn how to migrate an existing design system to variables.

Looking to learn more about things you can do with Figma ?

Search our blog to find educational content on learning how to use Figma.

Search our BlogCheck out our Figma Resources Article

Any Questions?

We are actively looking for feedback on how to improve this resource. Please send us a note to inquiries@delasign.com with any thoughts or feedback you may have.
SubscribeContact UsVisit our BlogView our ServicesView our Work

Partner with us

We would love to get to know you and see how we can help your organization with its goals and needs.
Let's Talk

Stay Informed

Get occasional updates about our company, research, and product launches.
Subscribe