A design system for landing pages and printable documents. Self-contained HTML templates, one token register, and the rules that keep the hundredth page looking like the first.
00 · Ships with
Three self-contained HTML files. No build step; copy, edit the content, serve or print.
For a product that needs to explain itself: nav, starfield hero, proof strip, features, pricing, FAQ, closing band.
templates/landing-page.html
The same page remapped to eggshell and paper: the one sanctioned shadow, navy accent, inverted dust field.
templates/landing-page-light.html
For a document that must survive a printer: A4, registered solids only, navy carries the emphasis. WeasyPrint-ready.
templates/one-pager.html
01 · Rules
The defaults are a pure-black canvas, white-alpha text, and one geometric sans. Hairlines and fills carry structure; a starfield carries the sky. Light mode inverts to eggshell and paper, where navy is the only chromatic voice.
Page background is pure #000 on screen or #f1f4f4 in light sections. Never a mid-gray canvas.
Text levels are white at fixed opacities, 100 to 30. A gray hex or a second hue for text is drift.
The starfield is the only sky. Flat navy carries emphasis; blurred orbs and gradient bands are retired.
Cards are a fill and a hairline. Hover inverts or brightens; it never lifts. Shadows exist only on light-mode cards.
10 / 20 / 30 / pill, and nothing between. Twenty pixels is the workhorse card radius.
Alpha tokens become registered solids on paper. No 8-digit hex ships to WeasyPrint.
02 · Origin
Every generated page drifts the same way: gray text on near-black, a new accent per feature, shadows pretending to be depth. Sona is the correction. One token register, one spec, and templates that compose only what the register holds, so the hundredth page looks like the first.
03 · Color
Every hex is registered in tokens.json and enforced by scripts/check_tokens.py.
Void
Page background
#000000Surface 1
Hover / sunken
#181818Surface 2
Card fill on dark
#1E1F20Surface 3
Raised / nav
#212121Edge
Strongest solid border
#37383AInk
Titles, key figures
#FFFFFFInk 80
Emphasized body
80%Ink 60
Body, nav links
60%Ink 50
Subdued prose
50%Ink 40
Decorative; below text floor
40%Ink 30
Decorative only
30%Stroke 50
Focus, active rim
50%Stroke 20
Default border
20%Stroke 13
Hairline
13%Fill 20
Chip fill
20%Fill 10
Hover fill
10%Fill 5
Quietest fill
5%Eggshell
Light section / paper
#F1F4F4Paper
Card on eggshell
#FFFFFFEggshell Dark
Strong hairline
#CFDADCEdge Light
Hairline on light
#E1E1E1Gray Medium
Secondary on light
#BBBBBBGray Mid
Tertiary on light, large sizes
#808080Gray Dark
Labels and small text on light
#666666Mint
Growth, success, live status. Dots and series only.
#22E2A8Cyan
Links and info on dark. Never body text.
#40B3FF04 · Typography
One geometric sans carries every level; mono owns labels, code, and figures. Space Grotesk is the shipped free substitute for the commercial The Future.
Aa
Sans · everything
Space Grotesk
Headings, body, UI. Weights 400/500 only; headings sit at 500. Move "The Future" first in the stack if licensed.
</>
Mono · labels + code
JetBrains Mono
Eyebrows, chips, code blocks, tabular figures, version strings, hex values.
| Display | Deep space | 56-96px · 500 line 1.05 · -0.035em |
| H2 Section | Canvas & surfaces | 32px · 500 line 1.25 |
| H3 Sub | Card groups | 24px · 500 line 1.35 |
| Lede | A quiet sentence that sets up a section. | 18px · 400 line 1.5 · ink-60 |
| Body | Default prose, tracked 0.02em, white at 60%. | 16px · 400 line 1.5 · ink-60 |
| Label | Eyebrow · Chip · Footer | 12px · mono 500 +0.48px · ink-50 |
05 · Space
Base unit 4px inside a 1440px frame. Section gaps scale as one ladder; radii stay on four values.
| Scale | Value | Use | |
|---|---|---|---|
| xs | 4-8px | Inline gaps, icon-text pairs | |
| sm | 12-16px | Chip padding, dense interiors | |
| md | 24-32px | Card padding, interiors | |
| lg | 48-64px | Between components | |
| xl | 96-108px | Between major sections | |
| 2xl | 150px+ | Hero air |
06 · Modules
Rendered with register tokens only. A value outside tokens.json fails the checker. Primitives first, then the patterns they compose into.
Primitives
999px radius · hover inverts · 300ms
cyan · underline on hover · focus-visible ring
Every value on this page resolves to the register — tokens.json is the source of truth.
pill container · active inverts · same skin as the hero toggle
mono 12px uppercase · fill-10 + stroke-13
surface-2 fill · 10px · focus = accent rim
hairline band · mint ok · pink error · no fill
surface-2 · stroke-13 rim · 20px
surface-1 · mono 13px · cyan/mint/pink/violet syntax
# the real checker, and its real output
$ python3 scripts/check_tokens.py
OK: 5 page(s), all var() refs resolve locally
and all hexes are registered
hairlines only · mono uppercase header
| Token | Value |
|---|---|
| --void | #000000 |
| --mint | #22E2A8 |
| --stroke-13 | white 13% |
1px left rule · 16px · mono cite
Once the register was enforced, design review stopped arguing about color.
Meridian · Design lead
+ included · – excluded · mint cue
stroke-13 default · stroke-20 for chapters
Patterns
mono numeral · declarative title · one-line lede
04 · Type system
One or two lines of explanation, never more.
starfield · eyebrow · display clamp · two CTAs
bright numbers · tabular-nums · never boxed
4-col grid · tabular-nums · hairline separators
3 cells · hairline separators · featured tinted
flat navy · centered · one pill
30px radius · hairline rim · 16:9
linear infinite · register names, not logos
white beam · 5s · marks a live path only
native details · + rotates 45° open · no JS
07 · Modes
The same card in dark, light, and print.
Modes remap the register; the markup does not change. Print output
runs on --print-ink-*
solids with navy as the one chromatic text color.
Plan
Team workspace
One register, three renders of the same card.
DARK · --SURFACE-2 CARD · --STROKE-13 RIM · --INK-50 LABEL · --MINT STATUS
08 · Drift
Exceptions are allowed, but the reason should be explicit.
Gray text on dark
Never#999999 or #aaaaaa for body copy. On pure black it is identical to alpha, but it stays put on every surface below.
InsteadUse the alpha ladder: --ink-60 for body, --ink-50 for labels. White alpha adapts to whatever fill sits under it.
Gradient everywhere
NeverNebula on buttons, chips, card rims, or body text. Saturation at small sizes reads as noise.
InsteadNo gradient treatments at all. The starfield carries the sky; flat navy carries emphasis.
Lifted cards
NeverShadow or translateY on a dark card. There is no light source in the void; elevation is a fill step.
Instead--surface-2 over --void with a --stroke-13 rim. Hover steps to --surface-3.
Alpha in print
Never8-digit hex or rgba() in a print template. WeasyPrint draws padding and glyphs at different opacity: double rectangles.
InsteadFlatten to --print-ink-60 (#999999) and siblings, registered in tokens.json.
Off-scale radii
NeverA 14px or 24px card, or a square button. The scale is the whole gesture.
Instead10 / 20 / 30 / 999. If a surface needs more presence, fix the fill or the label, not the radius.
Hover lift
NevertranslateY(-2px) plus shadow on a pill. Motion that imitates a physical button fights the flat system.
InsteadInvert fill and foreground over 300ms, or brighten the alpha fill one step.
09 · Reference
| Page background | --void #000 (dark) · --eggshell #F1F4F4 (light) |
| Card | --surface-2 fill · --stroke-13 rim · 20px radius · 24-28px padding |
| Text on dark | --ink titles · --ink-60 body · --ink-50 labels |
| Text on light | #000 primary · #212121 secondary · #666666 labels |
| Button | pill 999px · 34/42px tall · hover = invert · 300ms |
| Signature | starfield, two layers (130px bright + 34px faint) · hero only, masked to the top |
| Accents | --cyan #40B3FF links · --mint #22E2A8 status dots only |
| Type | Space Grotesk 400/500 · JetBrains Mono labels · ladder 12-96px |
| Verify | python3 scripts/check_tokens.py |