Skip to content
Playground

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.

Heading h1Build with clarity.32 / 36
Heading h2Build with clarity.28 / 32
Heading h3Build with clarity.24 / 28
Heading h4Build with clarity.20 / 24
Heading h5Build with clarity.16 / 20
Body large

Interfaces should remain readable under pressure.

16 / 24
Body medium

Interfaces should remain readable under pressure.

14 / 20
Body small

Interfaces should remain readable under pressure.

12 / 16
Emphasis24,86024 / 28
Codeconst status = “ready”;12 / 20

Values 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.

RoleFamilyScaleUse
HeadingSUSEh1–h7Page titles, section headings, and structural hierarchy
BodyAlbert Sansl, m, sInterface copy, labels, descriptions, and messages
EmphasisSUSEl, m, sMetrics and short high-signal values
CodeGeist MonoFixedCommands, 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.

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.

TSX
<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.

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 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:

TSX
<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.

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.

Text colors describe hierarchy and meaning:

  • default for primary content
  • subtle for supporting content
  • subtlest for low-priority metadata
  • feedback roles for danger, warning, success, and information
  • contrary for 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.

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.

Text applies the semantic roles while preserving polymorphism, native attributes, refs, alignment, color, truncation, and line clamping.

TSX
<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.