Skip to Content
Tokens

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.

TokenDarkLight
--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.

TokenDarkLight
--line-subtle#1C1C20#EEEEF1
--line-soft#222227#E5E5EA
--line#2A2A30#DADADF
--line-strong#3A3A42#C3C3CB

Text

TokenDarkLight
--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.

TokenDarkLight
--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.

TokenDarkLight
--accent#6262EE#5B5BE0
--accent-strong#8F8FFA#4A4AC8
--accent-text#C4C4FB#3A3A9E
--accent-tintrgba(98,98,238,0.18)rgba(91,91,224,0.10)
--accent-linergba(98,98,238,0.48)rgba(91,91,224,0.40)
--accent-subtle#1E1E3E#EDEDFC
--accent-glowrgba(143,143,250,0.85)rgba(74,74,200,0.45)
TokenDarkLight
--on-accent#FFFFFF#FFFFFF

Status

TokenDarkLight
--success#3FCF8E#12875A
--warning#F2B33D#9A6200
--danger#FF6369#C92A33
--info#5AA9FF#1C6BD0

Each status has a tint, a line and, for success, a glow.

TokenDarkLight
--success-tintrgba(63,207,142,0.14)rgba(18,135,90,0.10)
--warning-tintrgba(242,179,61,0.14)rgba(154,98,0,0.10)
--danger-tintrgba(255,99,105,0.14)rgba(201,42,51,0.09)
--info-tintrgba(90,169,255,0.14)rgba(28,107,208,0.09)
--success-linergba(63,207,142,0.35)rgba(18,135,90,0.35)
--warning-linergba(242,179,61,0.35)rgba(154,98,0,0.35)
--danger-linergba(255,99,105,0.35)rgba(201,42,51,0.35)
--info-linergba(90,169,255,0.35)rgba(28,107,208,0.35)
--success-glowrgba(63,207,142,0.85)rgba(18,135,90,0.45)

Labels

Colours for label chips and categories.

TokenDarkLight
--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.

TokenDarkLight
--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

TokenDarkLight
--diff-addrgba(63,207,142,0.09)rgba(18,135,90,0.08)
--diff-delrgba(255,99,105,0.09)rgba(209,52,59,0.08)
--diff-add-wordrgba(63,207,142,0.28)rgba(18,135,90,0.22)
--diff-del-wordrgba(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-4 and bg-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.

Neutral surface, hue in the iconCallout as @aiviarium/nocturne draws it: a bg step and a hairline; the tone is the icon's colour and the code.
Open the example ↗
A tinted box with a hue edgeThe Nocturne snapshot's callout: a status tint behind the text and a status line around it, so two warnings shout louder than the content.
Open the example ↗
The state is a dot and a wordAn approval card keeps the hairline edge of every card.
Open the example ↗
A hue edge as the mark of a stateA coloured border and bar for “waiting”: colour alone carries the state, and the card outshouts the conversation.
Open the example ↗
Edit on GitHub

Last updated on

On this page