Design tokens
CSS custom properties Shopify defines, and how much of its CSS uses themTokens defined397custom properties
Colors from tokens45%141 of 316
Spacing from tokens82%376 of 456
Font sizes from tokens83%53 of 64
Themes2same tokens, other values
What the 397 tokens hold- Colors53
- Sizes and spacing151
- Motion4
- Fonts3
- Shadows6
- Point at other tokens60
- Other values120
Grouped by value: a color, a length, a timing, a font. Main colors (first theme)- --color-black#000
- --color-white#fff
- --color-orange-500oklch(70.5% .…
- --color-yellow-500oklch(79.5% .…
- --color-green-500oklch(72.3% .…
- --color-blue-500oklch(62.3% .…
- --color-purple-500oklch(62.7% .…
- --color-zinc-600oklch(44.2% .…
- --color-link-dark#9797a2
- --color-shop-purple#5433eb
Spacing scale--space-* · 9 steps
Colors written out175 color declarations skip the tokens, with 70 different values. The most common: #fff (18), #000 (15) and #a1a1aa (10).
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.