How to create a local variable in Figma
Learn how to create a local variable in Figma: open the Variables panel, pick a type like Color, name it, set a value, and see it in the table.

Quick answer
To create a local variable in Figma, open the Variables panel from the left sidebar, click Create, and choose a variable type such as Color. Figma adds a new row to Collection 1. Type a name, then enter a value such as a hex code, and the variable appears in the table.
Steps at a glance
- Open Variables from the left sidebar
- Click Create
- Choose a type such as Color
- Type a name for the variable
- Enter a value
- Check the new row in the table
Interactive demo
Summary
Local variables store reusable values such as colors and numbers inside a single Figma file. Creating one gives you a named value you can reuse instead of repeating the same raw value across your design.
Step-by-step guide
Step 1
Open Local variables
With nothing selected on the canvas, click Variables in the left sidebar. The Variables panel opens and shows that no variables exist in the file yet.
Step 2
Create a variable
Click Create in the Variables panel. A menu lists the variable types you can choose from.
Step 3
Choose a variable type
Pick Color from the menu. Number, String, Boolean, Timing and Easing are also listed if you need a different kind of value. Figma creates Collection 1 and adds a new variable row.
Step 4
Name the variable
The name field of the new row is ready for typing. Enter a clear name for the variable, then press Enter to confirm it.
Step 5
Set the value
Click the value field in the same row and enter a color value, for example 0D99FF. Press Enter and the variable appears in the table with its name and value.
Why this matters
You keep typing the same brand color into every shape and want one place to change it. Creating a local variable gives that color a name and a single value, so your file stays consistent and easier to update.
Frequently asked questions
Which variable types can I create?
The Create menu lists Color, Number, String, Boolean, Timing and Easing.
Where does a new variable go?
Figma places it in Collection 1, which it creates when you add your first variable.
Related guides
Continue with more step-by-step guides for getting work done.
How to add a color style in FigmaLearn how to add a color style in Figma: open Styles in the Design panel, create a new color style, name it, set a hex value, and find it listed.
How to add a prototype link in FigmaLink a button to another frame in Figma. Open the Prototype tab, drag a connection to your destination frame, and set up a click interaction.
How to add text styles in FigmaLearn how to add a text style in Figma: open Create text style, name it, set the font size, and save it so you can reuse it across your design file.
How to create a section in FigmaCreate a section in Figma to group frames on the canvas: pick the Section tool, drag around your frames, rename it, and confirm it in Layers.
How to duplicate objects in FigmaLearn how to duplicate objects in Figma from the Edit menu, then drag the copy aside, using a simple rectangle you can follow on the free plan.
How to export assets from FigmaLearn how to export a Figma layer as PNG and SVG assets by adding export settings, setting a 2x scale, and exporting every format in one click.
Create interactive demos like this one — free, no coding required.
Start for free →