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

Hero section

Hero composition — eyebrow, headline, actions, and optional ambient glow.
Updated 19d ago
Static panel
6 min · Pattern
Every marketing page starts with a hero: eyebrow, headline, description, and actions — optionally with a subtle ambient glow.

Anatomy

A Once UI hero has four layers:
  • Optional ambient glow — full-bleed Background outside maxWidth
  • Eyebrow — label-default-s in brand color
  • Headline — display-strong-l or display-strong-xl
  • Actions — Row of buttons, stacking on mobile

Basic hero (no decoration)

<Column fillWidth horizontal="center" paddingY="80">
  <Column maxWidth="m" gap="24" horizontal="center">
    <Text variant="label-default-s" onBackground="brand-medium" align="center">
      EYEBROW
    </Text>
    <Heading variant="display-strong-l" align="center">
      Build faster with Once UI
    </Heading>
    <Text variant="body-default-m" onBackground="neutral-weak" align="center">
      A semantic design system for humans and agents.
    </Text>
    <Row gap="16" horizontal="center" s={{ direction: "column" }}>
      <Button href="/start">Get started</Button>
      <Button variant="secondary" href="/docs">Documentation</Button>
    </Row>
  </Column>
</Column>

Hero with glow (optional)

Add one ambient layer on the full-bleed wrapper, not inside maxWidth:
<Column fillWidth horizontal="center" paddingY="80">
  <Background
    position="absolute" top="0" left="0" fill pointerEvents="none"
    gradient={{
      display: true,
      colorStart: "brand-alpha-medium",
      colorEnd: "static-transparent",
      x: 50, y: 0,
      width: 150, height: 80,
      opacity: 60,
    }}
    dots={{ display: true, color: "neutral-alpha-weak", size: "2", opacity: 40 }}
  />
  <Column zIndex={1} maxWidth="m" gap="24" horizontal="center">
    {/* hero content */}
  </Column>
</Column>

Typography hierarchy

Element
Variant
Eyebrow`label-default-s` + `onBackground="brand-medium"`
Headline`display-strong-l` (or `xl` for landing pages)
Description`body-default-m` + `onBackground="neutral-weak"`
Never use heading-* for the main hero title.

Decoration budget

  • ambient layer per hero section
One
  • Glow width: 100–200 (quarter-percent units; 400 = 100%)
  • Use brand-alpha-medium for glows — not brand-background-weak
  • Content always gets zIndex={1} above decoration
  • Write this / not this

    ✅ Once UI way
    ❌ Common mistake
    `display-strong-l` for headline`heading-strong-xl` for hero
    Glow outside `maxWidth` columnGlow clipped inside narrow container
    `pointerEvents="none"` on BackgroundClickable decoration blocking buttons
    One glow per heroMultiple competing gradient layers

    Check yourself

    • Eyebrow uses label-default-s
    • Headline uses display-strong-l or larger
    • Buttons stack on mobile via s={{ direction: "column" }}
    • At most one ambient decoration layer

    Related

    → Page skeleton → Decoration layers → Typography scale