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.
| Level | Hex | Used for |
|---|---|---|
| OK | #1baf7a | Test data published; an implementation passes |
| Caution | #e0a526 | An implementation is incomplete; test data expires within 90 days |
| Avoid | #d64545 | An implementation fails; test data has expired |
| Unknown | #9aa5b1 | Planned: 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.
The sample above shows each role in use; the table gives its colours.
| Role | Light · dark | Used for |
|---|---|---|
| Card | #f6f8fa · #161b22 | The background: a card with 12 px corners, so a diagram reads as one on a light page and a dark one |
| Ink | #1f2937 · #e5e7eb | Labels, and the lines the diagram is about |
| Muted | #6b7280 · #9aa5b1 | References like true north, guides, scales and the caption |
| Hairline | #d0d7de · #3a414b | Grids, leader lines, the ground and the moon's dark side |
| Accent | #2a78d6 · #6aa7ee | The one quantity the diagram explains, and its label |
| Accent wash | Accent at 14% · 20% | The area of that quantity: an angle's wedge, a square |
| Light | #eda100 | The sun, and the lit part of the moon |
- Type: the system font. Labels at 15 px, notes and the caption at 13 px.
- Size: 560 wide, so type comes out the same size on every page.
- Lines: 2.5 px for the subject, 1.5 px for arcs that mark an angle, 1 px dashed (3 on, 3 off) for guides. Round ends and joins.
- Angles are a wash wedge with an accent arc along its edge, not a bare arc.
- Labels sit beside what they name, leading-aligned where they stack. A label that must cross a line gets a halo in the card colour.
- Caption: one sentence in muted type along the bottom, saying how to read it or what’s exaggerated.
- Examples say so. A made-up angle or value is labelled an example, and drawn to scale where it can be.
- Alt text says what the diagram shows in a sentence, for readers who can’t see it.
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.
- One idea each, a small textbook figure of what the file tests: a compass needle off north, a point truncated to its grid square, a bearing’s angle, a day count from an epoch, the twilight bands, a crescent, a sum of harmonics.
- 64 by 64, drawn to read at 40 px. No text, and no line under 2.5 px.
- Flat colour from the series, one per algorithm where it can be, with muted
#9aa5b1for the secondary part: a reference line, a dial, a dark side. The same colours in light and dark, so they need no dark version. - The diagrams’ grammar: a dashed muted line for a construction or reference, a pale wedge under an angle’s arc, and points as dots.