Content
Display
Large, fluid headline in Onest 800. Looks (size) and semantics (as) are separate.
- Ready
- No keyboard interaction
- Screen reader not tested yet
Playground
Change the props and the surface. The controls come from the documented props; the surfaces are the real modes.
Calm. Clear. Precise.
<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. Usedisplay-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.
- 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.
| Name | Type | Default | Description |
|---|---|---|---|
| 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.
| Token | Tier | Value | Utility |
|---|---|---|---|
| display.color | component | #0A0A0B | |
| display.tracking | component | -0.035em | |
| display.weight | component | 800 | |
| display.xl.tracking | component | -0.05em | |
| type.display-lg.size | semantic | clamp(40px, 6vw, 72px) | |
| type.display-md.size | semantic | clamp(32px, 4vw, 48px) | |
| type.display-xl.size | semantic | clamp(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.
| Check | How | Status |
|---|---|---|
| axe-core rules | Automated on every npm run check, at desktop and mobile width | Runs on every build |
| Keyboard | Automated Playwright test (scripts/keyboard.mjs) | Not applicable |
| Screen reader | Manual | Not tested yet |
Semantics and focus
- Exactly one h1 per page.
- Never hyphenates.