All writing
Design systems 2 min read

Set variables before the screens

Tokens first, panic never

The brief is never the same twice, so I start with variables, not screens.

Nabhak "Yhai" S.Product Designer at OOZOU, Bangkok

Every brief is a surprise

The brief is never the same twice. Some clients send a full brand guide. Others send a logo, two colours and a feature list, then say the rest is up to you. Cool.

I start in the same place every time. Not with screens. With variables.

A variable is a named value. It is also called a token. Like spacing/md = 16, or colour/primary.

Every screen points at it.

Change the value once. Every screen follows.

Without variables, two designers read the same brief two ways. One uses 8px gaps. One uses 10. Greys drift a shade apart.

Then a developer opens the file. They ask the question nobody wants. "So which value is it?"

Change the value once. Every screen follows.

Mood first, then variables

If the client already has a system, I use it. Starting from zero, I make a couple of directions. I pick the mood with the client.

That part is always by hand. It is the part I have to explain and defend. The mood part is note 06.

Once the direction is locked, it turns into variables. The brand colours spread into a palette. I also set a neutral grey scale, a typeface, spacing and radius. From then on the whole team speaks one language.

The four I always set

  • Colour: primary, secondary, neutral, plus semantic success, warning and error.
  • Spacing: 4, 8, 12, 16, 24, 32, 48, 64.
  • Type: heading 1 to 6, body, caption.
  • Radius: small, medium, large, full.

Every component after that points at a token. Never a raw number. No project is too small for this. Colour, type and spacing is already a system.

One component, many brands

One design has to serve more than one brand. That is when Figma Variables earns its keep. One collection, one mode per brand.

The components stay the same. You switch the mode and the whole page changes.

Light and dark mode work the same way. It is also why "can we try another primary colour?" stops being a scary message.

You switch the mode and the whole page changes.

Build what gets used

  • Variants only for real cases. Six buttons in use means six variants, not twenty.
Six buttons in use means six variants, not twenty.
  • Slots over variants. A card with header, body and footer slots (empty spaces you drop content into) fits most places.
  • Names that explain themselves. Button/Primary/Large/WithIcon, never Button v2 final.

I add a variant when I need one. I would rather do that later than look after twenty that nobody touches.

Want to talk shop?

A question, a different take or a story of your own? Email me. No newsletter, no pop-up.