Variables in Figma are named values you can reuse across a design: a colour, a spacing size, a corner radius, or a piece of text. Change the value once, and every element using that variable updates. That sounds like a small convenience, but it changes how you work. Instead of hunting through screens to fix a shade of blue, you edit one variable. Instead of debating whether a gap should be 16 or 24 pixels, you pick the spacing token the team already agreed on. Variables turn scattered decisions into a shared language.

Start with colour and spacing only

Begin with the two variable types you will use most: colour and number. For colour, create variables for the roles colours play, such as surface, text, border, and accent, rather than for every shade in your palette. A variable called brand/primary is more useful than blue-500, because the name explains its job and survives a rebrand. For spacing, create a small scale, such as 4, 8, 16, 24, and 32, and use those values for gaps, padding, and margins instead of inventing new numbers per screen. Keep the list short at first. A handful of variables you actually use beats a long list nobody trusts. This approach fits naturally into a consistent design system, where variables become the foundation other decisions sit on.

Name variables so a stranger can use them

Naming matters more than most people expect, because variables are only useful if others can find and understand them. Use plain, grouped names with slashes, such as spacing/medium or colour/surface, and keep the same pattern everywhere. Avoid names tied to one screen or one feature, and avoid abbreviations that only your team understands. When a variable is used for several things, name it for its role, not its value: text/muted stays correct even if the colour changes, while grey-600 becomes wrong the moment it does not. Check the variable panel regularly and delete values nobody uses, because a bloated list slows everyone down. If your frames need to resize around variable spacing, Auto Layout pairs well with variables, since both keep layout rules in one place.

Switch modes for themes and states

Once the basics work, try modes: collections of variable values for light and dark themes, or for different brands. Switching a mode swaps every linked value at once, which makes testing a dark theme far less painful than recolouring screens by hand. Test each mode on real screens, not just in the variable panel, and watch for text that loses contrast or borders that disappear. Variables reward patience: the first setup takes time, but every change after that is a one-line edit, and that is the point.