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.
TextOnUsed forRatioGrade
--foreground--backgroundTitles and body16.18:1AAA
--muted-foreground--backgroundSecondary text, counts, captions5.85:1AA
--primary-foreground--primaryThe solid button17.16:1AAA
--secondary-foreground--secondaryThe secondary button16.42:1AAA
--destructive--backgroundErrors4.76:1AA

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

TokenLightDark
--backgroundoklch(0.975 0.002 286)oklch(0.163 0.003 286)
--foregroundoklch(0.2 0.006 286)oklch(0.955 0.002 286)
--surfaceoklch(0.955 0.003 286)oklch(0.19 0.003 286)
--cardoklch(1 0 0)oklch(0.205 0.004 286)
--card-foregroundoklch(0.2 0.006 286)oklch(0.955 0.002 286)
--popoveroklch(1 0 0)oklch(0.215 0.004 286)
--popover-foregroundoklch(0.2 0.006 286)oklch(0.955 0.002 286)
--primaryoklch(0.56 0.15 152)oklch(0.79 0.18 152)
--primary-foregroundoklch(0.99 0.01 152)oklch(0.2 0.04 152)
--secondaryoklch(0.945 0.003 286)oklch(0.245 0.004 286)
--secondary-foregroundoklch(0.26 0.006 286)oklch(0.955 0.002 286)
--mutedoklch(0.945 0.003 286)oklch(0.245 0.004 286)
--muted-foregroundoklch(0.52 0.008 286)oklch(0.66 0.008 286)
--accentoklch(0.93 0.004 286)oklch(0.26 0.004 286)
--accent-foregroundoklch(0.2 0.006 286)oklch(0.97 0.002 286)
--destructiveoklch(0.56 0.19 27)oklch(0.69 0.17 25)
--borderoklch(0.2 0.006 286 / 10%)oklch(1 0 0 / 7%)
--inputoklch(0.2 0.006 286 / 14%)oklch(1 0 0 / 11%)
--ringoklch(0.56 0.15 152)oklch(0.79 0.18 152)
--ruleoklch(0.2 0.006 286 / 9%)oklch(1 0 0 / 7%)
--goodoklch(0.55 0.13 152)oklch(0.79 0.16 152)
--progressoklch(0.55 0.12 245)oklch(0.74 0.11 245)
--warningoklch(0.6 0.14 60)oklch(0.79 0.13 70)
--terminaloklch(0.13 0.003 286)oklch(0.13 0.003 286)
--terminal-foregroundoklch(0.9 0.003 286)oklch(0.9 0.003 286)
--terminal-mutedoklch(0.9 0.003 286 / 45%)oklch(0.9 0.003 286 / 45%)
--terminal-accentoklch(0.79 0.18 152)oklch(0.79 0.18 152)
--terminal-erroroklch(0.72 0.16 25)oklch(0.72 0.16 25)
--c1oklch(0.56 0.1 255)oklch(0.72 0.1 255)
--c2oklch(0.56 0.1 300)oklch(0.72 0.1 300)
--c3oklch(0.57 0.08 200)oklch(0.75 0.08 200)
--c4oklch(0.66 0.11 85)oklch(0.8 0.11 85)
--c5oklch(0.58 0.13 12)oklch(0.72 0.12 12)
--c6oklch(0.58 0.1 155)oklch(0.76 0.1 155)
--pillar-1oklch(0.52 0.155 288)oklch(0.715 0.135 288)
--pillar-2oklch(0.535 0.165 30)oklch(0.705 0.145 32)
--pillar-3oklch(0.5 0.095 198)oklch(0.715 0.09 198)
--pillar-4oklch(0.585 0.125 72)oklch(0.775 0.115 76)
--pillar-5oklch(0.5 0.115 152)oklch(0.705 0.11 152)
--chart-1var(--c1)var(--c1)
--chart-2var(--c2)var(--c2)
--chart-3var(--c3)var(--c3)
--chart-4var(--c4)var(--c4)
--chart-5var(--c5)var(--c5)
--sidebaroklch(0.955 0.003 286)oklch(0.135 0.003 286)
--sidebar-foregroundoklch(0.22 0.006 286)oklch(0.9 0.003 286)
--sidebar-primaryoklch(0.56 0.15 152)oklch(0.79 0.18 152)
--sidebar-primary-foregroundoklch(0.99 0.01 152)oklch(0.2 0.04 152)
--sidebar-accentoklch(0.91 0.004 286)oklch(0.235 0.004 286)
--sidebar-accent-foregroundoklch(0.18 0.006 286)oklch(0.97 0.002 286)
--sidebar-borderoklch(0.2 0.006 286 / 9%)oklch(1 0 0 / 6%)
--sidebar-ringoklch(0.56 0.15 152)oklch(0.79 0.18 152)
--destructive-foregroundvar(--color-red-800)var(--color-red-600)
--successvar(--color-emerald-500)var(--color-emerald-500)
--success-foregroundvar(--color-emerald-900)var(--color-emerald-600)
--infovar(--color-violet-500)var(--color-violet-500)
--info-foregroundvar(--color-violet-900)var(--color-violet-600)
--warning-foregroundvar(--color-yellow-900)var(--color-yellow-600)
--invertvar(--color-zinc-900)var(--color-zinc-700)
--invert-foregroundvar(--color-zinc-50)var(--color-zinc-50)
Next: Typography