Typography
| Role | Family | Token | Tailwind | Use |
|---|---|---|---|---|
| Display | Space Grotesk Variable | --nw-font-display |
font-display |
Headings h1 to h6, display text, stat values |
| Sans | Inter Variable | --nw-font-sans |
font-sans |
Body text, controls, lead |
| Mono | Martian Mono Variable | --nw-font-mono |
font-mono |
Code, values, eyebrows, table headers |
All three are open-licensed (OFL) variable fonts shipped as local woff2 files, Latin and Latin Extended subsets, with font-display: swap. They load from @nyxwire/css/fonts.css, which the full CSS bundle, @nyxwire/tailwind and the Starlight plugin import. No request leaves your origin.
Space Grotesk leans technical and slightly wide, which is why it carries headings and numbers; Inter carries everything you read at length; Martian Mono is a wide monospace with tall x-height, tuned for short labels and code.
Specimen
Section titled “Specimen”Signal on the wire
Indigo tubes and quiet panels
Cut corners, readable in every flavor
Panels, cards and HUD frames
Section headings in the display face
Section label in the body face
h6 keeps the display face here
Mono uppercase eyebrow
Lead text opens a section at 1.25rem with normal leading and muted ink.
Body copy is Inter at 1rem with 1.55 line height. It carries strong text,
emphasis and inline code without changing rhythm.
channel.alerts · latency 12ms · 0123456789 != =>
Heading roles
Section titled “Heading roles”Element defaults in @nyxwire/css base styles, mirrored by classes so any tag can take a role:
| Role | Class | Font | Size | Weight | Notes |
|---|---|---|---|---|---|
| Display | .nw-display |
display | clamp(3rem, 2rem + 5vw, 4.5rem) |
700 | leading 1, tracking −0.03em |
| h1 | .nw-h1 |
display | 2.25rem (--nw-text-4xl) |
700 | leading 1.15, tracking −0.03em |
| h2 | .nw-h2 |
display | 1.875rem (--nw-text-3xl) |
700 | leading 1.15, tracking −0.015em |
| h3 | .nw-h3 |
display | 1.5rem (--nw-text-2xl) |
600 | leading 1.3, tracking −0.015em |
| h4 | .nw-h4 |
display | 1.25rem (--nw-text-xl) |
600 | leading 1.3, tracking −0.015em |
| h5 | .nw-h5 |
display | 1.125rem (--nw-text-lg) |
600 | leading 1.3, tracking −0.015em |
| h6 | .nw-h6 |
display | 1rem (--nw-text-base) |
600 | leading 1.3, tracking −0.015em |
| Eyebrow | .nw-eyebrow |
mono | 0.6875rem (--nw-text-2xs) |
500 | uppercase, tracking 0.18em, primary ink |
| Lead | .nw-lead |
sans | 1.25rem (--nw-text-xl) |
400 | leading 1.55, fg-muted |
Headings balance their lines (text-wrap: balance) and paragraphs avoid orphans (text-wrap: pretty). Helpers: .nw-mono (mono font), .nw-text-muted, .nw-text-subtle, .nw-text-faint, .nw-text-disabled and .nw-text-<intent> for colored text. For long-form HTML, wrap it in .nw-prose (.nw-prose-sm, .nw-prose-lg, .nw-prose-wide), which styles lists, quotes, code, tables and rules at a 68ch measure.
| Token | Size | Tailwind |
|---|---|---|
--nw-text-2xs |
0.6875rem | text-2xs |
--nw-text-xs |
0.75rem | text-xs |
--nw-text-sm |
0.875rem | text-sm |
--nw-text-base |
1rem | text-base |
--nw-text-lg |
1.125rem | text-lg |
--nw-text-xl |
1.25rem | text-xl |
--nw-text-2xl |
1.5rem | text-2xl |
--nw-text-3xl |
1.875rem | text-3xl |
--nw-text-4xl |
2.25rem | text-4xl |
--nw-text-5xl |
3rem | text-5xl |
--nw-text-6xl |
3.75rem | text-6xl |
--nw-text-7xl |
4.5rem | text-7xl |
The Tailwind theme re-binds Tailwind’s own size names to these tokens, with leading from snug up. text-base, text-sm and smaller keep Tailwind’s default line heights; text-xl and up pair with the tighter leading tokens.
| Leading | Value | Tracking | Value |
|---|---|---|---|
--nw-leading-none |
1 | --nw-tracking-tighter |
−0.03em |
--nw-leading-tight |
1.15 | --nw-tracking-tight |
−0.015em |
--nw-leading-snug |
1.3 | --nw-tracking-normal |
0 |
--nw-leading-normal |
1.55 | --nw-tracking-wide |
0.04em |
--nw-leading-relaxed |
1.7 | --nw-tracking-wider |
0.08em |
--nw-tracking-widest |
0.18em |