Cake
earlyA web interface for coding agents built on Pi.
- Stars
- 1,204
- Release
- v0.4.0
- Updated
- 2 days ago
The tokens and components this site is built from. New pages use these; a new colour or size is a change here first.
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.
--bgdark #0E1117 · light #FFFFFF--bg-raiseddark #161A23 · light #F7F8FA--bg-softdark #1B202B · light #EEF1F5--borderdark #292D35 · light #DDE1E7--border-strongdark #3A3F4A · light #C3C9D2--textdark #E6E8EB · light #16181D--text-muteddark #9198A1 · light #555F6B--text-faintdark #7D848E · light #667080--accentdark #C6FF3D · light #2F6B00--accent-strongdark #DCFF7A · light #265600--accent-softdark #232C12 · light #EDF7CE--on-accentdark #0E1117 · light #FFFFFF--okdark #6FCF97 · light #1F7A4D--warndark #E0B25C · light #8A5A00--dangerdark #F07F7F · light #A62F2F--code-bgdark #11151D · light #F3F5F8System 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.Monospace, uppercase, 0.08em tracking: navigation, meta lines, status, section headings. A label is always small and never body copy.
Section
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.
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 · 2pxOne 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 · 96pxOne 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.
Project status only: early, stable, archived. The word is the label; colour is never the only signal.
The project card is one component: title, status, tagline, live figures, links. Overview pages add the description and license.
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 buildFour tones, all with a text label so the meaning survives without colour.