Professional Documents
Culture Documents
Optimising The Design System With Figma's Variables - UX Collective
Optimising The Design System With Figma's Variables - UX Collective
Search Write
nana · Following
Published in UX Collective · 7 min read · Mar 10, 2024
1.4K 17
Hello, codesigners.
I‘m happy to share how I utilised Figma’s variables to create tokens and
variables for our design system.
Over the past year, the idea of developing a new design system, particularly
leveraging CSS custom properties for implementing light and dark modes,
had been on my mind.
Around that time, in June 2023, Figma released a new feature called
Variables, which was super useful to create a design system.
Table of contents
1. Keep in mind the 5 design system principles
3. Primitive variables
4. Semantic variables
5. Wrap-up
Consistency
Scalable
Maintainable
Code-friendly
Is it really necessary to have both dark and light themes and why?
The decision for every question should always be made based on sufficient
communication with engineers and project managers, ensuring that we are
all moving forward together. The design system is not solely the domain of
designers. I believe it should be renamed to something like a ‘codesign
system’ to reflect its collaborative nature.
3. Primitive variables
Primitive variables
Bad examples
Most design systems utilise colour palettes in the following method: blue
100, blue 200, blue 300, and so on. However, I’ve always wondered if I need
all those colours? What if I need a colour between blue 100 and blue 200?
So, I decided to define the colour token names using their lightness value.
This approach allows me to store more accurate colours I want.
Colour token names using their lightness value
Figma does not yet support typography variables (at the time of writing this
article — Feb 2024), but the hopeful news is that they are in the process of
creating them.
4. Semantic variables
Semantic variables
If we define the neutral levels for light mode with terms like lightest, lighter,
light, etc., it becomes impossible to match the token names with dark mode,
as illustrated in the above image.
5. Wrap up
Exploring design systems from big companies like Material, Carbon,
Atlassian, or Fluent can be overwhelming for solo designers or beginners.
It’s hard to know where to start with many components, patterns and
variants.
I hope you like this article and find it helpful for your future design system
projects!
Fluent 2
Atlassian
Material Design
Combining the Powers of SEM and BIO for Improving CSS | CSS-Tricks
Create your own Design Create your own Design Into Design Systems Naming desig
system: Chapter Colors system: Chapter Color… Favorites — Figma… the art of clarit
6 min read · Aug 16, 2023 7 min read · Sep 9, 2023 5 min read · Oct 30, 2023 6 min read · Dec
View list
608 12
657 7 1.3K 9
858 28 95
Lists
Figma 101 Interesting Design Topics
7 stories · 474 saves 257 stories · 428 saves
317 1 452 3
72 386 5