ByteEditor Website Builder

Wiki menu

Customize Colors

⚠ Note

In ByteEditor 17, the colours of a design are theme tokens. You edit them as JSON on the design's “Theme” tab, and they apply to the whole site once you save and publish the design.

Step 1. Open the Design Builder

Click Design Builder in the Content section. It shows your designs as cards. The site uses the one marked Default Design; to switch to another design, click Set as Default Design on its card. A single page can also use a different design through its “Special design for the page” setting.

Design Builder v17 - designs

Step 2. Open the Theme tab

Click the design you want to change, then open the Theme tab. It holds the design's theme as JSON:

{
  "tokens": {
    "color.content.background": "#ffffff",
    "color.content.primary": "#222221",
    "color.button.fill": "#2986cc"
  },
  "variants": {
    "inverse": {
      "color.content.background": "#000000",
      "color.content.primary": "#ffffff"
    }
  }
}

“tokens” holds the base values used across the site. “variants” holds the colour overrides for the theme variants that blocks can pick (see Theme variants below).

Design Builder v17 - Theme tab

Step 3. Change a colour

Find the token and change its value. For example, to change the fill of the main buttons, set “color.button.fill” to a new colour. Colours are hex values: #rrggbb, or #rrggbbaa with transparency. A token that isn't in the JSON uses its default value (see the tables below).

💡 An invalid value (for example, a colour name such as “red”) or a misspelled token key doesn't break the site: it is ignored and the default is used instead. If a change has no effect, check the key and the value.

Step 4. Save and publish

Click Save and publish. The site's styles are regenerated automatically.

Colour tokens

Content

TokenWhat it coloursDefault
color.content.backgroundPage and section background#ffffff
color.content.h1 … color.content.h6Headings 1–6#000000
color.content.primaryMain text#000000
color.content.secondarySecondary text#000000
color.content.borderBorders and dividers#5b5b5b
color.content.linkLinks#74e5a1
color.content.link-hoverLinks on hover#7cb19d

Button

TokenWhat it coloursDefault
color.button.fillButton background#74e5a1
color.button.fill-hoverButton background on hover#1b646a
color.button.strokeButton border#74e5a1
color.button.stroke-hoverButton border on hover#1b646a
color.button.textButton text#ffffff
color.button.text-hoverButton text on hover#ffffff

Button Secondary (outline button)

TokenWhat it coloursDefault
color.button-secondary.fill-hoverButton background on hover#ffffff
color.button-secondary.strokeButton border#74e5a1
color.button-secondary.stroke-hoverButton border on hover#1b646a
color.button-secondary.textButton text#74e5a1
color.button-secondary.text-hoverButton text on hover#1b646a

Header

TokenWhat it coloursDefault
color.header.backgroundHeader background#ffffff
color.header.dropdown-backgroundDropdown menu background#ffffff
color.header.dropdown-background-hoverDropdown menu item on hover#f8f9fa
color.header.linkMenu links#000000
color.header.link-hoverMenu links on hover#7cb19d
color.header.borderHeader border#000000

Footer

TokenWhat it coloursDefault
color.footer.backgroundFooter background#000000
color.footer.linkFooter links#ffffff
color.footer.link-hoverFooter links on hover#7cb19d
color.footer.titleFooter column titles#ffffff
color.footer.copyright-messageCopyright message#ffffff

Card Hover

Hover colours of cards with a link, used when the card doesn't pick a hover variant of its own.

TokenWhat it coloursDefault
color.card-hover.backgroundCard background on hover#ffffff
color.card-hover.textCard text on hover#000000
color.card-hover.borderCard border on hover#5b5b5b
color.card-hover.linkCard links on hover#74e5a1
color.card-hover.link-hoverCard links on hover, when hovered themselves#7cb19d

Theme variants

Variants let a block use a different colour scheme, for example a dark section on a light page. A design can define up to nine variants: “inverse”, “accent”, “muted” and “style-4” to “style-9”. A variant can only override the Content, Button and Button Secondary colours; any colour it doesn't override comes from the surrounding section (normally the base tokens). Blocks pick a variant in their “Theme Variant” field, which only offers the variants your design defines (see Add Individual Styling for Blocks and Elements).

Built with ByteEditor