Colours
The screen Content → Nova → Variables → Colours sets the colours of a skin. A skin opened from the List of skins opens on this screen. The screen works as described on How a Variables screen works.
Inherited values and Base
Section titled “Inherited values and Base”Every field takes its value from the parent skin while the skin does not set it. Every skin ultimately inherits from Base:
- for the Storefront’s colours and Second background, Base is the theme configuration, so a skin that sets nothing shows the colours of the theme,
- for Nova’s own colours, Base is Nova’s value given in the tables below.
The Storefront’s colours and Second background are own colours without transparency. Nova’s own colours may also follow another colour of the skin: the row then shows the name of that colour (“Follows the colour ‘source’: it changes with it”), and the link can be detached so that the current value stays as an own colour.
Theme colours
Section titled “Theme colours”| Field | Purpose | Nova’s value |
|---|---|---|
| Primary colour | The brand colour: primary buttons, links of the core’s templates. | theme configuration |
| Accent | What calls for attention besides the primary colour. | the primary colour |
| Counters | “The numbers on the header’s icons, on the comparison’s button and in the filters.” Their number turns white or black by contrast. | the accent |
| Keyboard focus | “The outline of whatever a customer reaches with the Tab key. It needs a contrast of at least 3:1 with the background.” | the primary colour |
| Keyboard focus on images | “The same outline where it stands on a picture or a dark background.” | #ffffff |
| Secondary colour | Secondary buttons. | theme configuration |
| Border | The frames of fields and buttons. | theme configuration |
| Dividing lines | “Lines that only separate: tables, sections, drawers. The frames of fields and buttons take the border colour.” | #e3e8ed |
| Background | The page’s background. | theme configuration |
| Second background | The second surface: a band, an empty image slot, a tile without an image. | Nova’s theme configuration |
| Muted surface | “Filter chips, an empty image, the track of a progress bar.” | #eef1f4 |
| Backdrop | “The veil behind drawers, the quick add and popups.” The blur of the page under the veil is set in Content → Nova → Extras → Panels, section Veil, field Blur of the page under it; the row links there under “Set together with:”. | #1c2a3773 (semi-transparent) |
Under Primary colour there are two aids:
- Quick pick: six colours to choose with one click: Storefront (Base)
#0068f0, Green#0f5c4d, Rust#b4441c, Violet#6b3fa0, Graphite#1c2a37, Amber#f59e0b, - the contrast of the text the shop puts on the primary colour: white on a dark primary colour, black on a light one, as on the buttons. The line names the text it measures: “White text on the primary colour: ratio:1 — enough for body text” or “Black text on the primary colour: …”, and ”— too low for body text (4.5:1 needed)” when the contrast falls short.
The colours of the buy button are not set here; they belong to the variant Buy button on the screen Buttons.
Status colours
Section titled “Status colours”| Field | Purpose | Nova’s value |
|---|---|---|
| Success | The status colour of success; Nova’s value of the badge Status: completed of the account’s orders is white text on it. | theme configuration |
| Information | The status colour of information; Nova’s value of the badge Status: open, in progress is white text on it. | theme configuration |
| Warning | Warnings as dots and grounds. | theme configuration |
| Warning text | “‘Only 3 left’ and other warnings written as text. It needs a contrast of at least 4.5:1 with the background; set it where the warning colour is light, which stays for dots and grounds.” | #9a4d00 |
| Error | A field in error (border, message, asterisk); Nova’s value of the badge Status: cancelled, failed is white text on it. | theme configuration |
Typography
Section titled “Typography”| Field | Purpose | Nova’s value |
|---|---|---|
| Text | The body text. | theme configuration |
| Secondary text | “Tax line, product number, old price, breadcrumbs. It needs a contrast of at least 4.5:1 with the background.” | #5f6b78 |
| Headings | The colour of headings. | theme configuration |
E-commerce
Section titled “E-commerce”| Field | Purpose | Nova’s value |
|---|---|---|
| Price | The colour of prices. | theme configuration |
| Rating stars | “It needs a contrast of at least 3:1 with the background.” | #b7791f |
The preview
Section titled “The preview”In the mode Samples, the preview shows every colour of the screen as a swatch, grouped as in the column, with its value. For the colours the shop places directly on the page background, the swatch also shows the contrast against Background and marks a value below the minimum: 4.5:1 for Text, Headings, Secondary text, Price and Warning text; 3:1 for Primary colour, Keyboard focus and Rating stars.
Under the swatches, the part In the shop shows the colours together: a heading, text with a link, a line in the secondary text colour, the buttons “Add to cart”, “Save for later” and “Focused from the keyboard”, a field and a product card of the chosen sales channel. Without a suitable product in the channel, the part shows no card.