Tools style guide

How every web tool on cushen.net should look and behave, so they feel like one family. The page itself is built from the rules it describes. Dark mode follows the phone or laptop setting; there is no switch.

Colour

Greyscale for the furniture. Colour only when it means something (a category in a chart, a warning). Every tool uses these seven names, so a change is made once.

--ink
#1d1d1f · dark #ecebe8
text, filled buttons

--mute
#6e6e73 · dark #9c9c9c
labels, secondary text

--line
#e3e3e6 · dark #333
borders, dividers

--soft
#f5f5f7 · dark #262626
hover, quiet panels

--bg
#f8f9fa · dark #161616
page, header

--card
#fff · dark #1f1f1f
cards, inputs (lift off the page)

--warn
#b3261e · dark #f2b8b5
errors, delete

--ok
#1e7a3c · dark #8fd19e
success (sparingly)

Do

  • use the names (var(--mute)), never a raw hex in the page
  • support dark mode by swapping the values, nothing else, following the device setting (no switch)
  • give each category one colour, the same everywhere in that tool

Don't

  • invent near-miss greys (#6b6f76, #6b6b6b, #f6f5f2)
  • use an accent colour for decoration (blue buttons, orange headers)
  • rename the tokens (--text, --muted)

Type

The system font, which loads instantly and looks native on iPhone and Windows. No web fonts unless a brand skin needs one.

UseExampleSpec
BodyBookings for the week of 12 Dec14px / 1.45, -apple-system, "Segoe UI", Calibri, Arial, sans-serif
Tool name (header)Exercise16px bold
Card labelThis week12px, uppercase, 0.8px tracking, --mute
Big number42.6 km28px bold, unit in --mute
Field labelDate12px, --mute, sentence case
Button11px bold uppercase, 0.6px tracking

Shape & space

Three corner sizes and an 8px rhythm. That's it.

Cards · 12px

1px --line border, 16px padding, no shadow.

Inputs · 8px

Pills · round

Gaps: 4 / 8 / 16 / 24px.

Page width

Toolmenu →
page content, same edges as the header

header and page share one width, centred on the screen

Rules

  • every tool uses one page width, set once as --page, and both the header bar and the page use it
  • standard is 1000px; a workbench tool with big tables or a side-by-side editor may use 1320px, and its header widens with it
  • narrower things (a form, a login card) sit inside the page width; they never narrow the header
  • never full-screen width with the icon pinned far left and the menu far right

Buttons

Four kinds, all pills. Buttons in a row, or in rows next to each other, are the same size. The two exceptions: a genuine space problem that different sizes solve, or one obviously dominant button (Save against Cancel or Clear), which can be wider. Shorten a label rather than let one button grow, and grey out an option that doesn't apply rather than hiding it.

One dominant button

Equal-width group

Switch between views

Forms

Label above the field, sentence case, 12px grey. One primary button, full width on a phone, at the end. Cancel is a link or ghost pill beside it.

Add a ride

Cards & numbers

Summary boxes in one row on a desktop, two columns on a phone. Controls sit right beside what they change.

Distance

412 km
▲ 8% on last year

Time

18:40
hours

Sessions

31
target 36

Elevation

6,120
metres

Login page

One design for every tool: the tool's own icon and name, the fields, one full-width button. Today there are five different login pages, plus two tools with the browser's grey password box and two with none.

Exercise

Stays logged in on this device for a year.

Rules

  • centred card, 340px wide, on --bg
  • "Name" only for tools with more than one person
  • wrong password: a short line in --warn, never which part was wrong
  • a brand skin swaps the icon for the logo and the button colour, nothing else
  • served by the shared login code, so every tool gets fixes at once

Phone & desktop

Built for the phone first, but use the space on a desktop. One breakpoint at 760px.

km

412

hours

18:40

phone: icon only, two-column boxes

Rules

  • below 760px: hide the tool name, smaller pills, two-column summary boxes, tables scroll sideways or drop minor columns
  • above 760px: summary boxes in one row, charts fill the screen height
  • anything tapped is at least 40px high
  • check at 375px and 1280px before calling it done

Icons & phone app

Every icon comes from Icon Builder by address, so it changes in one place. Anything used on the phone installs to the home screen.

WhatAddress
Browser tab/i/<name>.ico and /i/32/<name>.png
iPhone home screen/i/180/<name>.png (the special full-bleed render)
Header/i/<name>.png at 28px, with onerror="this.remove()"
Phone appmanifest.webmanifest (192 and 512 icons) plus a small sw.js; bump its cache version when page files change

Words

Do

  • British English, sentence case
  • bullet points start lowercase unless the first word is a proper noun
  • dates as 05 Dec 2026 (05 December 2026 in emails)
  • short labels: "Compare", not "Compare with previous 1 year"
  • errors that say what to do next: "Couldn't reach Airbnb. Try again in a minute."

Don't

  • labels in Title Case
  • em dashes
  • "Submit", "OK", "Click here"
  • technical errors shown raw ("500", "NoneType")

Brand skins

A tool that faces a business (The Cedar House, Bird, Renewal Partners) can wear that business's look. It changes the tokens and the logo, never the structure: same header, same menu, same buttons, same login.

Can changeStays the same
--ink, --bg, --line values; one accent; the logo; one heading font (self-hosted, not Google)token names, header and menu, button shapes, login layout, breakpoint, icons from Icon Builder, dark mode

Build checklist

What every new tool ships with. Most of it comes free from the shared code once that exists.

AreaEvery tool has
Lookshared stylesheet; one page width for header and page; header and menu as above; dark mode; checked at 375px and 1280px
Iconsfavicon, header icon and home-screen icon from Icon Builder; manifest and sw.js if used on the phone
Loginshared login (cookie, bcrypt, lockout), unless it is deliberately public and holds nothing private
Web serverCaddy security-header snippet; noindex; service on 127.0.0.1 only
Serversystemd service under its own user, with MemoryMax; venv; code under /root/services/<tool>/
Runninga check in the daily health check that the address answers; failures by email
Recordslaptop master under git; readme.md; CLAUDE.md; no spare copies of the database or site left on the server