Style guide: theme rules
Spec: src/themes/reference/THEME.md
Type
River Graymere
Course
Source Sans 3 for entry text, the infobox, tables and navigation. The River Graymere rises on Tarn Moss at an elevation of 412 metres.[1]
Source Serif 4 for titles and section headings only.
Colour
Swatches follow the active palette. Each palette sets a 60 / 30 / 10 split: the page, the chrome and box heads, and the accent that also colours links.
Page --page
Chrome --chrome
Box head --tint
Ink --ink
Muted --muted
Rule --line-strong
Link --link
Accent --accent
Night --night
| Palette | 60 page | 30 chrome | 10 accent |
|---|---|---|---|
| Atlas Cool gray chrome, white page, valley green | #ffffff | #edf3f1 | #0e5a52 |
| Vellum Warm paper and rust ink for long reading | #fbf7ee | #e8dec6 | #8a3b12 |
| Slate Cool blue-gray with indigo links | #fbfcfe | #e3e8f0 | #3446a8 |
| Lamplight Dark reading mode with amber links | #16181b | #2a2f35 | #e2a95b |
Page types
| Page | Sections |
|---|---|
| Main page | Welcome with counts, featured entry, did you know, on this day, recently added, random entry, browse by subject |
| Category | Description, subcategories, alphabetical index of pages with counts |
| Entry | Tabs, title, hatnote, infobox with map, contents, numbered sections, table, footnotes, see also, categories, last edited |
| List | Lead, sortable-style table in a labelled scroll region, notes, references |
| About | Purpose, numbers, editorial policy, how to contribute, correction form |
| Rules | Type, colour, page types, do and don’t |
Do
- Lead with a definition sentence: what it is, where, and one fact that matters.
- Put scannable facts in the infobox and keep the prose for the account.
- Footnote every figure, date and quotation; link each number to its reference and back.
- End every entry with See also, References, categories and the last-edited line.
- Use the serif only for titles and section headings; everything else is Source Sans 3.
Don’t
- Do not repeat the whole entry in the infobox.
- Do not use cards, shadows or rounded corners; boxes are square with hairline rules.
- Do not colour links anything but the link blue, and keep visited purple.
- Do not nest the contents deeper than two levels.
- Do not copy text from another reference work, or cite a source you have not read.
- ^ Footnote style: author or body, year, italic title, page.