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
Design Tips

Color & surfaces

Color schemes, the static panel recipe, and when to use Card.
Updated 19d ago
Harness overview
6 min · Beginner · Foundations
Static panels use Column + surface props. Card is for interactive surfaces only.

Color schemes

Colors follow {scheme}-{weight} or {scheme}-alpha-{weight}:
Scheme
Use for
`neutral`Text, borders, subtle backgrounds
`brand`Primary accent, CTAs, highlights
`accent`Secondary accent (sparingly)
`danger` / `warning` / `success` / `info`Status and feedback
Weights: weak, medium, strong. Alpha variants (brand-alpha-medium) are for overlays and glows. Background shortcuts: surface, overlay, page, transparent.

The static panel recipe

For pricing tiers, stats, settings sections — anything not clickable: This is the workhorse pattern. Memorize it.

Card is interactive only

Card is for surfaces with href or onClick — clickable tiles, links, selectable items.
Surface type
Component
Static panel`Column` + surface recipe
Clickable tile`Card href="..."` or `Card onClick`
Button action`Button`
Using Card for a non-interactive box is one of the most common Once UI mistakes.

Text on colored backgrounds

Use onBackground to set text color relative to the parent:

Write this / not this

✅ Once UI way
❌ Common mistake
`background="surface"``background: "#f5f5f5"`
`border="neutral-alpha-weak"``border: 1px solid #e5e5e5`
`Column` + surface props`<Card>` for static content
`onBackground="neutral-weak"`Hardcoded text color

Decoration colors

For glows and gradients, prefer alpha tokens:
  • brand-alpha-medium — glows, ambient layers
  • neutral-alpha-weak — dot textures, subtle overlays
Never mix multiple accent families in decoration on one page.

Check yourself

  • Static panels use the surface recipe on Column
  • Card only appears with href or onClick
  • No hex/rgb colors anywhere

Next step

→ Typography scale
<Column
  background="surface"
  border="neutral-alpha-weak"
  radius="l"
  padding="24"
  gap="16"
  fill
>
  <Heading variant="heading-strong-m">Panel title</Heading>
  <Text variant="body-default-s" onBackground="neutral-weak">
    Panel body
  </Text>
</Column>
<Column background="brand-medium" padding="24" radius="l">
  <Text variant="body-default-m" onBackground="brand-weak">
    Light text on brand background
  </Text>
</Column>