The neutral colour palette is used for typography and most backgrounds.
Neutral colours help you structure your content. They set a calm and not distracting environment. They don’t typically have a meaning associated with them, though they can imply things like disabled states of elements.
Our neutral palette is slightly saturated with the hue close to our accent hue
to create more harmonious vibe.
Each colour in the notification colour palette is selected intentionally to provide meaningful feedback within our experiences.
Notification colours should be used purposefully to communicate and inform users.
Warning palette is used to indicate a warning or that progress is hindered. Use yellow to indicate to indicate a user that an issue can be avoided or needs a corrective action.
Danger palette is used to indicate error states and messages. Red is an alarming colour and should be used with care as it can convey a negative feeling.
Base colour tokens listed above just represent a static colour value and looking at them doesn't tell you much about possible applications.
Functional tokens allow us to abstract values to attach a meaning to their intended usage.
They allow us to layer references on top of base colour tokens to enable more predictable combination and application of colours.
Functional tokens are what makes colour modes work: each one has a light and a dark value. They also allow custom themes, and simplify future product rebranding.
Functional tokens act as an API on top of our colour palettes, in a sense that the tokens can be referenced without worrying about their underlying value.
Apps that stick to the tokens will get all future colour and theme updates "for free", which is a win for maintainability going forward.
Avoid referencing colour scales by their actual scale name like colorGray100. Instead, use the functional tokens whenever possible. In rare cases, you may need to use explicit scale tokens to define custom functional variables in your application.
We use fairly generic names for the functional colour tokens that work as a guide for the application but don't rely on our component inventory, thus can also be used to build your custom components.
Every functional colour token follows the same predictable naming convention that helps provide an understanding on how or when the token should be used.
The format of the name is: [property][role][variant][state], where:
​
property is a UI entity the token will be applied to, such as background or border.
​
role describes the intention behind the token.
​
variant refers to variations of the token, for example how prominent it appears. Prominence scale ranges from minimal to contrast.
​
state is optional and can represent available interaction options such as hover or active.
This gives us final token names like:
Finally, the functional tokens are referenced throughout component styles:
import{ styled }from'@volue/wave-react';
constComponent=styled('div',{
backgroundColor:'$backgroundSuccessStrong',
color:'$foregroundInverse',
'&:hover':{
backgroundColor:'$backgroundSuccessStrongHover'
}
});
Functional tokens are available for use in all styling APIs that @volue/wave-react offers.
It is recommended to pair default colour foregrounds with their default and subtle background counterparts.
These pairings are designed to be legible and meet accessibility guidance (WCAG AA contrast requirements).
However not all colours pair well with each other. For example you shouldn't combine default foregrounds with strong backgrounds as that will result in inaccessible pairings. Instead, use inverse foreground tokens designed to show on strong backgrounds for optimal contrast.
Here are some general colour pairings that have been designed and tested for accessible contrast ratios:
Use hover, active and disabled tokens to communicate visual changes related to interaction states:
Colour tokens exist in different formats and can be also consumed as CSS custom properties​ or variables.
You can use any styling solution to read those variables.
CSS variables come automatically bundled with @volue/wave core package.
Background colour tokens define the background colours used in surfaces of components or UI elements. Do not use these for border colours or foreground colours.
The surface tokens are the backgrounds of a page and of the components that sit on it. They have three levels of elevation: sunken, default, and raised. A higher surface is never darker than a lower one, in every colour mode. Use the other background tokens for fills on top of a surface.
backgroundSurface
colorGray5
#f8fcfb
colorGray95
#13211f
Default surface. The base level: the background of a page with content placed directly on it.
CSS variable:
var(--color-background-surface)
backgroundSurfaceSunken
colorGray10
#f2f9f8
colorGray95
#13211f
Sunken surface. The lowest level: the canvas of a card-based or widget-based layout, and the frame around the page, such as the app header and the app bar.
CSS variable:
var(--color-background-surface-sunken)
backgroundSurfaceRaised
colorGray5
#f8fcfb
colorGray90
#192725
Raised surface. Sits above the default or the sunken surface: the background of a card or a widget, and of what floats over the page, such as a menu, a popover or a dialog.
CSS variable:
var(--color-background-surface-raised)
backgroundNeutralSubtle
colorGray10
#f2f9f8
colorGray90
#192725
Subtle neutral background.
CSS variable:
var(--color-background-neutral-subtle)
backgroundNeutralModerate
colorGray15
#edf4f3
colorGray85
#1e2e2c
Moderate neutral background.
CSS variable:
var(--color-background-neutral-moderate)
backgroundNeutral
colorGray20
#dce6e4
colorGray80
#253833
Default neutral background.
CSS variable:
var(--color-background-neutral)
backgroundNeutralBold
colorGray60
#5d7570
colorGray40
#a2b2af
Bold neutral background.
CSS variable:
var(--color-background-neutral-bold)
backgroundNeutralStrong
colorGray75
#2c433e
colorGray20
#dce6e4
Strong neutral background.
CSS variable:
var(--color-background-neutral-strong)
backgroundNeutralStrongHover
colorGray90
#192725
colorGray10
#f2f9f8
Strong neutral background hover state.
CSS variable:
var(--color-background-neutral-strong-hover)
backgroundNeutralStrongActive
colorGray100
#091a16
colorWhite
#ffffff
Strong neutral background active state.
CSS variable:
var(--color-background-neutral-strong-active)
backgroundNeutralContrast
colorGray95
#13211f
colorGray5
#f8fcfb
Contrast neutral background. Used for components that stand out from the rest of the content, such as tooltips.
CSS variable:
var(--color-background-neutral-contrast)
backgroundNeutralTranslucent
colorGray95
rgba(19, 33, 31, 0.03)
colorGray5
rgba(248, 252, 251, 0.04)
Translucent neutral background. A subtle fill that shows on every surface. Does not cover what is behind it.
CSS variable:
var(--color-background-neutral-translucent)
backgroundAccentSubtle
colorSolarMist20
#e2fffa
colorSolarMist120
#01302a
Subtle accent background.
CSS variable:
var(--color-background-accent-subtle)
backgroundAccentSubtleHover
colorSolarMist30
#d8fff8
colorSolarMist110
#083e37
Subtle accent background hover state.
CSS variable:
var(--color-background-accent-subtle-hover)
backgroundAccentSubtleActive
colorSolarMist40
#c4fff3
colorSolarMist100
#104840
Subtle accent background active state.
CSS variable:
var(--color-background-accent-subtle-active)
backgroundAccent
colorSolarMist30
#d8fff8
colorSolarMist110
#083e37
Default accent background.
CSS variable:
var(--color-background-accent)
backgroundAccentHover
colorSolarMist40
#c4fff3
colorSolarMist100
#104840
Default accent background hover state.
CSS variable:
var(--color-background-accent-hover)
backgroundAccentActive
colorSolarMist50
#b0fbee
colorSolarMist90
#18635b
Default accent background active state.
CSS variable:
var(--color-background-accent-active)
backgroundAccentBold
colorSolarMist60
#9fe3d7
colorSolarMist80
#307e74
Bold accent background.
CSS variable:
var(--color-background-accent-bold)
backgroundAccentStrong
colorSolarMist80
#307e74
colorSolarMist60
#9fe3d7
Strong accent background.
CSS variable:
var(--color-background-accent-strong)
backgroundDangerSubtle
colorRed5
#ffe8e0
colorRed100
#521613
Subtle danger background.
CSS variable:
var(--color-background-danger-subtle)
backgroundDangerSubtleHover
colorRed10
#ffd2c8
colorRed90
#9c2118
Subtle danger background hover state.
CSS variable:
var(--color-background-danger-subtle-hover)
backgroundDangerSubtleActive
colorRed20
#ffbcb0
colorRed80
#d91c1c
Subtle danger background active state.
CSS variable:
var(--color-background-danger-subtle-active)
backgroundDanger
colorRed10
#ffd2c8
colorRed90
#9c2118
Default danger background.
CSS variable:
var(--color-background-danger)
backgroundDangerHover
colorRed20
#ffbcb0
colorRed80
#d91c1c
Default danger background hover state.
CSS variable:
var(--color-background-danger-hover)
backgroundDangerActive
colorRed30
#ffa699
colorRed70
#e4433a
Default danger background active state.
CSS variable:
var(--color-background-danger-active)
backgroundDangerBold
colorRed70
#e4433a
colorRed60
#f8685b
Bold danger background.
CSS variable:
var(--color-background-danger-bold)
backgroundDangerBoldHover
colorRed80
#d91c1c
colorRed50
#f8786a
Bold danger background hover state.
CSS variable:
var(--color-background-danger-bold-hover)
backgroundDangerBoldActive
colorRed90
#9c2118
colorRed40
#ff8f81
Bold danger background active state.
CSS variable:
var(--color-background-danger-bold-active)
backgroundDangerStrong
colorRed80
#d91c1c
colorRed50
#f8786a
Strong danger background state.
CSS variable:
var(--color-background-danger-strong)
backgroundDangerStrongHover
colorRed90
#9c2118
colorRed40
#ff8f81
Strong danger background hover state.
CSS variable:
var(--color-background-danger-strong-hover)
backgroundDangerStrongActive
colorRed100
#521613
colorRed30
#ffa699
Strong danger background active state.
CSS variable:
var(--color-background-danger-strong-active)
backgroundWarningSubtle
colorYellow5
#fffbe8
colorYellow110
#3f3100
Subtle warning background.
CSS variable:
var(--color-background-warning-subtle)
backgroundWarningSubtleHover
colorYellow10
#fff6c7
colorYellow100
#594700
Subtle warning background hover state.
CSS variable:
var(--color-background-warning-subtle-hover)
backgroundWarningSubtleActive
colorYellow20
#fff0a6
colorYellow90
#a38400
Subtle warning background active state.
CSS variable:
var(--color-background-warning-subtle-active)
backgroundWarning
colorYellow10
#fff6c7
colorYellow100
#594700
Default warning background.
CSS variable:
var(--color-background-warning)
backgroundWarningHover
colorYellow20
#fff0a6
colorYellow90
#a38400
Default warning background hover state.
CSS variable:
var(--color-background-warning-hover)
backgroundWarningActive
colorYellow30
#ffeb85
colorYellow80
#deb900
Default warning background active state.
CSS variable:
var(--color-background-warning-active)
backgroundWarningBold
colorYellow70
#ffd000
colorYellow50
#ffdc42
Bold warning background.
CSS variable:
var(--color-background-warning-bold)
backgroundWarningBoldHover
colorYellow80
#deb900
colorYellow40
#ffea63
Bold warning background hover state.
CSS variable:
var(--color-background-warning-bold-hover)
backgroundWarningBoldActive
colorYellow90
#a38400
colorYellow30
#ffeb85
Bold warning background active state.
CSS variable:
var(--color-background-warning-bold-active)
backgroundWarningStrong
colorYellow80
#deb900
colorYellow40
#ffea63
Strong warning background state.
CSS variable:
var(--color-background-warning-strong)
backgroundWarningStrongHover
colorYellow90
#a38400
colorYellow30
#ffeb85
Strong warning background hover state.
CSS variable:
var(--color-background-warning-strong-hover)
backgroundWarningStrongActive
colorYellow100
#594700
colorYellow20
#fff0a6
Strong warning background active state.
CSS variable:
var(--color-background-warning-strong-active)
backgroundSuccessSubtle
colorGreen5
#dfffe5
colorGreen100
#00400e
Subtle success background.
CSS variable:
var(--color-background-success-subtle)
backgroundSuccessSubtleHover
colorGreen10
#c6f2cd
colorGreen90
#00641b
Subtle success background hover state.
CSS variable:
var(--color-background-success-subtle-hover)
backgroundSuccessSubtleActive
colorGreen20
#ace3b6
colorGreen80
#008928
Subtle success background active state.
CSS variable:
var(--color-background-success-subtle-active)
backgroundSuccess
colorGreen10
#c6f2cd
colorGreen90
#00641b
Default success background.
CSS variable:
var(--color-background-success)
backgroundSuccessHover
colorGreen20
#ace3b6
colorGreen80
#008928
Default success background hover state.
CSS variable:
var(--color-background-success-hover)
backgroundSuccessActive
colorGreen30
#92d49e
colorGreen70
#009842
Default success background active state.
CSS variable:
var(--color-background-success-active)
backgroundSuccessBold
colorGreen70
#009842
colorGreen60
#48b465
Bold success background.
CSS variable:
var(--color-background-success-bold)
backgroundSuccessBoldHover
colorGreen80
#008928
colorGreen50
#5bb671
Bold success background hover state.
CSS variable:
var(--color-background-success-bold-hover)
backgroundSuccessBoldActive
colorGreen90
#00641b
colorGreen40
#77c588
Bold success background active state.
CSS variable:
var(--color-background-success-bold-active)
backgroundSuccessStrong
colorGreen80
#008928
colorGreen50
#5bb671
Strong success background state.
CSS variable:
var(--color-background-success-strong)
backgroundSuccessStrongHover
colorGreen90
#00641b
colorGreen40
#77c588
Strong success background hover state.
CSS variable:
var(--color-background-success-strong-hover)
backgroundSuccessStrongActive
colorGreen100
#00400e
colorGreen30
#92d49e
Strong success background active state.
CSS variable:
var(--color-background-success-strong-active)
backgroundInfoSubtle
colorAqua5
#e0f7ff
colorAqua100
#002b3a
Subtle info background.
CSS variable:
var(--color-background-info-subtle)
backgroundInfoSubtleHover
colorAqua10
#beefff
colorAqua90
#004f6a
Subtle info background hover state.
CSS variable:
var(--color-background-info-subtle-hover)
backgroundInfoSubtleActive
colorAqua20
#9ce6ff
colorAqua80
#00769e
Subtle info background active state.
CSS variable:
var(--color-background-info-subtle-active)
backgroundInfo
colorAqua10
#beefff
colorAqua90
#004f6a
Default info background.
CSS variable:
var(--color-background-info)
backgroundInfoHover
colorAqua20
#9ce6ff
colorAqua80
#00769e
Default info background hover state.
CSS variable:
var(--color-background-info-hover)
backgroundInfoActive
colorAqua30
#73dcff
colorAqua70
#009cd0
Default info background active state.
CSS variable:
var(--color-background-info-active)
backgroundInfoBold
colorAqua70
#009cd0
colorAqua60
#08c1ff
Bold info background.
CSS variable:
var(--color-background-info-bold)
backgroundInfoBoldHover
colorAqua80
#00769e
colorAqua50
#2ecaff
Bold info background hover state.
CSS variable:
var(--color-background-info-bold-hover)
backgroundInfoBoldActive
colorAqua90
#004f6a
colorAqua40
#53d4ff
Bold info background active state.
CSS variable:
var(--color-background-info-bold-active)
backgroundInfoStrong
colorAqua80
#00769e
colorAqua50
#2ecaff
Strong info background state.
CSS variable:
var(--color-background-info-strong)
backgroundInfoStrongHover
colorAqua90
#004f6a
colorAqua40
#53d4ff
Strong info background hover state.
CSS variable:
var(--color-background-info-strong-hover)
backgroundInfoStrongActive
colorAqua100
#002b3a
colorAqua30
#73dcff
Strong info background active state.
CSS variable:
var(--color-background-info-strong-active)
backgroundDisabled
colorGray20
#dce6e4
colorGray80
#253833
Disabled background.
CSS variable:
var(--color-background-disabled)
backgroundDisabledSubtle
colorGray95
rgba(19, 33, 31, 0.035)
colorGray5
rgba(248, 252, 251, 0.035)
Subtle disabled background. Translucent, so it shows on every surface.
CSS variable:
var(--color-background-disabled-subtle)
backgroundBackdrop
colorSolarMist90
rgba(24, 99, 91, 0.23)
rgba(2, 9, 7, 0.6)
Backdrop. A translucent layer that dims the page behind a dialog or a drawer.
Foreground colour tokens are used for text content, icons, and other elements rendered on top of a background. Do not use these for border colours or background colours.
Regular foreground colours tokens ensure enough contrast ratio when used on top of default, minimal and subtle background colour tokens.
Note that icons have different contrast requirements than text. Since they are graphical objects, they only need to meet a 3:1 colour contrast ratio (WCAG 1.4.11​), as opposed to text, which must meet 4.5:1 contrast ratio (WCAG 1.4.3​).
Aa
foregroundNeutral
colorGray90
#192725
colorGray10
#f2f9f8
Default neutral foreground. Used for primary, high-contrast text.
CSS variable:
var(--color-foreground-neutral)
Aa
foregroundNeutralModerate
colorGray75
#2c433e
colorGray30
#c4d0cd
Moderate neutral foreground. Used for secondary text.
CSS variable:
var(--color-foreground-neutral-moderate)
Aa
foregroundNeutralSubtle
colorGray60
#5d7570
colorGray40
#a2b2af
Subtle neutral foreground. Used for tertiary, low-contrast text.
CSS variable:
var(--color-foreground-neutral-subtle)
Aa
foregroundNeutralMinimal
colorGray40
#a2b2af
colorGray60
#5d7570
Minimal neutral foreground. Used for disabled text.
CSS variable:
var(--color-foreground-neutral-minimal)
Aa
foregroundAccent
colorSolarMist100
#104840
colorSolarMist50
#b0fbee
Default accent foreground.
CSS variable:
var(--color-foreground-accent)
Aa
foregroundAccentModerate
colorSolarMist90
#18635b
colorSolarMist60
#9fe3d7
Moderate accent foreground.
CSS variable:
var(--color-foreground-accent-moderate)
Aa
foregroundAccentSubtle
colorSolarMist80
#307e74
colorSolarMist70
#71c0b4
Subtle accent foreground.
CSS variable:
var(--color-foreground-accent-subtle)
Aa
foregroundDanger
colorRed100
#521613
colorRed10
#ffd2c8
Default danger foreground.
CSS variable:
var(--color-foreground-danger)
Aa
foregroundDangerModerate
colorRed80
#d91c1c
colorRed40
#ff8f81
Moderate danger foreground.
CSS variable:
var(--color-foreground-danger-moderate)
Aa
foregroundDangerSubtle
colorRed70
#e4433a
colorRed60
#f8685b
Subtle danger foreground.
CSS variable:
var(--color-foreground-danger-subtle)
Aa
foregroundWarning
colorYellow100
#594700
colorYellow40
#ffea63
Default warning foreground.
CSS variable:
var(--color-foreground-warning)
Aa
foregroundWarningModerate
colorYellow90
#a38400
colorYellow70
#ffd000
Moderate warning foreground.
CSS variable:
var(--color-foreground-warning-moderate)
Aa
foregroundWarningSubtle
colorYellow70
#ffd000
colorYellow80
#deb900
Subtle warning foreground.
CSS variable:
var(--color-foreground-warning-subtle)
Aa
foregroundWarningInverse
colorGray100
#091a16
colorGray100
#091a16
Inverse warning foreground. Used on strong warning background for optimal contrast.
CSS variable:
var(--color-foreground-warning-inverse)
Aa
foregroundSuccess
colorGreen100
#00400e
colorGreen10
#c6f2cd
Default success foreground.
CSS variable:
var(--color-foreground-success)
Aa
foregroundSuccessModerate
colorGreen80
#008928
colorGreen40
#77c588
Moderate success foreground.
CSS variable:
var(--color-foreground-success-moderate)
Aa
foregroundSuccessSubtle
colorGreen70
#009842
colorGreen60
#48b465
Subtle success foreground.
CSS variable:
var(--color-foreground-success-subtle)
Aa
foregroundInfo
colorAqua100
#002b3a
colorAqua10
#beefff
Default info foreground.
CSS variable:
var(--color-foreground-info)
Aa
foregroundInfoModerate
colorAqua80
#00769e
colorAqua40
#53d4ff
Moderate info foreground.
CSS variable:
var(--color-foreground-info-moderate)
Aa
foregroundInfoSubtle
colorAqua70
#009cd0
colorAqua60
#08c1ff
Subtle info foreground.
CSS variable:
var(--color-foreground-info-subtle)
Aa
foregroundDisabled
colorGray40
#a2b2af
colorGray60
#5d7570
Disabled foreground.
CSS variable:
var(--color-foreground-disabled)
Aa
foregroundDisabledSubtle
colorGray30
#c4d0cd
colorGray70
#475e59
Subtle disabled foreground.
CSS variable:
var(--color-foreground-disabled-subtle)
Aa
foregroundInverse
colorWhite
#ffffff
colorGray100
#091a16
Inverse foreground. Used for text on strong backgrounds.
Border colour tokens define the colour of borders, as seen in toasts, cards, form fields, and more. Do not use these for background colours or foreground colours.
borderNeutralSubtle
colorGray20
#dce6e4
colorGray80
#253833
Subtle neutral border.
CSS variable:
var(--color-border-neutral-subtle)
borderNeutralModerate
colorGray30
#c4d0cd
colorGray75
#2c433e
Moderate neutral border.
CSS variable:
var(--color-border-neutral-moderate)
borderNeutral
colorGray40
#a2b2af
colorGray60
#5d7570
Default neutral border.
CSS variable:
var(--color-border-neutral)
borderNeutralBold
colorGray70
#475e59
colorGray40
#a2b2af
Bold neutral border.
CSS variable:
var(--color-border-neutral-bold)
borderNeutralContrast
colorGray100
#091a16
colorGray5
#f8fcfb
Contrast neutral border.
CSS variable:
var(--color-border-neutral-contrast)
borderAccent
colorSolarMist50
#b0fbee
colorSolarMist90
#18635b
Default accent border.
CSS variable:
var(--color-border-accent)
borderAccentHover
colorSolarMist60
#9fe3d7
colorSolarMist80
#307e74
Default accent border hover state.
CSS variable:
var(--color-border-accent-hover)
borderAccentActive
colorSolarMist70
#71c0b4
colorSolarMist70
#71c0b4
Default accent border active state.
CSS variable:
var(--color-border-accent-active)
borderAccentBold
colorSolarMist80
#307e74
colorSolarMist70
#71c0b4
Bold accent border.
CSS variable:
var(--color-border-accent-bold)
borderAccentStrong
colorSolarMist90
#18635b
colorSolarMist50
#b0fbee
Strong accent border.
CSS variable:
var(--color-border-accent-strong)
borderDanger
colorRed30
#ffa699
colorRed70
#e4433a
Default danger border.
CSS variable:
var(--color-border-danger)
borderDangerBold
colorRed80
#d91c1c
colorRed50
#f8786a
Bold danger border.
CSS variable:
var(--color-border-danger-bold)
borderDangerStrong
colorRed90
#9c2118
colorRed40
#ff8f81
Strong danger border.
CSS variable:
var(--color-border-danger-strong)
borderWarning
colorYellow50
#ffdc42
colorYellow90
#a38400
Default warning border.
CSS variable:
var(--color-border-warning)
borderWarningBold
colorYellow80
#deb900
colorYellow40
#ffea63
Bold warning border.
CSS variable:
var(--color-border-warning-bold)
borderWarningStrong
colorYellow90
#a38400
colorYellow30
#ffeb85
Strong warning border.
CSS variable:
var(--color-border-warning-strong)
borderSuccess
colorGreen40
#77c588
colorGreen70
#009842
Default success border.
CSS variable:
var(--color-border-success)
borderSuccessBold
colorGreen80
#008928
colorGreen50
#5bb671
Bold success border.
CSS variable:
var(--color-border-success-bold)
borderSuccessStrong
colorGreen90
#00641b
colorGreen40
#77c588
Strong success border.
CSS variable:
var(--color-border-success-strong)
borderInfo
colorAqua40
#53d4ff
colorAqua70
#009cd0
Default info border.
CSS variable:
var(--color-border-info)
borderInfoBold
colorAqua80
#00769e
colorAqua50
#2ecaff
Bold info border.
CSS variable:
var(--color-border-info-bold)
borderInfoStrong
colorAqua90
#004f6a
colorAqua40
#53d4ff
Strong info border.
CSS variable:
var(--color-border-info-strong)
borderDisabled
colorGray20
#dce6e4
colorGray80
#253833
Disabled border.
CSS variable:
var(--color-border-disabled)
borderDisabledSubtle
colorGray95
rgba(19, 33, 31, 0.06)
colorGray5
rgba(248, 252, 251, 0.06)
Subtle disabled border. Translucent, so it shows on every surface and on the subtle disabled background.
CSS variable:
var(--color-border-disabled-subtle)
borderInverse
colorWhite
rgba(255, 255, 255, 0.85)
colorGray100
rgba(9, 26, 22, 0.85)
Inverse border. Used for borders on strong backgrounds.
Solid colours are the default and the recommended choice. In some cases a colour needs reduced opacity: a translucent shade adapts to different backgrounds, because it keeps the contrast between the element and its background more consistent.
The opacity property makes the whole element translucent, so set the opacity on the colour itself. There are two ways to do that, and both follow the colour mode.
A subset of background tokens also has its RGB channels as separate tokens. Combine them with an alpha in the rgba colour function​: