Spacing and sizes

The 4px grid and every fixed size. Generated from phase-2/kit/tokens.css (kit v3); the full page is docs › Foundations.

4px grid

Every gap, padding and margin is a step on this scale.

Write var(--s-4), never 16px. A negative step is calc(var(--s-4) * -1). Tailwind's default spacing is also a 4px grid, so p-4 equals --s-4; the token is the source.

TokenValueScaleDirect refs
--s-000
--s-14px64
--s-28px64
--s-312px64
--s-416px64
--s-520px64
--s-624px64
--s-728px0
--s-832px64
--s-1040px33
--s-1248px43
--s-1664px63
--s-1872px0

Control and row sizes

Fixed heights for controls, rows and chips, desktop and phone.

TokenValueUseDirect refs
--control-h40pxbutton, input, select (desktop)30
--control-h-sm34pxsmall button, row actions64
--control-h-m44pxphone minimum tap target53
--control-h-m-lg48pxphone primary / sheet buttons64
--row44pxtable row42
--row-th36pxtable header0
--row-compact36pxcompact table density (raised by data-table)0
--control-h-xs28pxinline buttons inside photo slots, compact pills (raised by form-controls)9
--chip-h22pxstatus chip height0
--chip-h-lg26pxheader-size chip (raised by status-feedback)0
--tab-h40pxpage / section tab strip (.tabs)0
--tab-h-m44pxphone tab strip, thumb height0
--kv-label120pxkey/value aside label column (.k-kv)0
--kv-label-m104pxphone key/value label column (.k-kv)0
--li-min-h72pxphone list row without a thumbnail (.k-li)0
--control-h-xs
--control-h-sm
--control-h
--control-h-m
--control-h-m-lg
Available--chip-h
Available--chip-h-lg
Uses--control-h-xs--control-h-sm--control-h--control-h-m--control-h-m-lg--chip-h--chip-h-lg