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

Icons & buttons

Valid icon names, prefixIcon patterns, semantic colors, and button variants.
Updated 19d ago
Spacing & rhythm
Reveal & motion
5 min · Foundation
Icons in Once UI use a fixed catalog of names — never invent them. Pair icons with semantic color tokens and the right button variant.

Icon basics

Prop
Values
Notes
`name``IconName` from spec**Must exist in the catalog** — no invented names
`onBackground``{scheme}-{weight}`Same token system as Text and layout
`size``xs` `s` `m` `l` `xl`Default `m` — omit when default

Valid icon names only

The #1 codegen mistake is inventing icon names like arrowRight, bell, or more. Every name must match IconName in spec.json.
✅ Real names
❌ Invented
`chevronRight``arrowRight`
`notification``bell`
`moreHorizontal``more`
`check``checkmark`
When unsure, search the catalog or load ai/components/Icon.json from the harness.

Icon on buttons

Use prefixIcon and suffixIcon on Button — don't nest a raw <Icon> unless you need custom layout: IconButton is for icon-only controls — always set aria-label.

Color semantics

Match icon color to meaning:
Meaning
Token
Success / done`onBackground="success-medium"`
Error / destructive`onBackground="danger-medium"`
Warning`onBackground="warning-medium"`
Brand accent`onBackground="brand-medium"`
Muted / decorative`onBackground="neutral-weak"`
Never use hex colors on icons.

Button variants

Variant
Use
`primary` (default)Main CTA — one per section
`secondary`Alternative actions, cancel
`tertiary`Low-emphasis actions
`danger`Destructive commits
Omit variant="primary" — it's the default. Writing it adds noise for humans and agents alike.

Write this / not this

✅ Once UI way
❌ Common mistake
`prefixIcon="check"``<Icon name="check" />` inside Button children
`chevronRight``arrowRight`
`onBackground="brand-medium"``color="#3B82F6"`
`aria-label` on IconButtonIcon-only button with no label

Check yourself

  • Every name / prefixIcon / icon exists in spec.json
  • Icon-only buttons have aria-label
  • At most one primary button per action group

Related

→ Semantics over CSS → Common gotchas → Full reference: docs.once-ui.com — Icon
<Icon name="check" onBackground="success-medium" size="m" />
<Icon name="danger" onBackground="danger-medium" />
<Icon name="info" onBackground="brand-medium" />
<Button prefixIcon="plus">New project</Button>
<Button suffixIcon="chevronRight" variant="secondary">Learn more</Button>
<IconButton icon="settings" aria-label="Settings" />