Lab · OzzyOS
How type works in my design system
OzzyOS now has a full type system: three font families, a size scale, and 13 text styles that every component and page uses. This post covers the decisions behind it, including a couple I changed my mind on.
Three families, three jobs
Each family does one job, so nobody has to decide which font to use.
- Manrope for display and headings. OZARIN, the brand OzzyOS grew out of, uses Montserrat. Manrope keeps that geometric, confident shape with friendlier details, and at 800 it carries the "heavy metal" half of the concept.
- Inter for reading and interface. It's built for screens, stays readable from long articles down to dense tables, and has the weights I need for labels and buttons.
- JetBrains Mono for code and token names. Only for things a developer would type.
Fonts are set per brand, so a client brand can swap any of the three without touching a component.
- Display and headingsManropeHeavy metal. Soft edges.800 display and heading-lg · 700 smaller headings
- Reading and interfaceInterReadable at every size, from long articles to dense tables.400 reading · 500 badges · 600 labels, buttons, overlines
- Code and token namesJetBrains Monovar(--oz-surface-raised)400 code
Named by size, not by HTML level
The first draft named the heading styles heading-1 to heading-4. I renamed them heading-lg, heading-md, heading-sm and heading-xs, because text hierarchy isn't the same thing as styling.
An <h1> marks the most important heading on a page for screen readers and search engines. How big it looks is a separate decision. A blog post's <h1> might use heading-lg, while a landing page's <h1> uses display-md. A card title is often an <h3> in the page structure, but it should look small. Named by level, the tokens would push people to pick the wrong element to get the right size, which breaks the document outline that assistive technology relies on.
So the markup carries the hierarchy, and a class carries the look.
<article>
<p class="oz-text-overline">Lab · OzzyOS</p>
<h1 class="oz-text-heading-lg">…</h1>
<p class="oz-text-body-lg">Preamble…</p>
<h2 class="oz-text-heading-sm">…</h2>
<p>Body…</p>
</article>
<section class="card">
<h3 class="oz-text-heading-xs">…</h3>
</section>Lab · OzzyOS
How type works
The opening paragraph, a little larger.
A section heading
Body text at 16px.
A card title (h3, heading-xs)
The scale
The base layer is a size scale from 60px down to 12px, in rem so text follows the browser's font-size setting. It uses a gentle ratio of about 1.2, rounded to whole pixels, with 60px added for hero headlines.
The semantic layer picks from it, just as the colour tokens do: 13 text styles named by size and role. Each sets the family, size, weight, line height, letter spacing and case together, so a style can't be half applied.
Display and heading sizes are fluid. On a phone, display-lg is 40px; on a wide screen it's 60px; in between it scales smoothly with the screen width. Headlines still fit in two or three lines on a phone, without separate breakpoints. Body text stays the same size everywhere. Drag the slider to see it.
display-lgManrope 800 · 40 → 60px · 1.05 · −2%Hero headline, one per pagedisplay-mdManrope 800 · 36 → 48px · 1.1 · −2%Section openers, marketingheading-lgManrope 800 · 30 → 36px · 1.15 · −1.5%Page titleheading-mdManrope 700 · 24 → 30px · 1.2 · −1%Section headingheading-smManrope 700 · 20 → 24px · 1.25Sub-section, card titleheading-xsManrope 700 · 18px · 1.3Small heading, group labelbody-lgInter 400 · 18px · 1.6Preamblebody-mdInter 400 · 16px · 1.5UI text and article bodybody-smInter 400 · 14px · 1.45Helper text, captionslabel-mdInter 600 · 14px · 1.2Buttons, field labelslabel-smInter 500 · 12px · 1.2 · +1%Badges, table headersoverlineInter 600 · 12px · 1.2 · +6%Eyebrows, section markerscodeJetBrains Mono 400 · 0.9em · 1.50.9× the text around itThree decisions
The page title is as heavy as the display styles. heading-lg uses Manrope 800, the same weight as the display styles, while the smaller headings drop to 700. A page title should feel like part of the same voice as the hero, and 800 gets too heavy at 24px and below.
Small labels are Inter, not mono. I tried uppercase JetBrains Mono for eyebrows and section labels. It looked technical and fitting for a design system's documentation, but it would push that technical feel into every product built on OzzyOS. Inter 600 in uppercase with a little extra letter spacing reads as a label without the spec-sheet look.
Articles are 16px. I proposed 18px for blog posts. In the end, article body text uses body-md at 16px, the same as the interface, and body-lg at 18px is kept for the preamble: the first paragraph of an article, set apart from the body. One reading size across the system is simpler, and the preamble gets a job of its own.
Checked by the build
Like the contrast checks for colour, the type rules are tests, so a brand or a future change can't quietly break them:
- No style is smaller than 12px, and only short uppercase labels and badges use 12px.
- 14px is for helper text and labels only.
- Running text is at least 16px with a line height of at least 1.5.
- Fluid sizes stay in rem, so they still respond to the browser's text size.
One surprise
When I added a Typography page to Storybook, every sample rendered in Storybook's own font. The OzzyOS styles sit in CSS cascade layers, and any CSS outside a layer wins, however specific it is. That's deliberate: it lets an app override OzzyOS without fighting specificity. But it means documentation tools, and any app's global styles, can override the type unless they're kept apart. Storybook has an Unstyled block for this, and it's a note for when OzzyOS goes into UXScore.
Next
The type tokens join the colour tokens in Figma as variables and text styles, generated from the same source, so design and code stay in step. The tokens and the Storybook page are in the public repo, bryoz/ozzyos.