Design tokens
CSS custom properties web.dev defines, and how much of its CSS uses themTokens defined1,832custom properties
Colors from tokens50%724 of 1,437
Spacing from tokens13%230 of 1,823
Font sizes from tokens28%137 of 495
Themes2same tokens, other values
What the 1,832 tokens hold- Colors835
- Sizes and spacing367
- Fonts6
- Shadows16
- Point at other tokens488
- Other values120
Grouped by value: a color, a length, a timing, a font. Main colors (first theme)- --webdev-primary#1a73e8
- --devsite-primary-color#3740ff
- --devsite-secondary-color#e51661
- --devsite-link-background#d2e3fc
- --devsite-code-background#f1f3f4
- --devsite-code-color#37474f
- --devsite-var-color#d01884
- --devsite-progress-background#dadce0
- --devsite-recommendations-accent#303f9f
- --devsite-notification-background#1967d2
Spacing scale--devsite-ref-typeface--size-* · 24 steps
- 10
- 11
- 12
- 13
- 14
- 16
- 18
- 20
- 22
- 24
- 26
- 30
- 32
- 34
- 38
- 40
- 44
- 48
- 50
- 56
- 58
- 60
- 62
- 64
Colors written out713 color declarations skip the tokens, with 122 different values. The most common: #5f6368 (87), #fff (70) and #3c4043 (53).
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.