0
100
200
300
400
500
600
700
800
900
1000
1100
0
100
200
300
400
500
600
700
800
900
1000
1100
Guide · Variables & styles

How to Create Variables in Figma

To create a variable in Figma, click the Variables tab in the left navigation bar, then click + Create variable and pick a type. You name it, give it a value, and it's ready to apply to layers. You no longer need to deselect everything on the canvas to reach your variables.

Figma has six variable types: color, number, string, boolean, timing and easing. Timing and easing only work with Figma Motion, so for everyday design work you'll use the first four. Any plan can use variables, and you need edit access to the file to create or change them.

Updated Sep 24, 20265 min read
On this page
6 steps

Quick steps

1

Open the Variables tab

In a Figma Design file, click Variables in the navigation bar on the left side of the editor.

2

Create or pick a collection

Variables live in collections. Use More options → Create collection to start one, for example Colors or Spacing. A collection holds up to 5,000 variables.

3

Click + Create variable

Choose the type: color, number, string or boolean. Timing and easing are for Figma Motion.

4

Name it and set the value

Type a name. Use slashes, like color/text/primary, to put it in a group automatically. Then enter the value.

5

Set scoping if needed

Open the Edit variable dialog to limit where the variable appears, or tick Hide from publishing if it should stay local to the file.

6

Apply it to a layer

Select a layer, open the matching property in the right sidebar and pick the variable from the picker.

01

Which variable type should you pick?

The type decides which properties a variable can attach to. If you pick the wrong one, the variable won't show up where you expect it.

  • Color: fills, strokes, effects and gradient stops.
  • Number: sizes, gap, padding, corner radius, opacity and other numeric fields.
  • String: text content and font properties.
  • Boolean: layer visibility, applied by right-clicking the eye icon in the Appearance section. See how to show and hide layers with a boolean variable.
  • Timing and easing: animation values for Figma Motion only.
02

How to set up Figma variables: collections and modes

A collection is a set of related variables. A common setup is separate collections for primitives (the raw palette and spacing scale) and semantic tokens (text/primary, surface/default) that point at the primitives. Variables can reference other variables, so a semantic color can alias a primitive instead of repeating the hex value.

Each collection can have modes, such as Light and Dark or Compact and Comfortable. Every variable in the collection gets one value per mode. The full setup for theming is in how to change variable modes and build dark mode.

03

Scoping and Hide from publishing

Open a variable's Edit variable dialog to set its scoping, which limits the properties it appears for. Scope spacing numbers to gap and padding, and radius numbers to corner radius, so designers don't see forty numbers in every field. Tick Hide from publishing for primitives that should only be referenced by other variables, not applied directly in other files.

04

How to create groups in Figma variables

There are two ways. Name variables with slashes, like spacing/sm and spacing/md, and Figma groups them under spacing. Or select several variables in the table, right-click and choose New group with selection. Groups show in the sidebar of the Variables view and keep long lists readable.

05

Figma shortcut to duplicate a variable

Select a variable in the table and press ⇧Enter (Shift+Enter) to duplicate it. This is the fastest way to build a scale: make radius/sm, duplicate it, rename the copy to radius/md and change the value. Figma doesn't document a keyboard shortcut for opening the Variables tab itself, so click it in the left navigation.

Duplicate selected variableMac⇧EnterWindowsShiftEnter
Open the Actions menuMac⌘KWindowsCtrlK
06

How to delete Figma variables

Right-click the variable and choose Delete variable. To remove a whole set, delete the collection; that deletes every variable in it. Check where a variable is used before you delete it.

07

How to remove used variables in Figma

A common forum complaint (a thread with over 100 replies) is "ghost" variables: entries that still appear under used variables or in the Page section's modes after the collection or component that brought them in is gone. The accepted answer from Figma Community Support gives two steps:

  1. Open the Actions menu (⌘K / Ctrl+K) and run Detach deleted variables. This clears most leftovers in one go.
  2. If some remain, they're still used somewhere, often inside components or deleted color styles. Find those layers and detach or replace the variable by hand.
Variable Master's Find tab lists unused variables in the file, so you can clean up before you publish or export.
08

Moving variables to another file

The standard way to share variables is to publish them in a library. When that's not an option, for example a one-off copy between two files or restoring a backup, you can export and import JSON natively (see how to export Figma variables) or use a plugin that moves whole collections with a preview of what gets created or overwritten.

If a variable you just made doesn't appear in a property picker, the cause is usually its type or scoping. The fixes are in Figma variables not showing.

Ranked listThe best Figma design token and variables plugins in 2026
FAQ

Frequently asked questions

Where are variables in Figma now?

Click the Variables tab in the left navigation bar of a Figma Design file. You no longer have to deselect everything and look in the right sidebar.

How many variables can a Figma collection hold?

Up to 5,000 variables per collection. If you need more, split them across several collections, such as primitives and semantic tokens.

Can I use variables on the free plan?

Yes. Any plan can create and apply variables, as long as you have edit access to the file. Publishing them in a library and prototyping with them need a paid plan.

What's the difference between variables and styles?

A variable stores one value and can have a different value per mode. A style bundles several values, like a whole text style, and can't reference other styles. Styles can use variables inside them. See the guide to Figma styles for when to use which.

Keep learning

More in Variables & styles

All guides in Variables & styles