Design tokens
CSS custom properties Zalando defines, and how much of its CSS uses themTokens defined384custom properties
Colors from tokens76%487 of 644
Spacing from tokens72%659 of 918
Font sizes from tokens36%48 of 133
Themes2same tokens, other values
What the 384 tokens hold- Colors61
- Sizes and spacing160
- Fonts2
- Shadows21
- Point at other tokens48
- Other values92
Grouped by value: a color, a length, a timing, a font. Main colors (first theme)- --color-background-default#ffffff
- --color-background-primary#000000
- --color-background-secondary#5c6169
- --color-background-tertiary#f1f1f1
- --color-background-negative#da0410
- --color-background-brand#ff4c00
- --color-background-hover#d2d8dd
- --color-background-pressed#b9c0c6
- --deprecated-color-n100#fff
- --deprecated-color-n200#efeff0
Spacing scale--spacing-* · 8 steps
Colors written out157 color declarations skip the tokens, with 24 different values. The most common: #fff (51), #1a1a1a (12) and #404040 (12).
transparent, currentColor and inherit don't count. Old CSS that works is fine; this is a map, not a score. Tokens a build step turns into plain values (Sass variables, most CSS-in-JS) never reach the browser, so they don't show here.