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#ff2e7eblue#2d5bffteal#00a99damber#ffaa00violet#7b3cff
Stock colours: not restated here.
drksci · light
background#fbfaf7foreground#141413muted#f1f0ecmuted-foreground#595854card#ffffffborder#c9c8c3primary#141413secondary#e3e2deaccent#d5d4cfring#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#cc2a68blue#2c4fd0teal#007c84amber#a2600cviolet#6c46d6
| foreground on background | 17.66:1 |
| muted-foreground on background | 6.82:1 |
| muted-foreground on muted | 6.25:1 |
| card-foreground on card | 18.43:1 |
| popover-foreground on popover | 18.43:1 |
| primary-foreground on primary | 17.66:1 |
| secondary-foreground on secondary | 14.22:1 |
| accent-foreground on accent | 12.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#ff2e7eblue#6f8dffteal#00a99damber#ffaa00violet#a47bff
Stock colours: not restated here.
drksci · dark
background#030620foreground#dcefd3muted#0b1038muted-foreground#93aa9fcard#070b2cborder#2c3568primary#dcefd3secondary#171d52accent#212a6aring#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#ff7fb2blue#93aaffteal#58efd9amber#ffc95cviolet#c6acff
| foreground on background | 16.49:1 |
| muted-foreground on background | 8.08:1 |
| muted-foreground on muted | 7.41:1 |
| card-foreground on card | 15.85:1 |
| popover-foreground on popover | 15.30:1 |
| primary-foreground on primary | 16.49:1 |
| secondary-foreground on secondary | 12.99:1 |
| accent-foreground on accent | 12.29:1 |