Guidelines
Colour
The site is ink on white, with grey for what is secondary. There's no brand hue: emphasis comes from size, weight and space. 31 tokens, 15 colours.
The site
The semantic tokens the components read, from the first
:root. Rules and row separators use border-foreground, the ink, never the paler --border.Read from apps/web/app/styles.css
--backgroundoklch(1 0 0)--foregroundrgb(35 31 40)--cardoklch(1 0 0)--card-foregroundoklch(0.145 0 0)--popoveroklch(1 0 0)--popover-foregroundoklch(0.145 0 0)--primaryoklch(0.205 0 0)--primary-foregroundoklch(0.985 0 0)--secondaryoklch(0.97 0 0)--secondary-foregroundoklch(0.205 0 0)--mutedoklch(0.97 0 0)--muted-foregroundoklch(0.506 0 0)--accentoklch(0.97 0 0)--accent-foregroundoklch(0.205 0 0)--destructiveoklch(0.577 0.245 27.325)--borderoklch(0.922 0 0)--inputoklch(0.922 0 0)--ringoklch(0.708 0 0)Contrast
WCAG 2 contrast for each text pair the site uses, worked out from the token values above.
| Text | On | Used for | Ratio | Grade |
|---|---|---|---|---|
--foreground | --background | Titles and body | 16.18:1 | AAA |
--muted-foreground | --background | Secondary text, counts, captions | 5.85:1 | AA |
--primary-foreground | --primary | The solid button | 17.16:1 | AAA |
--secondary-foreground | --secondary | The secondary button | 16.42:1 | AAA |
--destructive | --background | Errors | 4.76:1 | AA |
Charts and sidebar
The chart colours and the sidebar's, from the same block, for the components that draw them.
Read from apps/web/app/styles.css
--chart-1oklch(0.646 0.222 41.116)--chart-2oklch(0.6 0.118 184.704)--chart-3oklch(0.398 0.07 227.392)--chart-4oklch(0.828 0.189 84.429)--chart-5oklch(0.769 0.188 70.08)--sidebaroklch(0.985 0 0)--sidebar-foregroundoklch(0.145 0 0)--sidebar-primaryoklch(0.205 0 0)--sidebar-primary-foregroundoklch(0.985 0 0)--sidebar-accentoklch(0.97 0 0)--sidebar-accent-foregroundoklch(0.205 0 0)--sidebar-borderoklch(0.922 0 0)--sidebar-ringoklch(0.708 0 0)Slides
Slides add two colours of their own.
--slide-brand is the ink block a brand slide sits on. --slide-signal is the one green, for a stressed word or a live state, used once a slide.Read from packages/design-system/styles/slides/tokens.css
--slide-brandrgb(35 31 40)--slide-brand-foregroundoklch(0.985 0 0)--slide-signaloklch(0.56 0.15 152)--brandvar(--slide-brand)On dark slides
--slide-signaloklch(0.79 0.18 152)The OS
My OS uses the same components on its own theme: dark by default, one green, and 6 calm project hues drawn as tints with a rule, never as solid blocks. Light on the left, dark on the right.
Read from packages/design-system/styles/globals.css
| Token | Light | Dark |
|---|---|---|
--background | oklch(0.975 0.002 286) | oklch(0.163 0.003 286) |
--foreground | oklch(0.2 0.006 286) | oklch(0.955 0.002 286) |
--surface | oklch(0.955 0.003 286) | oklch(0.19 0.003 286) |
--card | oklch(1 0 0) | oklch(0.205 0.004 286) |
--card-foreground | oklch(0.2 0.006 286) | oklch(0.955 0.002 286) |
--popover | oklch(1 0 0) | oklch(0.215 0.004 286) |
--popover-foreground | oklch(0.2 0.006 286) | oklch(0.955 0.002 286) |
--primary | oklch(0.56 0.15 152) | oklch(0.79 0.18 152) |
--primary-foreground | oklch(0.99 0.01 152) | oklch(0.2 0.04 152) |
--secondary | oklch(0.945 0.003 286) | oklch(0.245 0.004 286) |
--secondary-foreground | oklch(0.26 0.006 286) | oklch(0.955 0.002 286) |
--muted | oklch(0.945 0.003 286) | oklch(0.245 0.004 286) |
--muted-foreground | oklch(0.52 0.008 286) | oklch(0.66 0.008 286) |
--accent | oklch(0.93 0.004 286) | oklch(0.26 0.004 286) |
--accent-foreground | oklch(0.2 0.006 286) | oklch(0.97 0.002 286) |
--destructive | oklch(0.56 0.19 27) | oklch(0.69 0.17 25) |
--border | oklch(0.2 0.006 286 / 10%) | oklch(1 0 0 / 7%) |
--input | oklch(0.2 0.006 286 / 14%) | oklch(1 0 0 / 11%) |
--ring | oklch(0.56 0.15 152) | oklch(0.79 0.18 152) |
--rule | oklch(0.2 0.006 286 / 9%) | oklch(1 0 0 / 7%) |
--good | oklch(0.55 0.13 152) | oklch(0.79 0.16 152) |
--progress | oklch(0.55 0.12 245) | oklch(0.74 0.11 245) |
--warning | oklch(0.6 0.14 60) | oklch(0.79 0.13 70) |
--terminal | oklch(0.13 0.003 286) | oklch(0.13 0.003 286) |
--terminal-foreground | oklch(0.9 0.003 286) | oklch(0.9 0.003 286) |
--terminal-muted | oklch(0.9 0.003 286 / 45%) | oklch(0.9 0.003 286 / 45%) |
--terminal-accent | oklch(0.79 0.18 152) | oklch(0.79 0.18 152) |
--terminal-error | oklch(0.72 0.16 25) | oklch(0.72 0.16 25) |
--c1 | oklch(0.56 0.1 255) | oklch(0.72 0.1 255) |
--c2 | oklch(0.56 0.1 300) | oklch(0.72 0.1 300) |
--c3 | oklch(0.57 0.08 200) | oklch(0.75 0.08 200) |
--c4 | oklch(0.66 0.11 85) | oklch(0.8 0.11 85) |
--c5 | oklch(0.58 0.13 12) | oklch(0.72 0.12 12) |
--c6 | oklch(0.58 0.1 155) | oklch(0.76 0.1 155) |
--pillar-1 | oklch(0.52 0.155 288) | oklch(0.715 0.135 288) |
--pillar-2 | oklch(0.535 0.165 30) | oklch(0.705 0.145 32) |
--pillar-3 | oklch(0.5 0.095 198) | oklch(0.715 0.09 198) |
--pillar-4 | oklch(0.585 0.125 72) | oklch(0.775 0.115 76) |
--pillar-5 | oklch(0.5 0.115 152) | oklch(0.705 0.11 152) |
--chart-1 | var(--c1) | var(--c1) |
--chart-2 | var(--c2) | var(--c2) |
--chart-3 | var(--c3) | var(--c3) |
--chart-4 | var(--c4) | var(--c4) |
--chart-5 | var(--c5) | var(--c5) |
--sidebar | oklch(0.955 0.003 286) | oklch(0.135 0.003 286) |
--sidebar-foreground | oklch(0.22 0.006 286) | oklch(0.9 0.003 286) |
--sidebar-primary | oklch(0.56 0.15 152) | oklch(0.79 0.18 152) |
--sidebar-primary-foreground | oklch(0.99 0.01 152) | oklch(0.2 0.04 152) |
--sidebar-accent | oklch(0.91 0.004 286) | oklch(0.235 0.004 286) |
--sidebar-accent-foreground | oklch(0.18 0.006 286) | oklch(0.97 0.002 286) |
--sidebar-border | oklch(0.2 0.006 286 / 9%) | oklch(1 0 0 / 6%) |
--sidebar-ring | oklch(0.56 0.15 152) | oklch(0.79 0.18 152) |
--destructive-foreground | var(--color-red-800) | var(--color-red-600) |
--success | var(--color-emerald-500) | var(--color-emerald-500) |
--success-foreground | var(--color-emerald-900) | var(--color-emerald-600) |
--info | var(--color-violet-500) | var(--color-violet-500) |
--info-foreground | var(--color-violet-900) | var(--color-violet-600) |
--warning-foreground | var(--color-yellow-900) | var(--color-yellow-600) |
--invert | var(--color-zinc-900) | var(--color-zinc-700) |
--invert-foreground | var(--color-zinc-50) | var(--color-zinc-50) |