Vela UI Docsvenizia.ai

Getting started

Layout

The grid, breakpoints, spacing and stacking order every Vela UI screen is laid out on. All of them are variables, so screens in Figma and in code line up.

Grid

Desktop · 12 columns · margin 80 · gutter 20
Tablet · 10 columns · margin 48 · gutter 20
Mobile · 4 columns · margin 20 · gutter 20

Breakpoints

TokenMin width
bp/sm640px
bp/md768px
bp/lg1024px
bp/xl1280px
bp/2xl1536px

Spacing

Padding and gap share one scale. Pick a step from it instead of a raw number.

StepValue
gap/4xs2px
gap/3xs4px
gap/2xs6px
gap/xs8px
gap/sm12px
gap/md16px
gap/lg24px
gap/xl32px
gap/2xl40px
gap/3xl48px
gap/5xl64px
gap/6xl96px
gap/7xl128px
gap/8xl160px

Stacking order

TokenValueUsed by
z/base0Page content
z/dropdown1000Select, Combobox, menus
z/sticky1100Sticky headers and toolbars
z/overlay1300Scrims behind dialogs
z/modal1400Modal & Dialog, Side Panel
z/popover1500Popover, Date Picker
z/toast1700Toasts and alerts
z/tooltip1800Tooltip, always on top