Cosmic Developer’s type system pairs three complementary typefaces to reinforce the space-tech aesthetic: a clean humanist sans-serif for readable body copy, a programmer’s monospace for terminal-flavored labels and code snippets, and a modern geometric sans for bold display headings. All three are loaded in a single Google Fonts import at the top ofDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/cosmic-developer/llms.txt
Use this file to discover all available pages before exploring further.
assets/main.css, so no additional setup is needed beyond the existing build.
Font Reference
| Family | Fallback | Tailwind Class | Weights | Primary Use |
|---|---|---|---|---|
| Inter | sans-serif | (default body — no class needed) | 300, 400, 500, 600 | Body text, UI labels, form inputs |
| JetBrains Mono | monospace | font-mono | 400, 700 | Code snippets, terminal labels, TeletypeText |
| Space Grotesk | sans-serif | font-heading | 400, 600, 700 | Page headings, section titles, nav brand label |
@import that loads all three families lives at the very top of assets/main.css:
body in the compiled CSS (font-family: Inter, sans-serif), and Space Grotesk is applied to all heading elements via the rule h1, h2, h3, h4, h5, h6 { font-family: Space Grotesk, sans-serif; } — so headings pick up the display font automatically without a utility class.
Type Scale Examples
The following patterns are drawn directly from the project’s page components and show how the three fonts work together across different hierarchy levels.The
font-heading class applies Space Grotesk explicitly. Because the base CSS rule already sets Space Grotesk on all h1–h6 elements, you only need font-heading when applying the display typeface to a non-heading element such as a <div>, <span>, or navigation link.Letter-Spacing Classes
Threetracking-* utilities are used across the site, each tied to a distinct typographic context:
| Class | letter-spacing value | Where used |
|---|---|---|
tracking-tighter | −0.05em | Hero and large display headings (<h1>) |
tracking-tight | −0.025em | Medium-size headings and card titles |
tracking-wider | +0.05em | Sub-labels, dates, metadata |
tracking-widest | +0.1em | Monospace eyebrow labels, font-mono tags |
Changing Fonts
To swap any of the three families, make two coordinated edits: Step 1 — Update the Google Fonts import inassets/main.css:
tailwind.config.js to point the class names at the new families:
Line Height
Body copy usesleading-relaxed (line-height: 1.625) throughout the project, which keeps long paragraphs comfortable at the text-lg size. Navigation links and button labels omit an explicit leading class, inheriting the Tailwind base of 1.5. Display headings use no leading override — at text-9xl the default line-height: 1 (leading-none) is appropriate for tight stacking.