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

Decoration layers

Absolute Background layers, glow budget, and placement rules.
Updated 19d ago
Responsive stacking
Dialog & modal
6 min · Pattern
Decoration in Once UI is layered with absolute Background components — never fighting the content, always budgeted.

The absolute layer rule

Every decorative layer follows this template:
<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 }}
/>
Content sitting above it:
<Column zIndex={1} gap="24">
  {/* your content */}
</Column>
Three rules every layer must follow:
  • position="absolute" top="0" left="0" — or it misaligns inside padded parents
  • pointerEvents="none" — decoration never blocks clicks
  • Content sibling gets zIndex={1}

Placement

Put ambient layers on the section wrapper, outside any maxWidth column:
<Column fillWidth horizontal="center" paddingY="80">
  <Background position="absolute" top="0" left="0" fill pointerEvents="none" ... />
  <Column zIndex={1} maxWidth="l" gap="24">
    {/* content */}
  </Column>
</Column>
Clipping glow inside a narrow maxWidth container creates a hard-edged band.

Gradient units

Property
Unit
Example
`width` / `height`Quarter-percent (400 = 100%)Glows: 100–200
`x` / `y`Percent position`x: 50, y: 0` = top center
`opacity`0–100Typical: 40–60

Decoration budget (hard limits)

Rule
Limit
Ambient layers per section1
Continuous motion per page2 (hero + one CTA max)
Accent families in decoration1 (`brand-*` or `neutral-*`)
Sections with decorationAnchor sections only (hero, highlight, final CTA)
Plain sections stay plain — contrast makes decorated sections feel premium.

Glow colors

✅ Use
❌ Avoid
`brand-alpha-medium``brand-background-weak` (invisible on page)
`neutral-alpha-weak`Hex or rgb values
`static-transparent` as `colorEnd`Opaque gradient ends

Write this / not this

✅ Once UI way
❌ Common mistake
Glow on full-bleed wrapperGlow inside `maxWidth` column
`width: 150` for soft glow`width: 500` (blows past edges)
`top="0" left="0"` on every layerMissing position props
One ambient layer per sectionEvery section decorated

Check yourself

  • Every Background has top="0" left="0" fill pointerEvents="none"
  • Content has zIndex={1}
  • Glow width is 100–200
  • Only anchor sections are decorated

Related

→ Hero section → Highlighted card → Full recipes: docs.once-ui.com/ai/recipes.md