/styleguide
How everything on this site looks.
The building blocks for pages and posts. Styles live in css/custom.css; this page isn’t indexed by search engines. Initial design by me, expanded by AI.
Typography
Headings and UI use Instrument Serif. Body copy uses Charter at 20px with a 1.6 line height. Code uses the system monospace stack.
Heading one
.h1 · Instrument Serif · 48px · orange rule · also used for page introsHeading two
.h2 · Instrument Serif · 40pxHeading three
.h3 · Instrument Serif · 32pxHeading four
.h4 / .h5 / .h6 · Instrument Serif · 24px/page-title
.slash · page name above the introBody copy for everything else. It sits a little softer than headings so long posts are comfortable to read, with bold for emphasis, italics for nuance and links in orange.
p · Charter · 20px · 1.6 · inkSmall text for captions, hints and metadata.
small / .small · 16px · ink-darkAn italic display line for asides
.title-italic · Instrument Serif italicInline code sits inside a sentence.
.button-primary {
background: var(--primary);
color: black;
}
pre · code block
blockquote · Instrument Serif italic 28px · citeMake something people want, then tell them about it.
Someone sensible
- Unordered list item
- Markers pick up the primary colour
- Ordered list item
- Second step
hr · divider
Colours
Seven colours, each with one darker and two lighter shades. Use them as CSS variables, e.g. var(--primary) or var(--danger-light).
Primary
The site’s orange. Links, accents and primary buttons (with black text). primary-dark is for pressed states.
Navy
Backgrounds. navy-dark is the page, navy is the outer frame, navy-lighter is for info accents.
Ink
Text. ink-dark for captions and hints, ink for body copy, ink-light for labels, ink-lighter (white) for headings.
Neutral
Borders, dividers and input surfaces. neutral-dark is the input and code background.
Success
Confirmations and positive states. Use success or success-light for text.
Warning
Cautions and pending states. Use warning or warning-light for text.
Danger
Errors and destructive actions. Use danger-light for small text on navy.
InfoNeutral information, using navy-lighter.
SuccessSomething worked.
WarningWorth a second look.
DangerSomething went wrong.
Live Paused Closed
Buttons
Pill-shaped, set in Instrument Serif. Use <button> for actions and <a class="button"> for navigation.
Links
A default link is orange and underlines on hover.
aA subtle link for metadata and footers.
a.link-subtleAn external link that leaves the site.
a.link-externalForm elements
Wrap each control in .field with a label. Add .field-error or .field-success to show state.
Data table
Markdown tables get this style automatically. Wrap wide tables in .table-wrap so they scroll on small screens, and add class="numeric" to right-align numbers.
| Plan | Status | Seats | Price |
|---|---|---|---|
| Starter | Live | 1 | £9 |
| Pro | Beta | 5 | £29 |
| Legacy | Retired | 10 | £49 |
| Sample data only | £87 | ||