Once UI Handbook
Beginner Guides
What is Once UI?
Install & config
Page skeleton
Your first page
Build And Launch
How to launch a portfolio site that actually gets you hired
How to build a documentation site with MDX and Next.js
How to ship a landing page and dashboard with authentication in Next.js
How to launch a social app with Next.js and Supabase
Vibe Coding
Introduction to vibe coding
Set up your local dev environment
Essential tools for vibe coding
Build your first Once UI app
Common Patterns
Hero section
Static panel
Form layout
Highlighted card
Responsive stacking
Decoration layers
Dialog & modal
Toast & feedback
Tables & lists
Loading states
App shell navigation
Dashboard & charts
Chat & messaging
Auth & verification
Settings & split panels
Data filters & toolbar
Command palette
Pricing & plans
Accordion & FAQ
Media & uploads
Empty & error states
SEO, Open Graph, and structured data
Documentation code blocks with live preview
Carousels, galleries, and before/after comparisons
Date pickers and scheduling
Context menus and dropdown actions
Tags, chips, and multi-value inputs
Roadmap & kanban
Form inputs & controls
Progress, status & badges
Scrolling & feeds
Profile, avatars & identity
Social proof & logo clouds
Masonry & media grids
Table pagination, search & bulk selection
Banners & announcements
Footer layouts
Onboarding & first run
Waitlist & coming soon
Design Tips
Color & surfaces
Harness overview
Row, Column & Grid
Spacing & rhythm
Icons & buttons
Reveal & motion
Theme tokens, FOUC-free init, and runtime style controls
Tooltips and hover cards
Block updates
Block updates changelog
Agent Resources
Column, not Flex
Semantics over CSS
Typography scale
Common gotchas
Block anchors
Validate generated code
Pro block registry
Match task bundles
TrademarkTrademark
Ctrl k
Search...
Sign up
Once UI Handbook
Beginner Guides
What is Once UI?
Install & config
Page skeleton
Your first page
Build And Launch
How to launch a portfolio site that actually gets you hired
How to build a documentation site with MDX and Next.js
How to ship a landing page and dashboard with authentication in Next.js
How to launch a social app with Next.js and Supabase
Vibe Coding
Introduction to vibe coding
Set up your local dev environment
Essential tools for vibe coding
Build your first Once UI app
Common Patterns
Hero section
Static panel
Form layout
Highlighted card
Responsive stacking
Decoration layers
Dialog & modal
Toast & feedback
Tables & lists
Loading states
App shell navigation
Dashboard & charts
Chat & messaging
Auth & verification
Settings & split panels
Data filters & toolbar
Command palette
Pricing & plans
Accordion & FAQ
Media & uploads
Empty & error states
SEO, Open Graph, and structured data
Documentation code blocks with live preview
Carousels, galleries, and before/after comparisons
Date pickers and scheduling
Context menus and dropdown actions
Tags, chips, and multi-value inputs
Roadmap & kanban
Form inputs & controls
Progress, status & badges
Scrolling & feeds
Profile, avatars & identity
Social proof & logo clouds
Masonry & media grids
Table pagination, search & bulk selection
Banners & announcements
Footer layouts
Onboarding & first run
Waitlist & coming soon
Design Tips
Color & surfaces
Harness overview
Row, Column & Grid
Spacing & rhythm
Icons & buttons
Reveal & motion
Theme tokens, FOUC-free init, and runtime style controls
Tooltips and hover cards
Block updates
Block updates changelog
Agent Resources
Column, not Flex
Semantics over CSS
Typography scale
Common gotchas
Block anchors
Validate generated code
Pro block registry
Match task bundles
TrademarkTrademark
Once UIDocumentationBlog
© Once UI. All rights reserved.
Built with Aveiro
Agent Resources

Typography scale

Display, heading, body, and label variants — and when to use each.
Updated 19d ago
Semantics over CSS
Common gotchas
5 min · Beginner · Foundations
Once UI typography is a scale of variants — display for heroes, heading for titles, body for prose, label for eyebrows.

The variant scale

Typography variants follow {type}-{weight}-{size}:
Type
Use for
Examples
`display`Heroes, page titles`display-strong-l`, `display-strong-xl`
`heading`Section titles, card headings`heading-strong-m`, `heading-strong-s`
`body`Paragraphs, descriptions`body-default-m`, `body-default-s`
`label`Eyebrows, captions, metadata`label-default-s`, `label-default-xs`
`code`Inline code, monospace`code-default-s`
Weights: default or strong. Sizes: xs, s, m, l, xl.

Hierarchy rules

Element
Variant
Hero headline`display-strong-l` or `display-strong-xl`
Section title`display-strong-xs` or `display-strong-s`
Card heading`heading-strong-m`
Body text`body-default-m` or `body-default-s`
Eyebrow / kicker`label-default-s` with `onBackground="brand-medium"`
Section titles use display-*, not heading-*. This is a common agent mistake.

Usage

On text components: On layout components (skip wrapping Text for simple cases):

Write this / not this

✅ Once UI way
❌ Common mistake
`display-strong-l` for hero`heading-strong-xl` for hero
`display-strong-s` for section title`heading-strong-l` for section title
`body-default-m` for paragraphsCustom font-size
`textVariant` on layoutNesting `Text` for every label

Check yourself

  • Hero uses display-strong-l or larger
  • Section titles use display-strong-xs or display-strong-s
  • Body text uses body-default-*
  • No custom font sizes outside the variant scale

Go deeper

→ Page skeleton pattern → Full reference: docs.once-ui.com/once-ui/basics/typography
<Heading variant="display-strong-l">Hero title</Heading>
<Text variant="body-default-m" onBackground="neutral-weak">
  Supporting paragraph.
</Text>
<Text variant="label-default-s" onBackground="brand-medium">
  EYEBROW TEXT
</Text>
<Column textVariant="label-default-s" onBackground="neutral-weak">
  Label text directly on the container
</Column>