Skip to content

Content

Display

Large, fluid headline in Onest 800. Looks (size) and semantics (as) are separate.

  • Ready
  • No keyboard interaction
  • Screen reader not tested yet

Updated 2026-11-12

Playground

Change the props and the surface. The controls come from the documented props; the surfaces are the real modes.

Calm. Clear. Precise.

tsx
<Display>Calm. Clear. Precise.</Display>

Usage

When to use

Use Display for the page title and for hero moments: the one large headline that tells people where they are.

When not to use

  • For section headings: use Heading.
  • For long titles with long compound words in display-xl: they don't fit on a phone. Use display-lg.

How it works

Onest Extra Bold, fluid from phone to desktop with clamp(). as sets the semantics (usually h1), size sets the look. Display never hyphenates.

Content guidelines

Short and concrete: a few words that name the page or the claim. Exactly one h1 per page.

Do and don’t

  • Users

    DoIn an interface the page title is display-md; the controls keep their weight.

    Users

    Don’tdisplay-lg in an interface: the title shouts over the work.
Do
  • Pick as by the document outline and size by weight.
  • Use display-xl only for hero moments with short words.
Don’t
  • Don't skip a heading level because the look fits.
  • No long words in display-xl; on mobile they don't fit the line.

Anatomy

The parts of the component and what each one does, as in the playground above.
  1. labelOnest 800, tracking display, line-height 1, balanced wrapping.

Examples

Type-checked, and the same code goes into the AI manifest. Import: import { Display } from "@/ds";

xl as h2

Calm. Clear. Precise.

lg as h3

Plan vs. reflex

Props

Checked against the component's TypeScript type on every build.
Display props
NameTypeDefaultDescription
as"h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p""h2"Heading level that fits the document outline.
size"xl" | "lg" | "md""lg"xl for hero moments, lg for case and statement titles, md for page titles in interfaces and docs.
children (required)ReactNode–Headline text.

Tokens used

Derived from the utility classes in the component's source. Copy a class with one click.
Tokens used by Display
TokenTierValueUtility
display.colorcomponent#0A0A0B
display.trackingcomponent-0.035em
display.weightcomponent800
display.xl.trackingcomponent-0.05em
type.display-lg.sizesemanticclamp(40px, 6vw, 72px)
type.display-md.sizesemanticclamp(32px, 4vw, 48px)
type.display-xl.sizesemanticclamp(60px, 9vw, 132px)

Accessibility

What is checked automatically on every build, and what a person has tested. Nothing is marked as tested unless it was.
Testing status by check
CheckHowStatus
axe-core rulesAutomated on every npm run check, at desktop and mobile widthRuns on every build
KeyboardAutomated Playwright test (scripts/keyboard.mjs)Not applicable
Screen readerManualNot tested yet

Semantics and focus

  • Exactly one h1 per page.
  • Never hyphenates.