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.
| Use | Example | Spec |
|---|---|---|
| Body | Bookings for the week of 12 Dec | 14px / 1.45, -apple-system, "Segoe UI", Calibri, Arial, sans-serif |
| Tool name (header) | Exercise | 16px bold |
| Card label | This week | 12px, uppercase, 0.8px tracking, --mute |
| Big number | 42.6 km | 28px bold, unit in --mute |
| Field label | Date | 12px, --mute, sentence case |
| Button | 11px 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
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
Header & menu
The bar at the top of this page is the pattern. Sticky; on the left the tool's icon (28px, from Icon Builder) and name, which together are the link home; on the right the menu as pills, with the current page filled.
Do
- keep the menu to 3 to 5 items, all pills the same width
- line the header up with the page: same width, centred (see Page width)
- let the filled pill say where you are, so no page title repeats it
- put page controls (a year picker, a download link) in a slim bar under the header
- on a phone, hide the name, keep the icon, shrink the pills
Don't
- use a bottom tab bar
- add a "Home" button (the icon is home)
- give a menu slot to something one tap from Home
- use a big heading as the only header (as Travel picker and Transcripts do today)
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
Time
Sessions
Elevation
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.
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
hours
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.
| What | Address |
|---|---|
| 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 app | manifest.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 change | Stays 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.
| Area | Every tool has |
|---|---|
| Look | shared stylesheet; one page width for header and page; header and menu as above; dark mode; checked at 375px and 1280px |
| Icons | favicon, header icon and home-screen icon from Icon Builder; manifest and sw.js if used on the phone |
| Login | shared login (cookie, bcrypt, lockout), unless it is deliberately public and holds nothing private |
| Web server | Caddy security-header snippet; noindex; service on 127.0.0.1 only |
| Server | systemd service under its own user, with MemoryMax; venv; code under /root/services/<tool>/ |
| Running | a check in the daily health check that the address answers; failures by email |
| Records | laptop master under git; readme.md; CLAUDE.md; no spare copies of the database or site left on the server |