Bootcamp

From idea to product, one lesson at a time. To submit your story: https://tinyurl.com/bootspub1

Follow publication

What are design tokens?

Jenny Huang
Bootcamp
Published in
6 min readNov 5, 2022

What are design tokens?

Tiers of design tokens

Global tokens

--vos-g-color-blue: navy;

Semantic tokens

--vos-s-color-primary: var(--vos-g-color-blue);

Component tokens

<button type="button" class="primary"></button>
button.primary {
background-color: --var(--vos-s-color-primary); /* Fallback */
background-color: --var(--vos-c-button-brand-color-background-active);
}
--vos-c-button-brand-color-background-active: royalblue;

Why we should tokenize our design system

Designing for Scale

Designing for Clarity

Designing for Consistency

Designing for Maintainability

Was this article informative?

Bootcamp
Bootcamp

Published in Bootcamp

From idea to product, one lesson at a time. To submit your story: https://tinyurl.com/bootspub1

Jenny Huang
Jenny Huang

Written by Jenny Huang

Designer / Engineer / Ex-Salesforce

Responses (1)

Write a response