Colophon
How this site is built.
Updated
Principles
The site is a home for writing, so it’s built to be fast to load, easy to read and cheap to keep running. It’s static HTML with very little JavaScript, it has no cookies or trackers, and nothing on it depends on a third-party service while you read.
Built with
- Astro, generating plain static pages. Posts are Markdown files in the repository, one folder per post with its images beside it, and their frontmatter is checked against a schema at build time.
- TypeScript in strict mode.
- Plain CSS with custom properties for every colour, size and space. No CSS framework.
- Shiki for syntax highlighting, done at build time so code blocks need no JavaScript.
- Pagefind for search. The index is built with the site and only downloads when you start typing in the search box.
Type
- Literata for reading text, a serif designed for long-form reading on screens.
- Instrument Sans for headings and interface text.
- JetBrains Mono for code.
All three are open-source (SIL Open Font License) and served from this site as variable fonts, cut down to Latin characters. No font requests go to anyone else.
Light and dark
Dark is the default. The sun button in the header switches to a light palette, and the site remembers your choice in your browser. Both palettes are designed to meet WCAG AA contrast.
Hosting and checks
The site is hosted as static files on Cloudflare. Every pull request gets its own preview build, and every change runs through the same checks before it’s merged: type and content-schema checks, a formatting check, a full build, and a check that every internal link and anchor resolves.
Feeds
Follow along with the RSS feed. There’s also a sitemap for search engines.