Foundations / Spacing

Foundations

Spacing

Space, shape, elevation and motion tokens. Component rules write their paddings as literal px; these tokens are for your own layout glue.

Gaps

gap-inline between controls in a row, gap-card between cards, gap-control above a control row, gap-section between sections.

--gap-card16px

16px between cards in a grid. Not used inside bundle.css — it is for your own layout glue.

--gap-section32px

32px between page sections. Not used inside bundle.css — it is for your own layout glue.

--gap-inline8px

8px between controls in a row; used by .filters. The default gap for your own inline glue.

--gap-control18px

18px above a control row (.filters margin-top).

Scale

The sp-2 … sp-80 steps.

--sp-22px
--sp-44px
--sp-66px
--sp-88px
--sp-1212px
--sp-1616px
--sp-2020px
--sp-2424px
--sp-3232px
--sp-4040px
--sp-5656px
--sp-8080px

Layout constants

Designed at a desktop width of 1280px.

TokenValueUsage
--ring-w3px3px focus-halo width. Not referenced — the width is baked into the ring shadow value.
--ring-clear6px6px of clearance kept around a focus halo. Not referenced by any rule.
--sidebar-w248pxSidebar width: .sidebar{width} and the matching .main{padding-left}.
--sidebar-w-min64pxCollapsed rail width; body[data-rail] re-points --sidebar-w at it.
--topbar-h64px.topbar height, and the top offset of .notif on narrow screens.
--content-max1400pxmax-width of .work, the main content column.
--page-x32pxHorizontal page gutter: .topbar, .work, .work__top, .listpane, .toasts.
--row-h56pxIntended list-row height. .listrow hardcodes height:56px instead — use the token in new rows.
--rail-w346pxRight-hand rail width. Declared, not referenced by any rule.
--charts-h250pxChart block height. Declared, not referenced by any rule.
--recent-h434pxRecent-list height. Declared, not referenced by any rule.
--sidebar-w-collapsed64pxDuplicate of sidebar-w-min; nothing reads it — prefer sidebar-w-min.
--cut-r16pxCut-corner radius. Declared, not referenced by any rule.
--tip-w352pxIntended tooltip width; the tooltip caps itself at 240px, so nothing reads this.

Radius

An element with a coloured edge bar has no radius on that side.

--r-xs6px

6px — .legend__row, .skel.

--r-sm10px

10px — .menu__opt, .nav-item, .tl__tile, tooltips, the rail hover label, .rangebtn.

--r-md12px

12px — .listrow, .notice, .input, .msg__w, .railbtn, .toast, .nrow, .urow, .prow.

--r-lg18px

18px — cards and panels: .card, .panel, .menu, .taskrow, .taskrows.

--r-xl24px

24px — large overlays: .cmodal, .dlg, .drawer, .notif, .hero.

--r-pill999px

999px — fully round: .btn, .iconbtn, .badge, .score, .tag, .search__in, .pg, .finder.

Elevation

A resting card gets el-rest and nothing more — resting cards do not lift on hover.

--el-rest

The resting card shadow — .card only. Resting cards carry this and never lift on hover.

--el-popover

Floating layer: .menu, tooltips, .toast, .notif, the rail label, the mobile .sidebar.

--el-modal

Deep modal shadow: .cmodal, .dlg, .drawer.

--el-drag

Shadow for a dragged element. Declared, not referenced by any rule.

--ring

The violet focus halo on text controls: .input:focus, .search__in:focus, .finder:focus-within.

--ring-danger

Red counterpart of ring for an invalid field. Declared, not referenced by any rule.

--scrim-blur

Blur behind the scrim of dialogs, drawers and the compose modal (backdrop-filter). 0px turns the frosted glass off.

Motion

dur-hover for hover and colour, dur-state for panes and overlays, on ease-ui by default and ease-out for a surface that enters or slides. Hover a row to play it.

--dur-hover180ms

180ms — the default hover and colour transition, and the most-used motion token.

--dur-state340ms

340ms — larger state changes: the split pane opening, modal, scrim, toast, drawer.

--dur-enter620ms

620ms for content entering. Declared, not referenced by any rule.

--ease-uicubic-bezier(.22,.61,.36,1)

The default UI curve, paired with the duration tokens in every transition.

--ease-outcubic-bezier(.22,.61,.2,1)

Curve for surfaces that enter or slide: .detail__in, .profpane__in, .sidebar, .drawer.