Skip to main content

Tokens

Drive consistency through color – Apply colors to maintain visual harmony and brand recognition.

Color

Colour comes in two layers. The palettes are raw material — ten hues, eight shades each. The semantic tokens name roles, and each role points at a shade, separately per colour scheme. Application code and component styles use the roles; only the theme uses the shades.

Every swatch below is read from base-colors.ts at build time, so this page cannot drift from the palette.

Palettes​

The design system defines eight shades per hue, numbered 10 to 80. Mantine requires ten. The mapping duplicates at both ends: index 0 repeats shade 10, indices 1 to 8 carry shades 10 to 80, index 9 repeats shade 80.

That means blue-0 and blue-1 are the same colour, and so are blue-8 and blue-9. The duplicates are marked below rather than hidden — picking one thinking it is a distinct step is the mistake this ramp invites.

blueprimary shade — light 5, dark 7
0dup
#EBF5FF
1
#EBF5FF
2
#BDDFFF
3
#80BEF9
4
#3598F5
5
#1271C9
6
#0B61B7
7
#07559D
8
#034481
9dup
#034481
teal
0dup
#E5F9F3
1
#E5F9F3
2
#B1ECDE
3
#7DDFCF
4
#48D2C6
5
#14C5C2
6
#07AAA7
7
#008B88
8
#006766
9dup
#006766
green
0dup
#EBF9F0
1
#EBF9F0
2
#C4EBD4
3
#9CDAB8
4
#77C79C
5
#56B180
6
#379964
7
#1B7E49
8
#006227
9dup
#006227
red
0dup
#FFEBEB
1
#FFEBEB
2
#FFC4C4
3
#FF9C9C
4
#FF7675
5
#FF4E42
6
#EC3209
7
#D21D0F
8
#BA0303
9dup
#BA0303
orange
0dup
#FFF6EB
1
#FFF6EB
2
#FFE1BC
3
#FFCC8D
4
#FFAF4D
5
#EA8C27
6
#E6820F
7
#C66D01
8
#A25A01
9dup
#A25A01
yellow
0dup
#FFFCEB
1
#FFFCEB
2
#FFF0B0
3
#FFE787
4
#FFDC60
5
#FFCF33
6
#FFC20F
7
#BF9313
8
#8B6C0E
9dup
#8B6C0E
purple
0dup
#E8DEF8
1
#E8DEF8
2
#CEBAEF
3
#B89BEB
4
#A583DD
5
#8858D6
6
#7549BA
7
#663EA6
8
#54328C
9dup
#54328C
dark-grey
0dup
#5F7181
1
#5F7181
2
#526270
3
#4A5764
4
#414D58
5
#38424C
6
#303841
7
#23262A
8
#1E1E1E
9dup
#1E1E1E
light-grey
0dup
#F3F5F6
1
#F3F5F6
2
#E4E7EB
3
#CFD4DB
4
#BAC1CC
5
#A5AFBC
6
#8F9BAD
7
#7B899D
8
#67768C
9dup
#67768C
warm-grey
0dup
#F6F4F4
1
#F6F4F4
2
#EFEBEB
3
#D7D4D4
4
#BFBCBC
5
#A7A4A4
6
#908D8D
7
#787575
8
#605E5E
9dup
#605E5E

Three greys, not one. dark-grey carries text and dark-scheme surfaces, light-grey carries borders and controls, warm-grey carries page background and raised surfaces in light mode.

Semantic tokens​

These are what components reference. The two columns are what each role resolves to in each scheme — note how many of them re-point rather than invert. One family is the exception and has a single column: the app header is dusk in both schemes, so its tokens hold one value each.

Surface and text​

TokenLightDark
--mantine-color-bodywarm-grey-1dark-grey-8
--mantine-color-surfacewhitedark-grey-7
--mantine-color-surface-greylight-grey-1dark-grey-6
--mantine-color-surface-raisedwarm-grey-1dark-grey-6
--mantine-color-textdark-grey-7light-grey-1
--mantine-color-dimmedblack at 57%white at 57%
--mantine-color-placeholderlight-grey-6light-grey-5
--mantine-color-default-borderlight-grey-3dark-grey-3
body

