Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Contact Us
  • Home
  • Figma Design – Figma Learn
  • Build design systems
  • Variables

Guide to variables in Figma

Written by Figma Man

Updated at June 19th, 2025

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Administration – Figma Learn
    Manage files and projects Manage a team Manage your account Manage a Figma organization Manage Enterprise plan settings and permissions Billing Manage Figma in a school
  • Figma Design – Figma Learn
    Create prototypes Import and export Create designs Tour the interface Dev Mode Work together in files Build design systems Figma Draw
  • Get started – Figma Learn
    Set up your account Layers 101
  • FigJam – Figma Learn
    Import and export Run meetings Work on boards Tour the interface
  • Community – Figma Learn
    Explore the Community Creator tools and resources
  • Help – Figma Learn
    Troubleshoot Common questions Work with support
  • Work across Figma – Figma Learn
    Figma AI Work across Figma
  • Courses, tutorials, projects – Figma Learn
    Courses Projects
  • Figma Slides – Figma Learn
    Create and edit slides Present slide decks Tour the interface Import and export
  • Figma Buzz – Figma Learn
    Templates in Figma Buzz Create and edit assets in Figma Buzz Overview
  • Figma Make – Figma Learn
    Tour the interface Work with Figma Make
  • Figma Sites – Figma Learn
    Design a site Create webpages and breakpoints Make your site interactive Preview and publish a site Tour the interface
+ More

Table of Contents

Variables for designs and design systems Variables for advanced prototyping Variables using APIs

Before you Start

Who can use this feature

Variables in prototypes and publishing variables to team libraries are available on the education plan and any paid plans

Anyone with can edit access to a file can create and manage variables

Anyone with access to a file can use variables from that file in their designs

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.

For example, you can:

  • Create design tokens for better efficiency when managing design systems
  • Switch a frame between different device sizes and have spacing immediately update, according to a defined spatial system
  • Preview how text flows in different languages by switching copy on a frame
  • Create a fully functional checkout cart design that calculates order total based on which items were added to the cart
  • Build a prototype of an interactive quiz that uses conditional logic to show whether a user answers a questions correctly or incorrectly

There are three main ways to use variables in Figma:

  1. Designs and design systems ↓
  2. Advanced prototyping ↓
  3. Figma APIs ↓

Variables for designs and design systems

Use variables and modes to implement design tokens for your design system, switch designs between different contexts—such as light/dark themes. With variables, you can design more efficiently and build a more powerful design system.

  • Figma tutorial: Intro to variables

    This video tutorial covers the foundations of variables, how to use them to represent design tokens, and how to use color and number variables to account for different modes and themes.

  • Figma tutorial: Variables for typography

    In this video tutorial, learn how to use variables on font properties, adopt variables into an existing type system, and how to use them to power a responsive design.

  • Article: Overview of variables, collections, and modes →

    Start your variables journey here! Learn about the different types of variables and what variable collections and modes are.

  • Article: Create and manage variables →

    Learn how to create variables and collections, reference other variable definitions, and scope which variables can be used in designs.

  • Article: Apply variables to designs →

    Learn how to apply existing variables to design properties.

  • Article: Modes for variables →

    Learn how to create multiple definitions for a variable, each one associated with a mode. Also, learn how to use them to quickly switch the contexts of designs.

  • Article: The difference between variables and styles →

    As Figma extends its feature set with variables, you might be wondering: What is the difference between variables and styles? When should I choose one over the other?

  • Article: Variables in Dev Mode →

    Learn more about accessing variables in Dev Mode while inspecting designs, including getting variable details and suggested variables, and viewing local collections using the variables table.

  • Community file: Variables playground →

    Want to get hands-on experience with variables? Grab a copy of the variables playground file to practice while you learn.

Variables for advanced prototyping

With variables, you can build high-fidelity prototypes using fewer frames. Use variables with other advanced features like expressions and conditionals to take your prototypes to the next level.

In prototyping, variables are used to store object states or properties. Use prototype interactions to modify variable values, which can change the appearance, content, or visibility of objects in a design—all in a few simple frames.

  • Video tutorial: Prototype with variables

    Watch and learn how to use variables in prototypes by following along with a realistic example. You’ll review how to modify variable values, how to build simple expressions, and how to use multiple actions and if/else logic to evaluate conditional checks.

  • Article: Use variables in prototypes →

    Learn the basics of how to prototype with variables in Figma—including how to configure your variables, use the Set variable action to change variable values, and use variables with component variants and interactive components.

  • Article: Use expressions in prototypes →

    Learn how to use expressions and variables in prototypes to generate dynamic string values, perform basic math operations with number values, or even evaluate boolean expressions.

  • Article: Multiple actions and conditionals →

    Learn how to use multiple actions to stack an unlimited number of actions on the same trigger, or use conditionals to check if a condition is met before performing an action by using if/else logic.

  • Article: Variable modes in prototypes →

    Learn how to use variable modes in your prototypes. You can set the values of specific modes based on context, or use specific mode values in your expressions.

  • Community file: Advanced prototyping playground →

    Make a copy of our advanced prototyping playground file to get some more hands-on practice with variables in prototyping.

Variables using APIs

Variables are now supported in Figma’s Plugin API—for building plugins and widgets—and in the REST API. 

  • Developer docs: For the REST API →

    Support for variables in the REST API includes endpoints for querying, creating, updating, and deleting variables.

  • Developer docs: For the plugin API →

    Support for variables in the plugin API includes creating and reading variables, and binding variables to components. For example, a plugin can be built to import or export variables or to convert styles to variables.

  • Developer docs: For the widget API →

    Widgets can access variables using the Plugin API. Widgets can create and read variables, but widget properties cannot be bound to variables.

  • Figma tutorial: Sync variable to GitHub

    In this video tutorial, learn how to sync your variables with your codebase. We'll cover how to use our Variables GitHub Action example repo to sync your Figma variables and your codebase.

  • Community file: Syncing design systems using Variables REST API →

    Learn how you can use Figma's variables REST API to set up automated workflows to sync changes between design files and your codebase.

Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Overview of variables, collections, and modes
  • Apply variables to designs
  • Modes for variables
  • Create and manage variables and collections
  • The difference between variables and styles
  • Blog
  • Best practices
  • QR code generator
  • Color wheel
  • Colors
  • Color picker
  • Color palettes
  • Color palette generator
  • Color contrast checker
  • Font Library
  • Templates
  • Developers
  • Integrations
  • Affiliate program
  • Resource library
  • Reports and insights
  • Support
  • Status
  • Legal and privacy
  • Modern slavery statement
  • Climate disclosure statement
  • COMPARE
  • Sketch
  • Adobe XD
  • Framer
  • Miro
  • COMPANY
  • Events
  • Customers
  • Careers
  • Newsroom
Expand