Brand colors
An Envision theme uses one base brand color and one matching contrast color.
- Brand color is the primary color for the theme.
- Brand contrast color is the text/icon color used on top of the brand color.
- From the base brand color, Envision generates a palette of lighter and darker variants.
- Each palette color has a matching contrast color verified against WCAG 2 AA.
The default theme uses a neutral brand color.
Palette rules
The brand palette follows these rules:
--env-ui-color-brandis the base brand color.--env-ui-color-brand-{n}are generated variants of the base brand color.- The scale is ordered from lighter to darker variants in a normal theme.
- Each palette value has a matching contrast variable that meets WCAG 2 AA requirements.
In dark themes, where the font color is lighter than the section background color, the scale is reversed:
05is the darkest variant100is the lightest variant
Usage
Use the generated brand palette (CSS variables or utility classes) for components and UI states that should follow the active theme branding.
Typical branded usage includes:
- buttons
- badges
- dropdown triggers
- popovers
- progress indicators
- highlighted UI sections
Example branding of components
The following examples are visual demonstrations and do not define the color system.
Section heading
Subheading
Caption
Section heading
Example brand color palette
- Brand color
- Brand 05
- Brand 10
- Brand 15
- Brand 20
- Brand 25
- Brand 30
- Brand 35
- Brand 40
- Brand 45
- Brand 50
- Brand 55
- Brand 60
- Brand 65
- Brand 70
- Brand 75
- Brand 80
- Brand 85
- Brand 90
- Brand 95
- Brand 100
Default brand color palette
The default theme uses this neutral brand palette.
- Brand color
- Brand 05
- Brand 10
- Brand 15
- Brand 20
- Brand 25
- Brand 30
- Brand 35
- Brand 40
- Brand 45
- Brand 50
- Brand 55
- Brand 60
- Brand 65
- Brand 70
- Brand 75
- Brand 80
- Brand 85
- Brand 90
- Brand 95
- Brand 100
Brand color variables
The following CSS variables are available:
Base colors
-
--env-ui-color-brand
Primary brand color -
--env-ui-color-brand-contrast
Text/icon color used on top of the brand color -
--env-ui-color-brand-dark
A predefined darker variant of the brand color, separate from the numeric scale, typically used for hover and emphasis states
Generated palette
The brand palette is available as a numeric scale:
--env-ui-color-brand-{n}--env-ui-color-brand-{n}-contrast
Where {n} is one of:
05, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100
Each {n} value defines a color and its corresponding contrast color.
Notes
- Lower values (
05) are lighter variants - Higher values (
100) are darker variants - Each
{n}value has a matching-contrastcolor that meets WCAG 2 AA