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

Spacing & rhythm

Section gaps, inner gaps, and the spacing token scale.
Updated 19d ago
Row, Column & Grid
Icons & buttons
5 min · Beginner · Foundations
Once UI spacing is rhythmic: 104 between sections, 24–40 inside sections, and a fixed token scale everywhere else.

Section rhythm

The most important spacing rule in Once UI:
Context
Gap token
Notes
Between major sections`"104"`Hero → features → CTA
Inside a section`"24"`–`"40"`Heading → body → actions
Tight groups`"8"`–`"16"`Icon + label, form fields
Page vertical padding`paddingY="80"`Top/bottom breathing room
Never use "48" between major sections — it breaks the vertical rhythm.

Page example

The outer gap="104" handles section separation. Inner gap="24" or gap="32" handles content within each section.

Padding vs gap

  • gap — space between children in a flex/grid container
  • padding / paddingX / paddingY — space inside a container's border
  • marginTop / marginBottom — escape hatch; prefer gap on the parent

Responsive spacing

Spacing props accept the same breakpoint keys as layout:

Write this / not this

✅ Once UI way
❌ Common mistake
`gap="104"` between sections`marginBottom: 48`
`gap="24"` inside sectionsMixed arbitrary margins
`padding="24"` on panels`padding: 20`
`paddingY="80"` on page content`padding-top: 60px`

Check yourself

  • Major sections separated by gap="104" on the parent column
  • Inner content uses "24"–"40" gaps
  • All spacing values are from the token scale

Next step

→ Color & surfaces
<Column as="main" fillWidth horizontal="center">
  <Column maxWidth="l" paddingY="80" gap="104" fillWidth>
    {/* Section 1 */}
    <Column gap="24">...</Column>

    {/* Section 2 — 104px gap applied automatically */}
    <Column gap="32">...</Column>

    {/* Section 3 */}
    <Column gap="24">...</Column>
  </Column>
</Column>
<Column gap="24" s={{ gap: "16" }}>