How a Variables screen works
The section Content → Nova → Variables holds the design values of a skin: Logo, Colours, Typography, Grid and spacing, Radii and shadows and Breakpoints. Every screen of the section edits the skin chosen at the top of the screen, and every change goes into that skin’s draft. Saving the draft and publishing it are described on Skins and publishing.
Skin and sales channel
Section titled “Skin and sales channel”The top of the screen holds two pickers:
- Skin: the skin the screen edits. When the previewed channel has a skin but no channel layer yet, the list ends with Overrides for channel, which creates the layer.
- Sales channel: the channel the preview shows.
Without a skin, the screen shows “No skin selected. Create one on the Skins screen.”
The settings column
Section titled “The settings column”| Part | Content |
|---|---|
| Heading | The screen’s name and the number of its settings. |
| Search settings in all sections | A search over every field of every section, by its label or by the name of the variable it writes. A result shows where the field is located (section › screen) and leads there. |
| Legend | inherited from parent and overridden in skin: the two states of a field. |
| Warnings | What the screen checks in the values the previewed channel gets, above the groups. |
| Groups | The fields, grouped under headings. |
One field
Section titled “One field”A row shows the field’s label, the name of the variable it writes and the origin of its value:
- “from source”: the field inherits, from the parent skin or from Base,
- the name of the skin: the skin sets the value itself. For a value other than a colour, the row also shows Base’s value (“skin · Base: value”).
The chain button at the end of the row switches between the two states. Its tooltips read “Inherited — click to override in skin” and “Overridden — click to inherit from source again”. Overriding starts from the inherited value, so nothing changes until the value is edited. Without the permission to edit Nova, the chain shows a lock and the fields are read-only.
A changed row carries Not saved yet until the draft is saved.
A row marked After publishing takes effect in the shop only after the skin is published and the theme compiled again; the live preview does not show it.
If the channel layer of the previewed channel sets its own value for a field, the row states it: the preview and that channel’s shop show the layer’s value, whatever the skin sets. The note at the top offers Edit layer.
Values per device
Section titled “Values per device”Some fields hold a value per device: Desktop, Tablet and Phone. Such a row edits the value of the device the preview shows; an icon beside the label names it. With the device buttons switched on (Show the values per device in the fields on the screen Breakpoints), the row shows the device buttons instead.
A smaller device without a value of its own takes the value of the next larger device. With the device buttons switched on, the row then states it, for example “Phone: as Tablet (16px). Type to change.” The button As the larger device removes the device’s own value.
The preview
Section titled “The preview”The screens Colours, Typography, Grid and spacing, Radii and shadows and Breakpoints have a preview beside the settings column. The preview has two modes, switched in its toolbar and remembered in the browser:
- Samples: the screen’s samples shown with the draft’s values and the unsaved edits. “Click a sample to go to its setting”: a click scrolls the column to the field and marks it for a moment.
- Live shop: the shop of the chosen sales channel in a frame.
Live shop is available only when the sales channel has a domain on the same address as the admin. Otherwise the switch states the reason (“Not available: the sales channel has no domain to show.” or the two addresses), and Full preview opens the shop in a new tab with the draft and the unsaved changes.
The preview has a device switch only on screens with values per device. The screen Logo shows the live preview of the shop instead of samples.