Design tokens
CSS custom properties Apple defines, and how much of its CSS uses themTokens defined361custom properties
Colors from tokens59%104 of 177
Spacing from tokens19%150 of 783
Font sizes from tokens1%2 of 149
Themes3same tokens, other values
What the 361 tokens hold- Colors151
- Sizes and spacing95
- Motion13
- Point at other tokens30
- Other values72
Grouped by value: a color, a length, a timing, a font. Main colors (first theme)- --buystrip-backgroundrgb(245, 245,…
- --globalmessage-segment-backgroundrgb(250, 250,…
- --globalnav-badge-backgroundrgb(0, 0, 0)
- --sk-button-colorrgb(255, 255,…
- --sk-button-backgroundrgb(0, 113, 2…
- --sk-focus-color#0071e3
- --sk-blocklink-colorrgb(0, 102, 2…
- --sk-paddlenav-backgroundrgb(51, 51, 5…
- --sk-pin-colorrgb(110, 110,…
- --r-globalnav-background-opened#fafafc
Colors written out73 color declarations skip the tokens, with 32 different values. The most common: #000 (8), #6e6e73 (7) and #fff (6).
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.