Skip to Content
drksci
System

Themes

The default and drksci themes side by side, in light and dark, drawn from their token files.

A theme is one token file. Each panel below resolves its own theme and colour scheme, so what it shows is what the theme gives: the shell colours, the three font families, the plotter pens, the plot kit's line weights and dashes, and the chrome of a button, a field and a menu bar. Where a theme states its colours as hex values, the contrast of each text pair is listed; WCAG AA asks for 4.5 to 1.

The active theme is the data-theme attribute on the page. A deployment sets its default with SITE_THEME, and the switch in the header stores a visitor's choice in a cookie. Light and dark are a separate choice.

default · light

  • backgroundhsl(0, 0%, 96%)
  • foregroundhsl(0, 0%, 3.9%)
  • mutedhsl(0, 0%, 96.1%)
  • muted-foregroundhsl(0, 0%, 45.1%)
  • cardhsl(0, 0%, 94.7%)
  • borderhsla(0, 0%, 80%, 50%)
  • primaryhsl(0, 0%, 9%)
  • secondaryhsl(0, 0%, 93.1%)
  • accenthsla(0, 0%, 82%, 50%)
  • ringhsl(0, 0%, 63.9%)

ds-font-sans Hamburgefonstiv 0123456789

ds-font-serif Hamburgefonstiv 0123456789

ds-font-mono Hamburgefonstiv 0123456789

Long-form research

Body text sets in the text face at its step, with italics and bold.

  • pink#ff2e7e
  • blue#2d5bff
  • teal#00a99d
  • amber#ffaa00
  • violet#7b3cff
Menu bar

Stock colours: not restated here.

drksci · light

  • background#fbfaf7
  • foreground#141413
  • muted#f1f0ec
  • muted-foreground#595854
  • card#ffffff
  • border#c9c8c3
  • primary#141413
  • secondary#e3e2de
  • accent#d5d4cf
  • ring#2c4fd0

ds-font-sans Hamburgefonstiv 0123456789

ds-font-serif Hamburgefonstiv 0123456789

ds-font-mono Hamburgefonstiv 0123456789

Long-form research

Body text sets in the text face at its step, with italics and bold.

  • pink#cc2a68
  • blue#2c4fd0
  • teal#007c84
  • amber#a2600c
  • violet#6c46d6
Menu bar
foreground on background17.66:1
muted-foreground on background6.82:1
muted-foreground on muted6.25:1
card-foreground on card18.43:1
popover-foreground on popover18.43:1
primary-foreground on primary17.66:1
secondary-foreground on secondary14.22:1
accent-foreground on accent12.42:1

default · dark

  • backgroundhsl(0, 0%, 7.04%)
  • foregroundhsl(0, 0%, 92%)
  • mutedhsl(0, 0%, 12.9%)
  • muted-foregroundhsla(0, 0%, 70%, 0.8)
  • cardhsl(0, 0%, 9.8%)
  • borderhsla(0, 0%, 40%, 20%)
  • primaryhsl(0, 0%, 98%)
  • secondaryhsl(0, 0%, 12.9%)
  • accenthsla(0, 0%, 40.9%, 30%)
  • ringhsl(0, 0%, 54.9%)

ds-font-sans Hamburgefonstiv 0123456789

ds-font-serif Hamburgefonstiv 0123456789

ds-font-mono Hamburgefonstiv 0123456789

Long-form research

Body text sets in the text face at its step, with italics and bold.

  • pink#ff2e7e
  • blue#6f8dff
  • teal#00a99d
  • amber#ffaa00
  • violet#a47bff
Menu bar

Stock colours: not restated here.

drksci · dark

  • background#030620
  • foreground#dcefd3
  • muted#0b1038
  • muted-foreground#93aa9f
  • card#070b2c
  • border#2c3568
  • primary#dcefd3
  • secondary#171d52
  • accent#212a6a
  • ring#93aaff

ds-font-sans Hamburgefonstiv 0123456789

ds-font-serif Hamburgefonstiv 0123456789

ds-font-mono Hamburgefonstiv 0123456789

Long-form research

Body text sets in the text face at its step, with italics and bold.

  • pink#ff7fb2
  • blue#93aaff
  • teal#58efd9
  • amber#ffc95c
  • violet#c6acff
Menu bar
foreground on background16.49:1
muted-foreground on background8.08:1
muted-foreground on muted7.41:1
card-foreground on card15.85:1
popover-foreground on popover15.30:1
primary-foreground on primary16.49:1
secondary-foreground on secondary12.99:1
accent-foreground on accent12.29:1