How this site is built
The reference for the tokens, type, and components behind every page. Colours are defined once in the theme and used through their names, so the light and dark themes stay in sync.
Colour
Swatches follow the theme toggle in the header. Hex values are listed for light and dark.
Paper
Page background
Ink
Headings and body text
Ink soft
Secondary text, metadata
Rule
Dividers and borders
Accent
Links, hover, required markers
Card
Post card surface
Card edge
Card border and stacked layer
Code
Code block background
Typography
Two families only. Source Serif 4 carries the reading text, and IBM Plex Mono handles metadata, dates, tags, and code.
Regular 400, italic available
Display
Section heading
Card title
Lead paragraph. Used for intros and abstracts.
Body text, set in the reading view with comfortable line length and a 1.7 line height for long-form notes.
Regular 400
Inline code uses const x = 1; at 0.875em.
Layout and spacing
- max-w-5xl (1024px), centred
- 24px on mobile, 40px from md up
- two columns from md, gap 48px
- 28px, 32px from md
- 64px between sections, 96px before footer
- 68ch for articles and forms, 60ch for intros
Shape and elevation
Components
Card title
Abstract text sits in ink-soft, about two lines long.
Icons
Lucide icons, 2px stroke, at 14px beside metadata, 16px in the header, and 22px on cards. Icons are decorative, so they are marked aria-hidden. The GitHub mark is the standard brand glyph and is used in the footer.