Colour
The colour tokens of each theme, and where hue may go.
Each swatch is drawn over bg-1 of its theme.
Tints show as they look on a card.
Surfaces
Neutral greys with no tint.
bg-0 is the canvas, bg-1 the frames and cards, and bg-2 fields and nested cards.
bg-3 is hover and the button fill, and bg-4 is selection.
| Token | Dark | Light |
|---|---|---|
--bg-0 | #0A0A0B | #F3F3F5 |
--bg-1 | #111113 | #FFFFFF |
--bg-2 | #18181B | #F8F8FA |
--bg-3 | #202024 | #EFEFF2 |
--bg-4 | #2A2A2F | #E5E5EA |
Hairlines
line-subtle divides table rows, line-soft edges cards and code, line edges controls, and line-strong is the strongest edge.
| Token | Dark | Light |
|---|---|---|
--line-subtle | #1C1C20 | #EEEEF1 |
--line-soft | #222227 | #E5E5EA |
--line | #2A2A30 | #DADADF |
--line-strong | #3A3A42 | #C3C3CB |
Text
| Token | Dark | Light |
|---|---|---|
--text-1 | #EDEDEF | #111114 |
--text-2 | #A1A1AA | #4F4F58 |
--text-3 | #80808A | #6B6B75 |
--text-4 | #52525B | #A8A8B0 |
text-3 is the faintest colour for anything a person reads.
text-4 is for disabled and decorative marks only, such as separators and the dash of an empty value.
Status text uses the -ink shades of extra.css: --success-ink, --warning-ink and --danger-ink mix the status colour with text-1.
Primary
The primary button is filled with the text colour.
| Token | Dark | Light |
|---|---|---|
--primary | #EDEDEF | #18181B |
--on-primary | #0A0A0B | #FFFFFF |
Accent
--accent is the one colour an app sets, see Theming.
The values here are Iris, the default.
| Token | Dark | Light |
|---|---|---|
--accent | #6262EE | #5B5BE0 |
--accent-strong | #8F8FFA | #4A4AC8 |
--accent-text | #C4C4FB | #3A3A9E |
--accent-tint | rgba(98,98,238,0.18) | rgba(91,91,224,0.10) |
--accent-line | rgba(98,98,238,0.48) | rgba(91,91,224,0.40) |
--accent-subtle | #1E1E3E | #EDEDFC |
--accent-glow | rgba(143,143,250,0.85) | rgba(74,74,200,0.45) |
| Token | Dark | Light |
|---|---|---|
--on-accent | #FFFFFF | #FFFFFF |
Status
| Token | Dark | Light |
|---|---|---|
--success | #3FCF8E | #12875A |
--warning | #F2B33D | #9A6200 |
--danger | #FF6369 | #C92A33 |
--info | #5AA9FF | #1C6BD0 |
Each status has a tint, a line and, for success, a glow.
| Token | Dark | Light |
|---|---|---|
--success-tint | rgba(63,207,142,0.14) | rgba(18,135,90,0.10) |
--warning-tint | rgba(242,179,61,0.14) | rgba(154,98,0,0.10) |
--danger-tint | rgba(255,99,105,0.14) | rgba(201,42,51,0.09) |
--info-tint | rgba(90,169,255,0.14) | rgba(28,107,208,0.09) |
--success-line | rgba(63,207,142,0.35) | rgba(18,135,90,0.35) |
--warning-line | rgba(242,179,61,0.35) | rgba(154,98,0,0.35) |
--danger-line | rgba(255,99,105,0.35) | rgba(201,42,51,0.35) |
--info-line | rgba(90,169,255,0.35) | rgba(28,107,208,0.35) |
--success-glow | rgba(63,207,142,0.85) | rgba(18,135,90,0.45) |
Labels
Colours for label chips and categories.
| Token | Dark | Light |
|---|---|---|
--label-sky | #5AA9FF | #1F6FD1 |
--label-teal | #2DD4BF | #0F8C7E |
--label-mint | #3FCF8E | #12875A |
--label-amber | #F2B33D | #9A6200 |
--label-ember | #FF7A3D | #C2410C |
--label-rose | #FF6369 | #D1343B |
--label-orchid | #E879F9 | #A21CAF |
Code
The syn tokens colour CodeBlock and DiffView.
| Token | Dark | Light |
|---|---|---|
--syn-keyword | #A5A5FF | #4A4AC8 |
--syn-string | #7EE2B0 | #0F7A50 |
--syn-function | #7DBBFF | #1F6FD1 |
--syn-type | #E9A2F5 | #9D2BB0 |
--syn-number | #F2C46D | #8F5A00 |
--syn-comment | #80808A | #6B6B75 |
--syn-plain | #D4D4DA | #26262B |
--syn-punct | #A1A1AA | #52525B |
Diffs
| Token | Dark | Light |
|---|---|---|
--diff-add | rgba(63,207,142,0.09) | rgba(18,135,90,0.08) |
--diff-del | rgba(255,99,105,0.09) | rgba(209,52,59,0.08) |
--diff-add-word | rgba(63,207,142,0.28) | rgba(18,135,90,0.22) |
--diff-del-word | rgba(255,99,105,0.28) | rgba(209,52,59,0.22) |
Neutral fills
Cards, panels, rows, strips, banners and callouts are the neutral bg-* steps with hairlines.
Hue goes in the foreground, such as an icon, the dot and word of a State, or the ink of text.
- A small inline chip or badge may keep a slight tint with a stronger ink of the same hue.
Badge,LabelChip, the composer's tokens and the "Modified" chip do this, as the mention chip does. - Coloured fills are for icon tiles and buttons: an accent or danger button, the tile behind an icon.
- No hue fill has a hue edge, and a danger button has no red edge.
- A hue edge is never the only mark of a state on a card. Approval cards have a hairline edge, and show their state with a dot and a word.
- Selection and hover are neutral fills,
bg-4andbg-3. So are the selected rows of a table and its bulk bar, a running tool step and the composer while the assistant works. A running step has the hue in its text.
bundle.css still has status tints behind callouts, approval cards, the bulk bar, selected table rows and running steps.
It also has hue edges around danger buttons and stream pills.
src/styles/parts.css overrides those rules in its colour section.
Last updated on