al-research

Design guide

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.

01

Colour

Swatches follow the theme toggle in the header. Hex values are listed for light and dark.

  • Paper

    --color-paper

    Page background

    Light #f5f2ea · Dark #171613

  • Ink

    --color-ink

    Headings and body text

    Light #1d1c1a · Dark #ece8df

  • Ink soft

    --color-ink-soft

    Secondary text, metadata

    Light #57534b · Dark #a39d90

  • Rule

    --color-rule

    Dividers and borders

    Light #d6cfbf · Dark #3a372f

  • Accent

    --color-accent

    Links, hover, required markers

    Light #7a2e1f · Dark #e8907a

  • Card

    --color-card

    Post card surface

    Light #ffffff · Dark #22201b

  • Card edge

    --color-card-edge

    Card border and stacked layer

    Light #e7e4dd · Dark #3a372f

  • Code

    --color-pre

    Code block background

    Light #ebe6d9 · Dark #27241f

02

Typography

Two families only. Source Serif 4 carries the reading text, and IBM Plex Mono handles metadata, dates, tags, and code.

Source Serif 4 · headings and body

Regular 400, italic available

Display

text-5xl · 48px · 1.15 · -0.02em

Section heading

text-3xl · 30px · snug

Card title

text-2xl · 24px · snug

Lead paragraph. Used for intros and abstracts.

text-lg · 18px · relaxed

Body text, set in the reading view with comfortable line length and a 1.7 line height for long-form notes.

base · 17px · 1.7

IBM Plex Mono · metadata

Regular 400

29 Nov 2026 · Label text

text-[0.8125rem] · 13px · 0.01em tracking

Inline code uses const x = 1; at 0.875em.

code · 0.875em

Required marker and hover

accent colour on hover

03

Layout and spacing

Container
max-w-5xl (1024px), centred
Gutters
24px on mobile, 40px from md up
Card grid
two columns from md, gap 48px
Card padding
28px, 32px from md
Section rhythm
64px between sections, 96px before footer
Reading width
68ch for articles and forms, 60ch for intros

04

Shape and elevation

Resting · rounded-2xl · 0 2px 8px

Hover · 0 8px 22px · lifts 2px

Rules · 1px, no radius

05

Components

Button

Send message

Text link

A link inside body text underlines in accent colour.

Field

What is this about?

Field, focused

Title typed here

Post card

Date

Card title

Abstract text sits in ink-soft, about two lines long.

#tag #tag

06

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.