# 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.