Grid and spacing
The screen Content → Nova → Variables → Grid and spacing sets the grid of the page and the sizes the shop spaces and builds its controls by. The screen works as described on How a Variables screen works.
| Field | Values | Nova’s value |
|---|---|---|
| Container width | per device, 320–2560 px or 50–100 % | 1400 px |
| Column gap | per device, 0–80 px | 24 px |
| Side margin | per device, 0–80 px | 16 px |
The core’s containers and rows read these values. The column gap is also used when the theme is compiled, where the Storefront spaces stacked Shopping Experiences blocks by it.
A row extends by half the column gap on each side, into the side margin. If the side margin is smaller than half the column gap, the screen warns: “devices: the side margin (margin px) is smaller than half the column gap (half px), so rows reach past the edge of the screen.”
Spacing scale
Section titled “Spacing scale”| Field | Values | Nova’s value |
|---|---|---|
| Base unit | 2–8 px | 4 px |
| Gap between sections | per device, 0–160 px | 32 px; 24 px from the tablet down |
| Gap between Shopping Experiences sections | per device, 0–160 px | 0 px |
Base unit is the step of Nova’s spacing scale; it changes only Nova’s scale, not the spacing unit of the Storefront.
Gap between sections: “Between the rows of the pages Nova’s builders lay out, and between their sections.” The phone takes the tablet’s value unless it has its own.
Gap between Shopping Experiences sections: “0: the blocks set the spacing, as in Shopware.”
Controls
Section titled “Controls”| Field | Values | Nova’s value |
|---|---|---|
| Height S — toolbar, card buttons | 32–72 px | 40 px |
| Height M — buttons, form fields, sizes | 32–72 px | 44 px |
| Height L — ‘Add to shopping cart’, quantity | 32–72 px | 52 px |
| Icons S — in buttons and fields | 12–32 px | 16 px |
| Icons M — card actions | 12–32 px | 20 px |
| Icons L — header | 12–32 px | 24 px |
The three heights form one scale used by buttons, form fields, the quantity field and option tiles. The help of Height M — buttons, form fields, sizes reads: “44 px is a comfortable touch target; below 24 px a finger misses.”
The preview
Section titled “The preview”In the mode Samples, the preview shows three parts: Container and grid with the caption of the container width, the side margin and the column gap; Spacing steps and gaps between sections; and Heights of controls and sizes of icons. The device switch of the preview changes the device the values are shown for.