A button uses the right green in one screen and a slightly different green in the next. Then the team asks for a dark theme. Figma variables give those repeated decisions a name and a place to change them.
Figma variables are reusable values for supported design properties. A color variable might hold a button background, while a number variable might hold card padding. Apply the same variable in several places and you can update its value centrally. With modes, one variable can hold different values for contexts such as light and dark themes.
This guide is for UI/UX students and designers who already know how to make a basic screen in Figma and want to keep multiple screens consistent. You will learn the terms, build a small theme exercise, and see where variables help without making the design decisions for you.
Variables at a glance
- Variable: a named, reusable value.
- Collection: a home for related variables and their modes.
- Mode: a set of values for a context, such as Light or Dark.
- Alias: a variable that refers to another variable's value.
- Start with a few meaningful values, then test them on a real screen.
01 What problem do Figma variables solve?
Imagine a course page with a primary button on a listing card, a detail page and an enquiry form. If each button has a separately chosen fill, changing the brand color means hunting through every screen. A variable named Action / Primary gives that shared color one source. The button fill on each screen can use the same value.
The benefit is most visible when a design has repeated values or more than one context. A Light mode may give Surface / Page an off-white value and a Dark mode a deep charcoal value. The name stays the same because the color's role stays the same. The value changes with the selected mode.
Variables are one part of a design system. Components in Figma keep repeated interface structures connected; variables keep selected values consistent inside and across those structures. If you are still learning the workspace, see what Figma is used for in UI/UX design first.
02 Types, collections and modes
Choose a type that matches the property
Figma supports several variable types. Beginners will most often meet color variables for fills, number variables for values such as padding or corner radius, string variables for text, and boolean variables for true-or-false choices. Figma also documents timing and easing variables for motion. A variable can only be applied where its type is supported; a color variable cannot stand in for a spacing value.
Use collections to keep a purpose clear
A collection groups variables that belong together. For a first project, a Colors collection might contain Surface / Page, Text / Primary and Action / Primary. A separate Spacing collection could contain Space / Small and Space / Medium. Clear names tell another designer what a value is for, not just what it happens to look like today.
Use modes when the context changes
A mode is a column of values within a collection. In a Colors collection, Light and Dark modes can give each variable a different color. When you apply a mode to a frame, its nested layers using those variables can display the corresponding values. Figma's variables overview explains the model, and its modes guide notes that mode limits depend on the plan.

03 Build a small light and dark mode example
Make a simple course card with a page background, heading, short description and action button. If the card needs to handle different text lengths, build its structure with Auto Layout before adding variables. Then use this short exercise to see what changes and what stays the same.
- Create a Colors collection: add color variables called Surface / Page, Text / Primary and Action / Primary. Give each a usable Light value.
- Apply the values: bind the page fill, heading color and button fill to the appropriate variables. Check the right sidebar for the variable picker on each supported property.
- Add a Dark mode: create another mode in the collection, then set intentional Dark values for all three variables. Figma may copy initial values into the new mode, so inspect every row.
- Switch the card's frame: select the enclosing frame and apply the Dark mode from the variable mode controls. Compare the same card in both modes.
- Review the result: check text contrast, button prominence and any colors that were left as fixed values. Fix the design, not only the variable table.
If one layer fails to change, first check whether its property actually uses the variable and whether a child has an explicit mode of its own. A mode set to Auto normally inherits from its parent. This is easier to debug on one small frame than across an entire file.
04 When should you use aliases and styles?
An alias points one variable to another. A team may keep a base color such as Green / 600 and let Action / Primary refer to it. That separates the raw color from its job in the interface. If the action changes to another base color later, the role name can stay meaningful. Beginners can start with direct values; add aliases when a real system needs that extra layer.
Variables and styles also serve different jobs. A text style can package typography decisions, while variables can supply supported values within a system and vary them by mode. Keep a useful style if it helps people apply a complete treatment consistently. Figma's comparison of variables and styles describes how they can work together.
05 Common mistakes to avoid
- Naming by appearance alone: “Green 2” does not tell a teammate where to use the value. Name role variables by purpose, such as Action / Primary.
- Creating too many variables at once: start with repeated decisions in one screen. Expand the collection when another screen reveals a real need.
- Forgetting the second mode: a new mode can initially carry copied values. Review every color and test the result in context.
- Ignoring accessibility: a consistent color system can still produce low-contrast text or unclear states. Check each theme with real content and interaction states.
- Assuming the file becomes a working product: Figma values help communicate design intent. The implemented interface needs its own tokens, theme logic and testing.
A useful final check is to change one variable and inspect every place it appears. If the change creates an unwanted result, the variable may have been applied too broadly, or two elements may need different semantic roles.
Want to practise variables as part of a complete UI workflow? Explore Zolve Academy's Professional UI/UX Design & AI-Powered Workflow Program, review the curriculum, and use the course enquiry option to discuss how you can build and test a consistent interface.
FAQ
Common questions about Figma Variables Explained: A Practical Introduction for UI/UX Designers
A quick summary of the most common questions readers have about this topic.
Variables are reusable values that can be applied to supported design properties, such as colors, spacing, dimensions and text. Changing a variable can update the places that use it.
A collection organizes related variables and their modes. For example, a Colors collection can hold surface and text colors with Light and Dark mode values.
A variable stores a reusable value that can have different values by mode. A style can package a set of design properties, such as a text treatment. They can work together; you do not need to replace every style with a variable.
Figma's documentation says variables are available on all plans. The number of modes you can create depends on the plan, so check your workspace's current limits before planning a large theme system.
No. Variables help you organize and preview values in a design file. A developer still needs to implement the corresponding theme behavior in the product.
