Typography
A restrained type hierarchy for dense product interfaces.
Zenos uses a compact semantic type system for product interfaces. Each role combines a family, size, line height, and weight so hierarchy remains consistent across controls, forms, dashboards, and long-form content.
The default stacks use SUSE, Albert Sans, and Geist Mono. Consumers load the font files or override the family tokens; Zenos defines how each family is used.
Type scale
Section titled “Type scale”32 / 3628 / 3224 / 2820 / 2416 / 20Interfaces should remain readable under pressure.
16 / 24Interfaces should remain readable under pressure.
14 / 20Interfaces should remain readable under pressure.
12 / 1624 / 28const status = “ready”;12 / 20Values are shown as font size / line height in pixels. The complete heading scale continues through h6 and h7 for dense labels and deeply nested sections.
| Role | Family | Scale | Use |
|---|---|---|---|
| Heading | SUSE | h1–h7 | Page titles, section headings, and structural hierarchy |
| Body | Albert Sans | l, m, s | Interface copy, labels, descriptions, and messages |
| Emphasis | SUSE | l, m, s | Metrics and short high-signal values |
| Code | Geist Mono | Fixed | Commands, identifiers, shortcuts, and technical values |
Choose a role by meaning before choosing a size. A metric and a heading can have similar dimensions while serving different reading patterns.
Heading hierarchy
Section titled “Heading hierarchy”Headings establish the document outline. Keep levels sequential and use CSS or Text sizing when the visual scale needs to differ from the semantic element.
<Text type="heading" size="h2"> Asset inventory</Text>h7 is a visual role rendered as a paragraph by default because HTML only defines six heading levels. Use as when another semantic element is required.
Body copy
Section titled “Body copy”Use medium body text for most product UI. Large body text suits introductions and comfortable reading; small body text is reserved for supporting metadata where space is constrained.
Body text supports regular, medium, and bold weights. Prefer weight and spacing for hierarchy before reducing contrast. Long descriptions, errors, and instructions must be allowed to wrap.
Emphasis and metrics
Section titled “Emphasis and metrics”Emphasis styles are designed for concise values such as totals, percentages, or status counts. They use the heading family without becoming part of the page outline.
Use tabular numerals when values update in place or align in a column:
<Text type="emphasis" size="l" className="tabular-nums"> 24,860</Text>Do not use emphasis for long sentences. Its tighter rhythm is intended for short, scannable information.
Code and technical content
Section titled “Code and technical content”The code role uses Geist Mono with a slashed zero and disabled contextual alternates. Use it for machine-readable values, commands, keyboard input, and identifiers. Explanatory prose should remain body text.
Color and contrast
Section titled “Color and contrast”Text colors describe hierarchy and meaning:
defaultfor primary contentsubtlefor supporting contentsubtlestfor low-priority metadata- feedback roles for danger, warning, success, and information
contraryfor content on strong inverse surfaces
Color does not replace labels or status text. Ensure every role remains legible against its actual surface in light and dark themes.
Line length and wrapping
Section titled “Line length and wrapping”Keep prose near 45–75 characters per line. Product labels may be shorter, but essential text should not be truncated simply to preserve a fixed-height layout.
Use truncate only when the full value remains available elsewhere. Use maxLines for bounded previews, and test both with long unbroken values, increased browser zoom, and translated content.
Using Text
Section titled “Using Text”Text applies the semantic roles while preserving polymorphism, native attributes, refs, alignment, color, truncation, and line clamping.
<Text type="heading" size="h3" as="h2"> Recent activity</Text> <Text size="m" color="subtle"> Updated five minutes ago</Text> <Text type="code" as="span"> scan_01J8M2</Text>Native headings and paragraphs remain appropriate when a Zenos-specific visual role is unnecessary. Typography should reinforce semantics rather than replace them.