Style guide

The tokens and components this site is built from. New pages use these; a new colour or size is a change here first.

Colour

Dark is the default, light follows the system or the toggle. Every pair below is the value for that theme; components never hard-code a hex. There is one accent, an acid green, and it means "here": links, focus, the current page, the sparkline.

Page background--bgdark #0E1117 · light #FFFFFF
Cards, raised surfaces--bg-raiseddark #161A23 · light #F7F8FA
Asides, quiet panels--bg-softdark #1B202B · light #EEF1F5
Hairlines and card borders--borderdark #292D35 · light #DDE1E7
Second edge, buttons--border-strongdark #3A3F4A · light #C3C9D2
Body text and headings--textdark #E6E8EB · light #16181D
Secondary text--text-muteddark #9198A1 · light #555F6B
Labels and metadata--text-faintdark #7D848E · light #667080
Links, focus, the current page--accentdark #C6FF3D · light #2F6B00
Link hover, primary button hover--accent-strongdark #DCFF7A · light #265600
Selection, tints--accent-softdark #232C12 · light #EDF7CE
Text on the accent--on-accentdark #0E1117 · light #FFFFFF
Stable status--okdark #6FCF97 · light #1F7A4D
Early status, caution--warndark #E0B25C · light #8A5A00
Danger asides--dangerdark #F07F7F · light #A62F2F
Code blocks and inline code--code-bgdark #11151D · light #F3F5F8

Type

System sans for text, system mono for code and for every small label. Headings are heavy and tight; only the name on the homepage is large.

--text-2xs · 11pxThe quiet part is the useful part.
--text-xs · 12pxThe quiet part is the useful part.
--text-sm · 14pxThe quiet part is the useful part.
--text-base · 16pxThe quiet part is the useful part.
--text-lg · 18pxThe quiet part is the useful part.
--text-xl · 22pxThe quiet part is the useful part.
--text-2xl · 28pxThe quiet part is the useful part.
--text-3xl · 36pxThe quiet part is the useful part.
--text-4xl · 48pxThe quiet part is the useful part.
--text-display · 72pxThe quiet part is the useful part.

Labels

Monospace, uppercase, 0.08em tracking: navigation, meta lines, status, section headings. A label is always small and never body copy.

.eyebrow

Section

meta

2 Dec 2026 · 4 min read

.badge

early

One header on every page. Four kinds of item, four ways to read them: content links in muted mono, the current page in the text colour with an accent underline; services at the same size but in the accent and never a button; GitHub as a mark; language and theme smaller, dimmer and behind a hairline. Below 50rem the row becomes the brand, services and one menu — with the Starlight sidebar inside it on project pages.

Content links and services
Settings

Shape and texture

1px borders, corners of 2px at most, no shadows. Hover colours the border in the accent and nothing else moves. A film grain drawn by an inline SVG sits over the whole page at 3.5% opacity; it switches off for more contrast, reduced motion and print.

--radius-sm · 1px
--radius · 2px
--radius-lg · 2px

Spacing

One scale for padding, gaps and vertical rhythm. Cards use 24 inside and 16 between.

--space-1 · 4px
--space-2 · 8px
--space-3 · 12px
--space-4 · 16px
--space-5 · 24px
--space-6 · 32px
--space-7 · 48px
--space-8 · 64px
--space-9 · 96px

Buttons and links

One primary button per view at most. A link is underlined, the line is a tint of the accent and goes solid on hover; navigation and card titles carry no underline.

.button--primary
.button--secondary

Badges

Project status only: early, stable, archived. The word is the label; colour is never the only signal.

earlystablearchived

Card

The project card is one component: title, status, tagline, live figures, links. Overview pages add the description and license.

Cake

early

A web interface for coding agents built on Pi.

Stars
1,204
Release
v0.4.0
Updated
2 days ago

Code

Inline code and blocks share one background and border. Commands are the only place a shell prompt appears.

Install with pnpm add chord-postgres and a connection string.

pnpm install
pnpm typecheck
pnpm build

Asides

Four tones, all with a text label so the meaning survives without colour.

NoteA neutral remark about the thing being documented.
TipA shortcut that saves a step.
CautionSomething that changes state and is hard to undo.
DangerData loss, or a command that cannot be run safely.

Rules

  • Body copy stays near the 68ch measure; nothing runs the full width of a wide window.
  • One accent colour. No gradients, no shadows beyond the card edge.
  • Every interactive element has a visible focus ring and a hover state; the ring is 2px of the accent.
  • Metadata is small, monospace and muted. No invented figures, no placeholder testimonials.
  • Dark and light are both first-class; check a change in both.
  • Text, muted text, metadata and the accent reach at least WCAG AA in both themes — a unit test recomputes the pairs.