Semantic roles that map to primitives per mode
Each colour here has a role, like "page background" or "error border", and maps to a different primitive value depending on whether the UI is in light or dark mode. Components only reference these roles, so switching themes is just swapping which primitives each role points to. Toggle the mode above to see the values change.

Figma: Colour mode variables collection

Code: tokens-mode.css
Primary UI Colours
Primary
Primitive--teal--07--
Hex#118AB2
RGB17 / 138 / 178
Secondary
Primitive--teal--09--
Hex#0A4E66
RGB10 / 78 / 102
Accent Colours
Red
Primitive--red--07--
Hex#EF476F
RGB239 / 71 / 111
Orange
Primitive--orange--05--
Hex#EF8247
RGB239 / 130 / 71
Yellow
Primitive--yellow--07--
Hex#FFD166
RGB255 / 209 / 102
Purple
Primitive--purple--07--
Hex#9E47EF
RGB158 / 71 / 239
Blue
Primitive--blue--07--
Hex#1E47B0
RGB30 / 71 / 176
Green
Primitive--green--07--
Hex#06D6A0
RGB6 / 214 / 160
Page
Primary
Primitive--neutral--10--
Hex#050505
RGB5 / 5 / 5
Inverse
Primitive--neutral--01--
Hex#F1F1F1
RGB241 / 241 / 241
Container
Primary
Primitive--neutral--09--
Hexrgba(14,14,14,0.8)
RGB14 / 14 / 14
Secondary
Primitive--neutral--08--
Hex#303030
RGB48 / 48 / 48
Tertiary
Primitive--neutral--07--
Hex#232323
RGB35 / 35 / 35
Inverse
Primitive--neutral--01--
Hex#F1F1F1
RGB241 / 241 / 241
Text
Primary
Primitive--neutral--01--
Hex#F1F1F1
RGB241 / 241 / 241
Secondary
Primitive--neutral--03--
Hex#BCBCBC
RGB188 / 188 / 188
Tertiary
Primitive--neutral--04--
Hex#A2A2A2
RGB162 / 162 / 162
Inverse
Primitive--neutral--07--
Hex#303030
RGB48 / 48 / 48
Action / Primary
Background Default
Primitive--teal--07--
Hex#118AB2
RGB17 / 138 / 178
Background Hover
Primitive--teal--08--
Hex#0E6E8F
RGB14 / 110 / 143
Background Active
Primitive--teal--09--
Hex#0A4E66
RGB10 / 78 / 102
Text Primary
Primitive--teal--02--
Hex#CFEAF3
RGB207 / 234 / 243
Text Secondary
Primitive--teal--10--
Hex#052F3E
RGB5 / 47 / 62
Text Tertiary
Primitive--teal--07--
Hex#118AB2
RGB17 / 138 / 178
Border Primary
Primitive--teal--09--
Hex#0A4E66
RGB10 / 78 / 102
Action / Passive
Background Default
Primitive--neutral--09-transparent--
Hexrgba(14,14,14,0.01)
RGBTransparent
Background Hover
Primitive--neutral--08--
Hexrgba(35,35,35,0.8)
RGB35 / 35 / 35
Background Active
Primitive--neutral--07--
Hexrgba(48,48,48,0.8)
RGB48 / 48 / 48
Text Primary
Primitive--neutral--01--
Hex#F1F1F1
RGB241 / 241 / 241
Status
Positive
Primitive--green--10--
Hex#024336
RGB2 / 67 / 54
Warning
Primitive--orange--09--
Hex#552716
RGB85 / 39 / 22
Error
Primitive--red--10--
Hex#571727
RGB87 / 23 / 39
Info
Primitive--blue--10--
Hex#081633
RGB8 / 22 / 51
Neutral
Primitive--neutral--08--
Hex#232323
RGB35 / 35 / 35