Skip to content

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.

FieldValuesNova’s value
Container widthper device, 320–2560 px or 50–100 %1400 px
Column gapper device, 0–80 px24 px
Side marginper device, 0–80 px16 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.”

FieldValuesNova’s value
Base unit2–8 px4 px
Gap between sectionsper device, 0–160 px32 px; 24 px from the tablet down
Gap between Shopping Experiences sectionsper device, 0–160 px0 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.”

FieldValuesNova’s value
Height S — toolbar, card buttons32–72 px40 px
Height M — buttons, form fields, sizes32–72 px44 px
Height L — ‘Add to shopping cart’, quantity32–72 px52 px
Icons S — in buttons and fields12–32 px16 px
Icons M — card actions12–32 px20 px
Icons L — header12–32 px24 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.”

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.