Style guide

Every decision of this site in one place: tokens first, then the components built from them, in all their states. Switch the theme to check both palettes.

Three words

quiet mysterious precise

Colour

Named by role. Each token holds a light and a dark value; the chips below show the current theme.

  • --c-brand
    headings, links, buttons

  • --c-accent
    highlights, sparingly

  • --c-focus
    focus ring

  • --c-text
    body text

  • --c-muted
    secondary text

  • --c-bg
    page

  • --c-surface
    cards, header

  • --c-sunken
    footer, code

  • --c-border
    lines

Contrast of the text pairs (WCAG AA asks for 4.5 : 1)
PairLightDark
text on page15.3 : 115.4 : 1
muted text on page6.8 : 18.7 : 1
brand on surface12.6 : 18.5 : 1
accent on page6.2 : 19.1 : 1
button text on brand12.6 : 19.4 : 1
focus ring on page (3 : 1 needed)4.6 : 110.7 : 1

Type

Headings: --f-head, a system serif stack. Text: --f-body, the system sans. Scale ratio 1.25; sizes above step 1 flow with clamp().

Step 4 · Umbră

Step 3 · Schatten

Step 2 · Ombre

Step 1 · Sombra

Step 0 · Body text. Diacritics must work: ăâîșț ĂÂÎȘȚ, and look-alikes must differ: I l 1 O 0.

Step −1 · Captions and notes.

A link, bold, italic, code, WCAG.

Spacing and shadows

--space-1
--space-2
--space-3
--space-4
--space-5
--space-6
shadow-1
resting
shadow-2
raised

Buttons in every state

The real states are triggered by the pointer and the keyboard; the copies below are frozen so you can compare them.

default
hover
focus-visible
active
disabled
secondary

Form field in every state

Empty
Focus
Error: enter a full address, like name@example.com
Disabled

Other components

  • Card

    The whole card is one link. It rises on hover; in a narrow container the icon sits on top.

  • Note. An aside with the accent bar.

  1. Fact. A numbered finding, as on the home page.

A quotation in the heading face.