Colour
Two layers. 70 primitives hold the raw values and mean nothing on their own; 29 roles say what a colour is for and point at a primitive in each mode. Components only ever use roles, so switching mode re-points every role at once.
| Role | Dark | Light | Glass | Fake glass | For |
|---|---|---|---|---|---|
bg/ground c.bgGround | indigo.925#13122a | indigo.25#f4f3fa | indigo.950#0b0a1e | indigo.950#0b0a1e | Page background |
bg/surface c.bgSurface | indigo.900#181834 | white#ffffff | indigo.875.a62#1a19409e | indigo.875.a62#1a19409e | Sheets and panels |
bg/raised c.bgRaised | indigo.850#222143 | indigo.25#f4f3fa | white.a6#ffffff0f | white.a6#ffffff0f | Cards on a surface or sheet. One tonal step from bg/surface, no outline |
bg/control c.bgControl | indigo.775#2b2b54 | indigo.50#ecebf5 | white.a10#ffffff1a | white.a10#ffffff1a | Secondary buttons, chips, icon buttons |
bg/control-pressed c.bgControlPressed | indigo.725#36356a | indigo.125#e1e0ee | white.a18#ffffff2e | white.a18#ffffff2e | Pressed control |
bg/track c.bgTrack | indigo.775#2b2b54 | indigo.100#e4e3ef | white.a12#ffffff1f | white.a12#ffffff1f | Slider and progress tracks |
bg/inverse c.bgInverse | white#ffffff | indigo.925#13122a | white.a94#fffffff0 | white.a94#fffffff0 | Selected chip and segment |
bg/menu c.bgMenu | indigo.800.a70#2a2955b2 | white.a74#ffffffbd | indigo.875.a45#1a194073 | indigo.800.a62#2a29559e | Dropdown and glass layers. Translucent so the blur shows |
bg/highlight c.bgHighlight | white.a8#ffffff14 | indigo.925.a5#13122a0d | white.a10#ffffff1a | white.a10#ffffff1a | Pressed menu item, separators in a menu |
bg/scrim c.bgScrim | indigo.975.a90#05050fe5 | black.a30#0000004d | indigo.975.a35#05050f59 | indigo.975.a35#05050f59 | Behind a sheet |
line/hairline c.lineHairline | indigo.750#2e2d5c | indigo.75#e6e5f0 | white.a10#ffffff1a | white.a10#ffffff1a | Dividers |
line/outline c.lineOutline | indigo.650.a0#4b4a8500 | indigo.925.a0#13122a00 | white.a18#ffffff2e | white.a18#ffffff2e | Flat in Dark and Light; glass modes keep an edge |
line/menu-edge c.lineMenuEdge | white.a6#ffffff0f | indigo.925.a6#13122a0f | white.a12#ffffff1f | white.a8#ffffff14 | Even 1px edge of floating glass layers |
text/primary c.textPrimary | white#ffffff | indigo.925#13122a | white#ffffff | white#ffffff | Values, titles, labels |
text/secondary c.textSecondary | indigo.300#a6a5c8 | indigo.625#57567a | white.a72#ffffffb8 | white.a72#ffffffb8 | Descriptions |
text/tertiary c.textTertiary | indigo.425#8989ab | indigo.550#66658a | white.a55#ffffff8c | white.a55#ffffff8c | Meta only. Never on bg/control (3.95:1) |
text/on-accent c.textOnAccent | indigo.925#13122a | indigo.925#13122a | indigo.925#13122a | indigo.925#13122a | Label on magenta. 5.89:1 |
text/on-inverse c.textOnInverse | indigo.925#13122a | white#ffffff | indigo.925#13122a | indigo.925#13122a | Label on bg/inverse |
accent/fill c.accentFill | magenta.500#f631fc | magenta.500#f631fc | magenta.500#f631fc | magenta.500#f631fc | Brand magenta. The one primary action |
accent/pressed c.accentPressed | magenta.600#e21ce8 | magenta.600#e21ce8 | magenta.600#e21ce8 | magenta.600#e21ce8 | Pressed primary |
accent/tint c.accentTint | magenta.500.a16#f631fc29 | magenta.500.a12#f631fc1f | magenta.500.a20#f631fc33 | magenta.500.a20#f631fc33 | Magenta wash |
accent/text c.accentText | magenta.400#fa6bfd | magenta.700#b500bf | magenta.500#f631fc | magenta.500#f631fc | Magenta text. Passes 4.5:1 on its tint |
status/success c.statusSuccess | green.400#2dff8a | green.700#087a3b | green.400#2dff8a | green.400#2dff8a | Gains, done |
status/success-tint c.statusSuccessTint | green.400.a12#2dff8a1f | green.700.a10#087a3b1a | green.400.a12#2dff8a1f | green.400.a12#2dff8a1f | Success badge fill |
status/danger c.statusDanger | rose.400#ff609b | rose.600#d0105a | rose.400#ff609b | rose.400#ff609b | Sell, loss, destructive |
status/danger-tint c.statusDangerTint | rose.400.a14#ff609b24 | rose.600.a10#d0105a1a | rose.400.a14#ff609b24 | rose.400.a14#ff609b24 | Danger badge fill |
status/warning c.statusWarning | orange.400#ffa94d | orange.700#b25400 | orange.400#ffa94d | orange.400#ffa94d | Risk only. Never an action |
status/warning-tint c.statusWarningTint | orange.400.a14#ffa94d24 | orange.700.a10#b254001a | orange.400.a14#ffa94d24 | orange.400.a14#ffa94d24 | Warning badge fill |
focus/ring c.focusRing | indigo.150#d6d4ec | indigo.550#66658a | white.a85#ffffffd9 | white.a85#ffffffd9 | 2px keyboard focus ring, 2px outside the shape |
Primitives
The raw values the roles point at. A higher number is a darker step; a suffix like a10 is that colour at 10% opacity. Never use a primitive in a component: pick the role that says what the colour is for.
Magenta #F631FC is for actions: the primary button and the round action buttons on the coin page. Never for data, sliders or status. What sits on it is #13122A at 5.89:1.
Green and red only for buy, sell, gains and losses. Orange only for risk, never an action.
No outlines and no shadows on controls in Dark and Light; they separate by fill. Glass modes add an edge.