How to create a Design System using Variables in Figma

A guide to creating atoms, a styleguide and layout manager that uses variables for an app, website or another digital experience.

Oscar de la Hera Gomez
Written by Oscar de la Hera Gomez
First published on 08/14/2023 at 12:46
Last Updated on 08/17/2023 at 10:21
<p>A flower that represents Figma with the text "Create a Design System using Variables" beneath it.</p>

A guide to creating atoms, a styleguide and layout manager that uses variables for an app, website or another digital experience.

SubscribeWhat is a Design System?Check out our Figma Variables Guide

Please note design systems such as the one laid out in this article are only available on education, professional or organization Figma accounts.

Step One: Create the Atoms Collection

<p>A screenshot of Figma showing the Atoms that we created for our sample design system.</p>

The first step towards creating a Figma Variables design system is to create the Atoms.

What are Atoms?

This Atoms (or Primitives as Figma calls it) collection should hold:

  • Colors
    • Create a variable for each of the colors used in your design system.
  • Numerical values that are used in your design system. Name each of these variables under its relevant category (i.e. breakpoint-0-margin, or margin-xs).
    • Gutter
    • Padding
    • Margin
    • Shadow Offset
How to create a Variable in FigmaHow to create a new Variable Collection in FigmaHow to rename a Variable Collection in Figma

We recommend that you group color variables under Colors and numerical values under Grid Data, Typographic Data or Breakpoint Data.

How to create a group for Variables in Figma

Please note that Typographic Data is a suggestion for when Figma implements variable typography. To create a responsive type system, you must create different styles for each breakpoint.

How to create Designs that use Responsive Typography in Figma

Additional variables that could be of use are numbers and variables such as:

  • Breakpoint Specific Minimum Widths
  • Breakpoint Specific Maximum Widths
  • Is Landscape/is Portrait Booleans

Step Two: Create the Styleguide Collection

<p>A screenshot of Figma showing the Styleguide that we created for our sample Design System.</p>

Create a new collection called Styleguide and create tokens for all the relevant color variables.

Styleguide: What it is & How to create oneHow to create a new Variable Collection in FigmaHow to create a Color Token or a Number Token in Figma

Additionally, create modes for each of the relevant color style (i.e. Light Mode and Dark Mode).

Please note that this styleguide collection should be used exclusively for colors for Light and Dark mode (or other color modes). A separate BreakPoint Manager collection will be created in the next step to handle numerical values.

How to create a new Variable Mode in FigmaHow to rename a Variable Mode in Figma

Step Three: Create the Layout Manager Collection

<p>A screenshot of Figma showing the Layout Manager that we created for our sample Design System.</p>

Create a new collection called Layout Manager and create 3 modes - one for each breakpoint (Please note that Figma currently only allows you to create 4 Modes per collection on a professional account and 40 on an enterprise account - if you have an enterprise account we suggest you create 5 breakpoints).

Group tokens under relevant groups such as Typographic Data, Grid Data or Breakpoint Data.

Subsequently, create modes for each of the relevant numerical variables (i.e. padding, margin, header-font-size).

How to create a new Variable Collection in FigmaHow to create a Color Token or a Number Token in FigmaHow to create a new Variable Mode in FigmaHow to rename a Variable Mode in Figma

Looking to learn more about things you can do with Variables or Figma ?

We recommend you check out our Figma Variables Guide or search our blog to find educational content on learning how to use Figma.

Check out our Figma Variables GuideSearch our Blog

Any Questions?

We are actively looking for feedback on how to improve this resource. Please send us a note to inquiries@delasign.com with any thoughts or feedback you may have.
SubscribeContact UsVisit our BlogView our ServicesView our Work

Partner with us

We would love to get to know you and see how we can help your organization with its goals and needs.
Let's Talk

Stay Informed

Get occasional updates about our company, research, and product launches.
Subscribe