Search Open Water Design
Spacing and grid.
Fourteen spacing steps, a grid for each screen size and two densities. Distance tells what belongs together.
In design Updated November 24, 2026
Fourteen steps
A base of 4, with two half steps for the smallest things, 2 and 6. Each step is named by what it measures: --cu-space-16 is 16 px.
| Steps | For |
|---|---|
| 2 · 4 · 6 · 8 | Inside a control: between an icon and its label, between a label and its box. |
| 12 · 16 · 20 · 24 | Inside a block: the padding of a card or a cell and the distance between its parts. |
| 32 · 40 · 48 | Between blocks: what separates one group from the next, and the page margin from the tablet up. |
| 64 · 80 · 96 | Between the sections of a screen. |
In design. Cuenca already measures with these steps; the grid, the breakpoints and the compact density in Ops come next to Flouvia’s pages.
How to use it
-
Only the steps
Margins and gaps take a step from the scale, never a value in between. A component’s own measures live in its tokens.
-
What belongs together, close
Distance tells what’s related: a label sits closer to its value than to the next group.
-
Padding follows the radius
Steps 4, 6 and 8 are the paddings of the concentric chain: what’s inside takes the outer radius minus the padding.
-
The touch target isn’t negotiable
What you see can be smaller; the area that answers a finger is 44 in the comfortable density.
Grid
Four, eight and twelve columns, with Flouvia’s margins: 24 on the phone and 40 from the tablet up.
| Class | From | Columns | Margin | Gutter | For |
|---|---|---|---|---|---|
compact | 0 | 4 | 24 | 16 | Phones. |
medium | 768 | 8 | 40 | 24 | Tablets and phones in landscape. |
expanded | 1024 | 12 | 40 | 24 | Tablets in landscape and laptops. |
large | 1512 | 12 | 40 | 32 | Desktop: a 1440 page that grows in proportion up to 2560. |
Breakpoints and containers
Three named breakpoints for the page. Components don’t look at the screen: they fit the space they’re given.
-
The page, by breakpoint
768, 1024 and 1512: where the page’s grid changes.
-
The component, by container
A card or a table fits the width of its container with
@container: it works the same in a narrow column as across the whole page. -
It grows in proportion
From 1512, the 1440 page grows with the screen up to 2560: it takes the same share of any monitor.
Density
Comfortable, for the site and the portal, and compact, for Ops, which takes type, rows and padding one step down.
| Comfortable | Compact | |
|---|---|---|
| For | The site and the portal; everything on touch. | Ops, with a fine pointer only. |
| Body | body, 17 / 25 | body, 15 / 22 |
| Table row | 52 | 36 |
| Cell padding | 16 | 12 |
| Controls | 44, medium | 32, small; 36 fields |
| Touch target | 44 | 24 at least |
-
A container asks for it
With
data-density="compact": everything inside steps down together. -
On touch, comfortable
Compact exists only with a fine pointer. On a phone or a tablet, everything goes back to comfortable.
Accessibility
-
Touch targets
44 px in the comfortable density. In compact, 24 at least, the WCAG 2.5.8 floor, and only with a fine pointer.
-
No sideways scrolling
At 320 px wide, the content fits without horizontal scrolling (WCAG 1.4.10).
-
With zoom, another class
When the page is zoomed in, the grid changes class as if the screen were smaller.
-
Focus fits
The ring sits 2 px outside its control: the space between controls lets it show in full.
In a client theme
Spacing, grid and density don’t belong to the theme: they’re the same in every project, light or dark.
-
Stays
The fourteen steps, the grid, the breakpoints and both densities.
-
Chooses
Each container’s density: comfortable by default, compact where people work with data.
In code
Spacing is --cu-space-2 to --cu-space-96; the grid, --cu-grid-columns, -margin and -gutter, which change at each breakpoint; density, --cu-row-height, --cu-cell-padding and --cu-touch-target. The same source writes TypeScript, SwiftUI, Jetpack Compose and the variables for Figma.
Figma is a trademark of its owner; its logo appears only to show compatibility and does not imply endorsement.
Changes
- Spacing and grid · System
New guide, in design: the fourteen steps, the 4, 8 and 12 column grid, the breakpoints and density.