Design

One palette for every page and diagram here. It changes rarely, so it lives on a page rather than in each file.

Levels

For a status that goes from good to bad. Always a dot and a word, never colour alone.

LevelHexUsed for
OK#1baf7aTest data published; an implementation passes
Caution#e0a526An implementation is incomplete; test data expires within 90 days
Avoid#d64545An implementation fails; test data has expired
Unknown#9aa5b1Planned: no test data yet

Series

One colour per item, in this order, for lines and marks that are told apart rather than ranked. Chosen to stay apart for colour-blind readers.

#2a78d6  #eb6834  #1baf7a  #eda100  #e87ba4  #8a63d2

Diagrams

A diagram goes on a page only where it explains something words don’t. Every diagram is a hand-written SVG in assets/diagrams/, with the same parts and colours, and its own light and dark versions. A page embeds one with <object>, not <img>: Safari ignores the dark version inside an <img>. Its dark rules follow the page’s theme button as well as the system, so each is written twice: inside @media (prefers-color-scheme: dark) under :where(:root:not([data-theme=light])), and under :where(:root[data-theme=dark]). The :where() keeps each rule as specific as it was, so a dark rule wins exactly where it would without the button.

A sample diagram: a muted reference arrow, an ink subject arrow, the angle between them as a pale blue wedge with an accent arc, a sun in the light colour, a dashed guide, and a key of each colour role and line weight

The sample above shows each role in use; the table gives its colours.

RoleLight · darkUsed for
Card#f6f8fa · #161b22The background: a card with 12 px corners, so a diagram reads as one on a light page and a dark one
Ink#1f2937 · #e5e7ebLabels, and the lines the diagram is about
Muted#6b7280 · #9aa5b1References like true north, guides, scales and the caption
Hairline#d0d7de · #3a414bGrids, leader lines, the ground and the moon's dark side
Accent#2a78d6 · #6aa7eeThe one quantity the diagram explains, and its label
Accent washAccent at 14% · 20%The area of that quantity: an angle's wedge, a square
Light#eda100The sun, and the lit part of the moon

Ink

#0b0b0b rings every dot and swatch, so a colour holds on a light page and a dark one. The site’s icon has no tile: accent blue rings around an OK green dot, which hold on light and dark tabs. apple-touch-icon.png puts it on white, because iOS fills transparency with black.

Icons

Each algorithm has an icon, on its card on the home page and in its page’s title: assets/icons/{slug}.svg. They follow almanac’s service icons, with this site’s diagram grammar for an academic slant.