Design System · v1.0 · 2026.09 TOKENS.JSON DESIGN.MD

Sona

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.

Canvas#000000 Light#F1F4F4 AccentCyan · Mint = status SansSpace Grotesk MonoJetBrains Mono

00 · Ships with

Templates

Three self-contained HTML files. No build step; copy, edit the content, serve or print.

01 · Rules

Design Principles

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.

  1. 01

    Void or eggshell

    Page background is pure #000 on screen or #f1f4f4 in light sections. Never a mid-gray canvas.

  2. 02

    Hierarchy by alpha

    Text levels are white at fixed opacities, 100 to 30. A gray hex or a second hue for text is drift.

  3. 03

    No gradient treatments

    The starfield is the only sky. Flat navy carries emphasis; blurred orbs and gradient bands are retired.

  4. 04

    Flat surfaces

    Cards are a fill and a hairline. Hover inverts or brightens; it never lifts. Shadows exist only on light-mode cards.

  5. 05

    Radius discipline

    10 / 20 / 30 / pill, and nothing between. Twenty pixels is the workhorse card radius.

  6. 06

    Print flattens

    Alpha tokens become registered solids on paper. No 8-digit hex ships to WeasyPrint.

02 · Origin

Why it exists

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

Deep Space

Every hex is registered in tokens.json and enforced by scripts/check_tokens.py.

Canvas & surfaces

Void

Page background

#000000

Surface 1

Hover / sunken

#181818

Surface 2

Card fill on dark

#1E1F20

Surface 3

Raised / nav

#212121

Edge

Strongest solid border

#37383A

Ink ladder (text on dark = white alpha)

Ink

Titles, key figures

#FFFFFF

Ink 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%

Strokes & fills

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%

Light mode (eggshell)

Eggshell

Light section / paper

#F1F4F4

Paper

Card on eggshell

#FFFFFF

Eggshell Dark

Strong hairline

#CFDADC

Edge Light

Hairline on light

#E1E1E1

Gray Medium

Secondary on light

#BBBBBB

Gray Mid

Tertiary on light, large sizes

#808080

Gray Dark

Labels and small text on light

#666666

Functional accents

Mint

Growth, success, live status. Dots and series only.

#22E2A8

Cyan

Links and info on dark. Never body text.

#40B3FF

The sky (starfield, hero only)

Starfield · two layers · 130px bright + 34px faint · hero only

04 · Typography

Type System

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.

Scale (px)

DisplayDeep space56-96px · 500
line 1.05 · -0.035em
H2 SectionCanvas & surfaces32px · 500
line 1.25
H3 SubCard groups24px · 500
line 1.35
LedeA quiet sentence that sets up a section.18px · 400
line 1.5 · ink-60
BodyDefault prose, tracked 0.02em, white at 60%.16px · 400
line 1.5 · ink-60
LabelEyebrow · Chip · Footer12px · mono 500
+0.48px · ink-50

05 · Space

Rhythm & Form

Base unit 4px inside a 1440px frame. Section gaps scale as one ladder; radii stay on four values.

ScaleValueUse
xs4-8pxInline gaps, icon-text pairs
sm12-16pxChip padding, dense interiors
md24-32pxCard padding, interiors
lg48-64pxBetween components
xl96-108pxBetween major sections
2xl150px+Hero air

Radii

10px
Chip, code
20px
Card (workhorse)
30px
Large media
pill
Pill, tag, dot

06 · Modules

Components

Rendered with register tokens only. A value outside tokens.json fails the checker. Primitives first, then the patterns they compose into.

Primitives

Pills

999px radius · hover inverts · 300ms

Primary Default Small

Links

cyan · underline on hover · focus-visible ring

Every value on this page resolves to the register — tokens.json is the source of truth.

Tabs

pill container · active inverts · same skin as the hero toggle

Chips

mono 12px uppercase · fill-10 + stroke-13

Documented Enforced ● Live

Form fields

surface-2 fill · 10px · focus = accent rim

Alert

hairline band · mint ok · pink error · no fill

tokens.json copied to clipboard.
Clipboard unavailable — copy the text manually.

Card

surface-2 · stroke-13 rim · 20px

Core
Token register
A flat fill and one hairline. Hover steps the fill, never lifts the card.

Code

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

Table

hairlines only · mono uppercase header

TokenValue
--void#000000
--mint#22E2A8
--stroke-13white 13%

Blockquote

1px left rule · 16px · mono cite

Once the register was enforced, design review stopped arguing about color.

Meridian · Design lead

List

+ included · – excluded · mint cue

  • Token register
  • Three templates
  • Print stylesheet
  • Framework dependency

Divider

stroke-13 default · stroke-20 for chapters

stroke-13 · default
stroke-20 · chapter

Patterns

Section header

mono numeral · declarative title · one-line lede

04 · Type system

A short declarative title

One or two lines of explanation, never more.

Nav bar

wordmark left · mono links · pill CTA right

Hero

starfield · eyebrow · display clamp · two CTAs

Metrics

bright numbers · tabular-nums · never boxed

34
Tokens
3
Templates
6
Rules

Stat strip

4-col grid · tabular-nums · hairline separators

34
Tokens
3
Templates
5
Pages checked
0
Gradients

Pricing tiers

3 cells · hairline separators · featured tinted

Solo
$0
1 seat
Team
$12
per seat / mo
Studio
$40
flat / mo

CTA band

flat navy · centered · one pill

Start building

Media frame

30px radius · hairline rim · 16:9

16 : 9

Marquee

linear infinite · register names, not logos

--void--ink-80--surface-2--stroke-13--eggshell--mint--cyan--nebula-navy --void--ink-80--surface-2--stroke-13--eggshell--mint--cyan--nebula-navy

Flow line

white beam · 5s · marks a live path only

FAQ accordion

native details · + rotates 45° open · no JS

Does it need a build step?+
No. Plain HTML and CSS variables; the checker is one Python script.

Footer

one baseline · mark + links + legal

07 · Modes

One register, three renders

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.

surface-2 · stroke-13 · radius-md
Continue

DARK · --SURFACE-2 CARD · --STROKE-13 RIM · --INK-50 LABEL · --MINT STATUS

08 · Drift

What to Avoid

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

Quick 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
Buttonpill 999px · 34/42px tall · hover = invert · 300ms
Signaturestarfield, two layers (130px bright + 34px faint) · hero only, masked to the top
Accents--cyan #40B3FF links · --mint #22E2A8 status dots only
TypeSpace Grotesk 400/500 · JetBrains Mono labels · ladder 12-96px
Verifypython3 scripts/check_tokens.py