surface, with text on it

surface-grey

Flip the colour scheme in the navbar — the specimens above are live, and follow it the same way a real interface does.

Button​

Buttons are blue in light mode and teal in dark mode. In light mode the ramp darkens from rest to pressed under a white label. In dark mode it lightens under a dark label.

TokenLightDark
--mantine-color-buttonblue-5teal-5
--mantine-color-button-hoverblue-6teal-4
--mantine-color-button-pressedblue-7teal-3
--mantine-color-button-textblue-5teal-5
--mantine-color-button-text-invertedwhitedark-grey-7
--mantine-color-button-borderblue-5teal-5
--mantine-color-button-surface-hoverblue-1teal-5 at 10%
--mantine-color-button-surface-pressedblue-2teal-5 at 20%

Status​

TokenLightDark
--mantine-color-errorred-7red-3
--mantine-color-error-borderred-5red-5
--mantine-color-text-warningred-7red-3
--mantine-color-text-successgreen-7green-1
--mantine-color-disabledlight-grey-2dark-grey-6
--mantine-color-disabled-colorlight-grey-5dark-grey-1

App header​

The application header is dusk in both colour schemes, so this family is scheme-neutral: one value each, defined once, in neither the light nor the dark block. Each token mirrors the dark value of the role it stands for, which is what keeps the bar from drifting away from dark mode as those roles change.

TokenBoth schemesMirrors
--mantine-color-appheaderdark-grey-7surface
--mantine-color-appheader-raiseddark-grey-6surface-raised
--mantine-color-appheader-textlight-grey-1text
--mantine-color-appheader-iconlight-grey-6icon-default
--mantine-color-appheader-accentteal-5accent
--mantine-color-appheader-surface-hoverdark-grey-5button-surface-neutral-hover
--mantine-color-appheader-surface-presseddark-grey-4button-surface-neutral-pressed
--mantine-color-appheader-borderdark-grey-3default-border
--mantine-color-appheader-surface-muteddark-grey-5— see below
--mantine-color-appheader-surface-muted-hoverdark-grey-4— see below

The last two mirror no dusk role, because the design has none to mirror. They mark a read row in the messages panel, which is the one place in the bar where a surface carries state rather than interaction. Figma draws that panel on a light page as well, where the split is Color/Surface/Warm 10 against white — a palette shade, scheme-neutral, so it does not flip to a dark value the way every other token here does. What survives the translation is the direction: an unread row keeps the panel's own flat and a read row lifts one step off it, so read is the lighter of the two in either scheme.

Note that -surface-muted is the same dark-grey-5 as -surface-hover. One shade, two roles — which is exactly why the hover partner is a token of its own rather than a reuse of -surface-pressed: a read row already sits where an ordinary hover would take it, so hovering it has to move one step further.

The semantic roles cannot be used inside the bar at all. They flip with the page, and Mantine emits its scheme blocks root-anchored (:root[data-mantine-color-scheme='dark'], :host(...)), so data-mantine-color-scheme cannot be scoped to a subtree either — a dark island on a light page has to be built from tokens that do not move.

Primary​

theme.primaryColor is blue, and theme.primaryShade is { light: 5, dark: 7 }. In dark mode the primary colour is teal-5 instead: --mantine-color-primary, --mantine-primary-color-* and the --mantine-color-blue-filled, -light and -outline variables all resolve to teal there. Components left on their default colour therefore turn teal in dark mode. The blue-0 to blue-9 shades themselves do not change.

Contrast​

Contrast in this design system is measured with APCA (Lc), not the WCAG 2.x ratio. Accessibility carries the substitution, the full threshold table and the rules for measuring.

What it means for the palettes above: APCA is directional, so the same pair scores differently as dark-on-light and as light-on-dark. That is why every table on this page lists both schemes rather than one plus an inversion rule — a shade approved in light is unverified in dark.