Skip to content

Breakpoints

The screen Content → Nova → Variables → Breakpoints sets the screen widths at which the layout of the shop changes. The screen works as described on How a Variables screen works.

FieldNova’s valueHelp
sm576 px
md768 px“Below this width the phone’s values and layouts apply, Nova’s and the Storefront’s.”
lg992 px
xl1200 px“Below this width the tablet’s values and layouts apply.”
xxl1400 px

Each field takes 240–3840 px. With Nova’s values the devices of the editor cover these ranges: Phone below md, Tablet from md to below xl, Desktop from xl up.

Every field carries After publishing: the breakpoints reach the shop’s styles when the theme is compiled after the skin is published. The live preview does not show a changed breakpoint; the preview with samples shows it on the basis of the draft, and Full preview shows the shop with it.

Each breakpoint has to be at least 64 px above the one before. Otherwise the screen warns: “name (value px) must be at least 64 px above previous (previousValue px). Until it is, the shop keeps Nova’s breakpoints and the draft cannot be published.”

The publication checks the draft against this rule, for the skin itself and for the skins that inherit its breakpoints. A skin that sets no breakpoint of its own, neither in the draft nor in its published values, is not checked.

The group Preview holds the switch Show the values per device in the fields. It is a setting of the editor in this browser, not of the skin, and is switched on by default.

  • On: a field with a value per device shows the buttons of the devices beside its label, on every screen of the editor.
  • Off: such a field edits the value of the device the preview shows, marked by the device’s icon.

In the mode Samples, the preview shows Window widths and the devices’ ranges as a ruler, the Devices with the width each is previewed at and the container’s width and side margin there, and the note “Breakpoints reach the shop’s queries when the theme compiles: the stage draws them from the draft, ‘Full preview’ shows the shop with them.” While the breakpoints do not meet the rule, the preview states: “These breakpoints do not rise by at least 64 px each: the shop keeps Nova’s set until they do.”