Bookmark Streamline Icon: https://streamlinehq.com
Chapter 3
Circle Clock Streamline Icon: https://streamlinehq.com
5 Minutes
Feedback

Colour

Themes

Themes offers a powerful way to manage subtle colour variations across your website projects. By grouping colours into themes, you gain granular control over the appearance of elements and text against various backgrounds, enhancing design precision and efficiency.

Class
Placement
Theme--base
Body, Sections, Component Wrappers
Theme--1
Body, Sections, Component Wrappers
Theme--2
Body, Sections, Component Wrappers
Theme--3
Body, Sections, Component Wrappers
Theme--4
Body, Sections, Component Wrappers
Colour Variables

The colour values for each theme can be accessed and edited using the CSS variables panel in Webflow. In our free clonable starter template these names have been categorised into popular use cases to allow a high level of flexibility and control.

FAQs
What are the benefits of this approach?
Is it possible to nest themes?
Can we switch themes depending on breakpoint?
Does this used custom code?
Text Colours

Once a theme value has been applied to the body or parent wrapper we can "paint" our page elements using the following class names. It's recommended to add these classes to the parent div and not directly to the text element itself (This method avoids duplicate classes when copy pasting).

Class
Colour Value
Placement
Text Colour-A
Highest contrast ratio
Parent Div
Text Colour-B
2nd highest contrast ratio
Parent Div
Text Colour-C
3rd highest contrast ratio
Parent Div
Text Colour-D
4th highest contrast ratio
Parent Div
Text Colour-E
5th highest contrast ratio
Parent Div
Text Colour-F
6th highest contrast ratio
Parent Div
Text Colour Accent-A
Primary Accent Colour
Parent Div
Text Colour Accent-B
Secondary Accent Colour
Parent Div
FAQs
How do I change text colours on different breakpoints?
Background Colours

Often during a website build one background colour is not enough. It important to have multiple backgrounds (Themes) as well as tints and shades that live inside each theme. We can use these colours on elements such as sidebars, cards, buttons and more.

Class
Colour Value
Placement
Background Colour-A
Primary Surface Colour
Body, Sections, Component Wrappers
Background Colour-B
1st Shade or Tint
Body, Sections, Component Wrappers
Background Colour-C
2nd Shade or Tint
Body, Sections, Component Wrappers
Background Colour-D
3rd Shade or Tint
Body, Sections, Component Wrappers
Background Colour-E
4th Shade or Tint
Body, Sections, Component Wrappers
Borders

We can recolour borders by stacking classes on top of components. These combo classes only declare the border hex colour and not the width. This means we need to define the border width on the component class that's being targeted.

Class
Colour Value
Placement
Border Colour-A
Lowest Contrast Ratio
Any div with a border width applied
Border Colour-B
2nd Lowest Contrast Ratio
Any div with a border width applied
Border Colour-C
3rd Lowest Contrast Ratio
Any div with a border width applied