Raft Design System

Foundations

Color

The surface, text, line and role colors, what each color means, and the contrast they guarantee.

Color in Raft works in two ways. Surfaces get less color from the outside in: the yellow frame, then the cream sidebar, then white paper where content sits. On top of that, each brand color has one fixed meaning, so a color on screen always tells the person something: who they are, what waits for them, or what a status is. A color that means none of these is removed.

Principles

  • Yellow goes on the frame only. The frame is on every screen but nobody reads it, so color there costs almost nothing. Everything people read (messages, lists, cards, the content of pushed pages) sits on paper. The frame is the desktop rail, the web top bar and the top bar of a phone's top-level pages; see Page structure.
  • Each color has one meaning. Yellow is you, pink is to do, cyan is this item, orange interrupts, red is irreversible. Status colors are fixed too; see Meanings of color.
  • A block of brand color is a sticker. It has an ink edge and ink type on it, in both modes; see Stickers.
  • Notices are neutral. Toasts and tooltips are dark gray (layer-hud), not a brand color, and no button is yellow. A notice is an aside: a yellow toast would compete with selection, and yellow means only "you" (where you are, what you selected, what calls you). That yellow stays yellow in every theme, Boring Gray included: it is information, so it has its own tokens, you and selected (Themes).

Tokens

Surfaces

Surfaces step down in color from the frame inward. In light mode layer-canvas, layer-card and layer-popover are all white and are told apart by lines; in dark mode they are told apart by lightness, each one lighter than the one beneath it.

TokenLightDark
layer-canvas
#ffffff
#1b1b19
layer-sidebar
#fffaef
#0d0d0b
layer-popover
#ffffff
#292927
layer-backdrop
#000000 / 65%
#000000 / 60%
layer-backdrop-nested
#000000 / 40%
#000000 / 40%
layer-veilThe cover over something busy or loading in place: an image uploading or that failed, a preview being prepared. The page at 80%, so what is under it shows through, dimmed, and a default-colour Spinner on it reads in both modes. Translucent by contract, like the two backdrops.
#ffffff / 80%
#1b1b19 / 80%
layer-card
#ffffff
#242422
layer-hud
#252429
#292927
layer-frame
#ffd440
#0d0d0b
layer-frame-active
#ffffff
#ffd440
layer-code
#ffffff
#0a0c10
TokenUse for
layer-frameThe frame: the top bar of a phone's top-level pages, the desktop rail, the web top bar
layer-sidebarThe desktop sidebar
layer-canvasPaper: the desktop main area, every phone screen
layer-cardRaised containers: cards, inset groups, inputs, the composer, the tab bar
layer-popoverPopups: menus, drawers, bottom sheets, dialogs, profile cards
fill-mutedSunken fills: inline code, skeletons, neutral tiles, reactions, thread previews
layer-codeCode blocks and command lines
layer-hudToasts and tooltips; text on it is foreground-on-hud and foreground-on-hud-muted
layer-backdropThe scrim behind centered overlays, modal drawers, bottom sheets and the lightbox
layer-backdrop-nestedThe lighter scrim under a modal surface opened from another one (Stacked overlays)
layer-veilThe cover over something busy or loading in place: an image uploading or that failed to, a preview being prepared
  • Three layers are translucent, by contract. layer-backdrop and layer-backdrop-nested dim the page under a modal surface; layer-veil covers one thing that is busy, so it shows through, dimmed, under a spinner or a line that says what is happening. The veil is the page's color at 80% (white in light mode, layer-canvas in dark), so a default-color Spinner and foreground text read on it in both modes. It replaces the card and canvas colors at 75%, 80% and 90% that loading covers used before. Every other layer is opaque.
  • Dim a thumbnail on the scrim with the nested scrim. The lightbox's thumbnails lie on layer-backdrop, dark in both modes, and the ones not shown are dimmed with layer-backdrop-nested (40%), 28% on hover (/70), never a raw black (Lightbox).

Fills are laid into or over a surface: the sunken fill and the hover overlays (Hover overlays).

TokenLightDark
fill-muted
#f3f3f3
#32322f
fill-strong
#eaeaea
#3a3a37
fill-subtleHover tier subtle (light): hover on large things people read, a row, a message, a readable card, and a row whose menu is open. About 2.5 to 3 OKLab dE in both modes, on paper, the sidebar and cards alike, under every selection tint, so text keeps its contrast.
#141111 / 4%
#fafaf7 / 3%
fill-mediumHover tier medium: hover on small controls (buttons, icon buttons, chips, tabs, segment items) and press on everything, on paper-coloured surfaces. About 5.5 to 6.5 OKLab dE; dark is lighter than light because the same ink alpha shows more on a dark surface.
#141111 / 8%
#fafaf7 / 7%
fill-frame-mediumHover tier medium on the frame (rail items, on-frame buttons, the workspace button): hover and press. Its own alphas because ink shows differently on the yellow and on the near-black frame: 10% on the yellow and 6% on the dark frame land on the medium step, about 6 OKLab dE.
#141111 / 10%
#fafaf7 / 6%
fill-cell-hoverA list cell's hover and its menu-open fill (lib/list-cell.ts), drawn on the cell's inset shape. fill-subtle in light. In dark it steps up to 7.5% ink, so the rounded shape reads on a dark surface, where fill-subtle's 3% barely shows. Rows only: the global tiers don't change.
#141111 / 4%fill-subtle
#fafaf7 / 8%
fill-cell-pressA list cell's press fill, the same with a mouse and on a touch screen. fill-medium in light. In dark 12% ink, a clear step over the cell's dark hover.
#141111 / 8%fill-medium
#fafaf7 / 12%
fill-cell-selectedA list cell that is selected or open beside its list (an active InboxItem, a selected ListRow), and the located highlight on a cell. info-soft in light. In dark the cyan at 38% instead of 18%, so a selected cell stands out from a hovered one.
#d7f2feinfo-soft
#005f7a / 38%

Text and icons

TokenLightDark
foreground
#141111
#e5e5e2
foreground-muted
#141111 / 68%
#c4c4c1
foreground-hint
#141111 / 62%
#9e9e9b
foreground-disabled
#141111 / 30%
#636360
foreground-inverse
#ffffff
#1b1b19
foreground-on-hud
#f3f3f5
#e5e5e2
foreground-on-hud-mutedSecondary text on the HUD: the shortcut in a tooltip, the detail line of a toast.
#f3f3f5 / 70%
#c4c4c1foreground-muted
foreground-on-frame
#141111sticker-ink
#e5e5e2
foreground-on-frame-muted
#564919
#9e9e9b
foreground-on-frame-active
#141111sticker-ink
#141111sticker-ink
foreground-link
#184f95
#6da7ec
foreground-active
#141111foreground
#e5e5e2foreground
foreground-hover
#141111foreground
#e5e5e2foreground
TokenUse for
foregroundInk: body text, titles, control borders
foreground-mutedSecondary text: previews, descriptions, labels
foreground-hintTertiary text: times, IDs, group headings, placeholders
foreground-disabledDisabled text and icons
foreground-linkLinks in running text
danger-strongError text: the border and help text of an invalid input, a failed upload
success-strong, warning-strong, info-strong, attention-strongText in a status color: done, a warning, information, something that waits for you (Text)

Lines

There are three kinds of line, and each one means something. See Shape for their widths.

TokenLightDark
line-strong
#141111
#e5e5e2
line-seam
#141111 / 45%
#fafaf7 / 26%
line-hairline
#141111 / 15%
#fafaf7 / 10%
line-frame-active
#141111sticker-ink
#141111sticker-ink
line-fieldThe frame of a field and the composer: the ink and width of line-strong, drawn 1.5px.
#141111line-strong
#e5e5e2line-strong
line-field-hover
#141111line-strong
#e5e5e2line-strong
TokenMeaningUse for
line-hairlineInside contentList dividers, card outlines
line-seamBetween regionsRail and sidebar, a header and its content, the edge of a menu, drawer or dialog
line-strongThis is a controlThe ink border of controls and the edge of stickers; their widths are in Shape
line-fieldThis is a fieldThe 1.5px ink frame of a field and the composer, the same ink and width as a control's line-strong border

Lines, secondary text and overlays are made from translucent steps of ink. Use the role tokens above; the steps are listed for reference.

TokenLightDark
ink-2
#141111 / 2%
#fafaf7 / 2%
ink-4
#141111 / 4%
#fafaf7 / 4%
ink-6
#141111 / 6%
#fafaf7 / 6%
ink-8
#141111 / 8%
#fafaf7 / 8%
ink-10
#141111 / 10%
#fafaf7 / 10%
ink-16
#141111 / 16%
#fafaf7 / 16%
ink-20
#141111 / 20%
#fafaf7 / 20%
ink-30
#141111 / 30%
#fafaf7 / 30%
ink-40
#141111 / 40%
#fafaf7 / 40%
ink
#141111
#fafaf7

Color roles

TokenLightDark
brand-50
#fff9edpalette-yellow-50
#fff9edpalette-yellow-50
brand-100
#fff6e3palette-yellow-100
#fff6e3palette-yellow-100
brand-200
#ffe9b9palette-yellow-200
#ffe9b9palette-yellow-200
brand-300
#ffdf91palette-yellow-300
#ffdf91palette-yellow-300
brand-400
#ffd440
#ffd440
brand-500
#d3ad03palette-yellow-500
#d3ad03palette-yellow-500
brand-600
#a78802palette-yellow-600
#a78802palette-yellow-600
brand-700
#7a6300palette-yellow-700
#7a6300palette-yellow-700
brand-800
#534300palette-yellow-800
#534300palette-yellow-800
brand-900
#2d2300palette-yellow-900
#2d2300palette-yellow-900
brand-950
#1c1500palette-yellow-950
#1c1500palette-yellow-950
brand-strong
#564919
#ffd440
brand-soft
#fff0bd
#876f1f / 20%
brand-edge
#141111sticker-ink
#141111sticker-ink
brand-glow
#ffd440
#ffd440
brand-hoverHovering or pressing a sticker lays sticker-medium (10% ink) over its colour.
color-mix(in srgb, var(--brand-400) 90%, var(--sticker-ink))
color-mix(in srgb, var(--brand-400) 90%, var(--sticker-ink))
brand-active
color-mix(in srgb, var(--brand-400) 90%, var(--sticker-ink))brand-hover
color-mix(in srgb, var(--brand-400) 90%, var(--sticker-ink))brand-hover

you and selected are the yellow of the two things yellow means. They have the value of brand in Raft Yellow, but their own, not a reference to it, so a theme that grays the brand keeps them (Themes).

TokenValue, both modesUse for
youoklch(0.8829 0.1623 91.9)What is addressed to you: a mention of you, the sidebar's @ marker, a search hit, the passage of the comment you opened
selectedoklch(0.8829 0.1623 91.9)The selected sticker: where you are (a sidebar row, a segment, a tab, the tab bar's item, the current step) and what is on (a switch, a pressed toggle or panel action)
TokenLightDark
attention-50
#fff0f4palette-pink-50
#fff0f4palette-pink-50
attention-100
#ffe1e8palette-pink-100
#ffe1e8palette-pink-100
attention-200
#fec1d2palette-pink-200
#fec1d2palette-pink-200
attention-300
#fea0bcpalette-pink-300
#fea0bcpalette-pink-300
attention-400
#ff99c3
#ff99c3
attention-500
#fe7da8palette-pink-400
#fe7da8palette-pink-400
attention-600
#d4086fpalette-pink-600
#d4086fpalette-pink-600
attention-700
#9f0551palette-pink-700
#9f0551palette-pink-700
attention-800
#700238palette-pink-800
#700238palette-pink-800
attention-900
#42011epalette-pink-900
#42011epalette-pink-900
attention-950
#2f0014palette-pink-950
#2f0014palette-pink-950
attention-strong
#c00064
#ffacc7
attention-soft
#ffd6e2
#d0457c / 16%
attention-hover
color-mix(in srgb, var(--attention-400) 90%, var(--sticker-ink))
color-mix(in srgb, var(--attention-400) 90%, var(--sticker-ink))
attention-active
color-mix(in srgb, var(--attention-400) 90%, var(--sticker-ink))attention-hover
color-mix(in srgb, var(--attention-400) 90%, var(--sticker-ink))attention-hover
TokenLightDark
infoEvery solid is a sticker: ink type on the colour in both modes.
#27ccf3
#27ccf3
info-strong
#06414fpalette-cyan-800
#6ccdea
info-muted
#a9e6fepalette-cyan-200
#007592 / 28%
info-soft
#d7f2fe
#005f7a / 18%
info-hover
color-mix(in srgb, var(--info) 90%, var(--sticker-ink))
color-mix(in srgb, var(--info) 90%, var(--sticker-ink))
info-active
color-mix(in srgb, var(--info) 90%, var(--sticker-ink))info-hover
color-mix(in srgb, var(--info) 90%, var(--sticker-ink))info-hover
TokenLightDark
success
#a9d877
#a9d877
success-foreground
#141111sticker-ink
#141111sticker-ink
success-strong
#344522palette-lime-800
#b7e18c
success-muted
#c0f588palette-lime-200
#0c7d43 / 28%
success-soft
#dcfac1
#167641 / 18%
TokenLightDark
warning
#f8a16f
#f8a16f
warning-foreground
#141111sticker-ink
#141111sticker-ink
warning-strong
#5b310fpalette-orange-800
#ffaf76
warning-mutedThe warning's strong wash. Amber in light mode (hue 72), not the orange of the solid: a light orange wash at this lightness reads pink and was hard to tell from danger-muted (hue 23) side by side; 49 degrees apart it isn't.
#ffd39d
#ac571d / 28%
warning-softThe warning's soft wash, under warning banners and notices. Amber in light mode (hue 72), 52 degrees from danger-soft (hue 20), so a warning and a danger surface side by side differ in hue and not only in icon; dark mode keeps the orange at 18%, which already reads amber on the dark canvas.
#ffe7cb
#9e511e / 18%
warning-graphicA failure or warning drawn as a graphic in data visualisation: the fill or stroke of a chart mark, such as a failed route in a migration chart. The warning orange, deep enough in light mode and bright in dark mode to stand at least 3:1 against the canvas, sidebar, card and popover (WCAG 1.4.11). Never text: warning text takes warning-strong.
#d66919
#f89961
warning-hover
color-mix(in srgb, var(--warning) 90%, var(--sticker-ink))
color-mix(in srgb, var(--warning) 90%, var(--sticker-ink))
warning-active
color-mix(in srgb, var(--warning) 90%, var(--sticker-ink))warning-hover
color-mix(in srgb, var(--warning) 90%, var(--sticker-ink))warning-hover
TokenLightDark
dangerdanger = the destructive sticker (red fill, ink type); danger-strong is the error ink for invalid fields and destructive menu items.
#f97264
#f97264
danger-foreground
#141111sticker-ink
#141111sticker-ink
danger-strong
#b5321a
#f8a49d
danger-muted
#fbbdb9palette-red-200
#d33c30 / 30%
danger-soft
#fddedd
#c93126 / 18%
danger-hover
color-mix(in srgb, var(--danger) 90%, var(--sticker-ink))
color-mix(in srgb, var(--danger) 90%, var(--sticker-ink))
danger-active
color-mix(in srgb, var(--danger) 90%, var(--sticker-ink))danger-hover
color-mix(in srgb, var(--danger) 90%, var(--sticker-ink))danger-hover
TokenLightDark
inactive
#c0b9b1
#c0b9b1
inactive-foreground
#141111sticker-ink
#141111sticker-ink
inactive-soft
#e0dcd7
#32322f

Meanings of color

ColorRoleMeansUse for
Yellowbrand, you, selectedYouThe frame, the location tile of the place you are in, your server (the workspace tile, yellow on ink): brand. A mention of you, search hits, the passage of the comment you opened: you. The selected item in navigation, an on switch: selected
PinkattentionTo doAt most one primary button per screen; unread counts and attention dots
CyaninfoThis item, informationIn progress, runtimes, external agents, progress bars; info-soft for the item singled out in content, an active filter, an info banner
OrangewarningInterruptsButtons that stop, leave, archive or reset (their rows in a danger zone stay ink); warnings; Todo; the error presence light
ReddangerIrreversibleDelete buttons, and a delete row in a danger zone
LimesuccessDoneDone, online, success banners, a read mention (a bare check: read-mark, palette-lime-700 in light mode, the online lime in dark mode)
Lavenderpalette-lavender-*—In review on older tasks, and people without a photo
StoneinactiveClosedClosed, offline
  • Use orange when something goes wrong: red is only for consequences that cannot be undone. An action that interrupts but can be undone, such as archiving, is warning (orange); one that cannot be undone is danger (red).
  • Keep warning and danger apart by hue, not only by icon: a warning surface beside a danger surface must read as a different color at a glance. A pale wash of the warning orange reads pink next to danger's, so in light mode warning-soft and warning-muted are amber (hue 72, about 50° from danger's 20 to 23, and short of the brand yellow's 92); the solid warning and warning-graphic stay orange, set apart from the red by their lightness and saturation.
  • Use blue (foreground-link) only for links in running text. It is a deep, quiet blue, close to the link blue of Claude's apps and docs: in light mode it has about half the chroma of a bright link blue, so it sits beside black ink and yellow without being the loudest thing on a page full of links, and it still reads as a link at a glance. Dark mode uses the same blue, lightened to read on the dark canvas.
  • Lime, lavender and stone only mark a status. Don't use them for anything else.
  • Mark only the reader with you: a mention of them, their search hits, the passage of the comment they opened. A reference to anything else, a message, a thread or an app, takes its chip's own color, even when it is drawn as prominently: a message reference shown as the yellow sticker read as a mention at a glance (artin, 2026-11-09, #triage:71de6c0b).

Warnings in charts

A failure or warning drawn as a graphic, such as a failed route in a migration chart or a failed bar, is filled or stroked with warning-graphic. A chart mark is read by its shape and color alone, with no ink edge, so it needs the 3:1 against what it sits on that WCAG 1.4.11 asks of graphics. The warning sticker orange is 2.04:1 on white: enough with a sticker's edge, too faint for a bare mark.

Modewarning-graphicCanvasSidebarCardPopover
Lightoklch(0.64 0.16 50)3.56:13.42:13.56:13.56:1
Darkoklch(0.77 0.135 50)7.98:19.00:17.20:16.75:1
  • Keep the warning hue (50) and change only lightness and chroma, so the mark reads as the same orange as the warning around it.
  • Use it for graphics only: a fill, a stroke, a marker, a legend swatch. Text about the failure, a value label or a legend entry's words take warning-strong, which is deep enough for text; warning-graphic is 3.56:1, under the 4.5:1 text needs.
  • A failure in a chart is warning-graphic, not danger: red is only for what cannot be undone.

Statuses

Tasks have five statuses and presence has five lights. Four of the task statuses and all five lights have a color, and they never change meaning; the fifth status, Backlog, has none. Task statuses are spelled Backlog, Todo, In progress, Done and Closed. In review keeps its color for older tasks still in it (decision 0043).

TokenLightDark
task-status-todo
#f8a16f
#ff6900
task-status-todo-soft
#fde6de
#9e511e / 18%
task-status-todo-strong
#5b310fpalette-orange-800
#ffaf76
task-status-in-progress
#27ccf3
#27ccf3
task-status-in-progress-soft
#d7f2fe
#005f7a / 18%
task-status-in-progress-strong
#06414fpalette-cyan-800
#6ccdea
task-status-in-review
#bbafe6
#9d8ada
task-status-in-review-soft
#efecf9
#6853a0 / 24%
task-status-in-review-strong
#442b7cpalette-lavender-800
#ccc4ecpalette-lavender-300
task-status-done
#a9d877
#20c16b
task-status-done-soft
#dcfac1
#167641 / 18%
task-status-done-strong
#344522palette-lime-800
#6ed892
task-status-closed
#c0b9b1
#8f8f8d
task-status-closed-soft
#e0dcd7
#32322f
task-status-closed-strong
#3e3b38palette-stone-800
#9e9e9b
Task statusTokenPresence lightToken
Todo (orange)task-status-todoOnline (lime)presence-online
In progress (cyan)task-status-in-progressBusy (yellow)presence-busy
In review (lavender)task-status-in-reviewError (orange)presence-error
Done (lime)task-status-doneOffline (stone)presence-offline
Closed (stone)task-status-closedExternal agent (cyan)presence-external
TokenLightDark
presence-online
#a9d877
#a9d877
presence-busyYellow for an agent at work, and for Status variant="primary". The value of brand in Raft Yellow, but its own, so a theme that grays the brand (Boring Gray) keeps a working agent yellow.
#ffd440
#ffd440
presence-busy-softThe tint of the Working chip (Badge variant="busy"). The value of brand-soft in Raft Yellow, but its own, so Boring Gray keeps it yellow.
#fff0bd
#876f1f / 20%
presence-error
#f8a16f
#f8a16f
presence-offline
#c0b9b1
#c0b9b1
presence-external
#27ccf3
#27ccf3

The sixth presence swatch, presence-busy-soft, is not a light: it is the tint of the Working chip (Soft tints).

  • Put a status chip on its task-status-*-soft tint, except Backlog's, which has none.
  • Give Backlog ("not now") no hue: every hue already has a meaning, and gray is Closed's. Its pixel is hollow: the same 10px square with a 1.5px edge and nothing inside. The edge is line-strong, not the sticker-ink edge of the filled pixels, which is dark in dark mode and would vanish on the dark canvas without a fill inside it. Its chip is outlined, a line-hairline border with no tint, around the hollow pixel and the word in foreground. It differs from the outlined chip of a task reference that isn't loaded yet, which has no pixel and foreground-muted words (Referring to a task).
  • Draw Backlog with raft-ui's parts, never by hand: TaskStatusIcon (or TaskBacklogIcon) draws the hollow pixel, and TaskChip, TaskStatusBadge and taskStatusSoft draw the outlined chip (Tasks components).
  • presence-busy has its own value instead of pointing at brand, so that a change of brand color doesn't change what busy looks like, and neither does a theme: Boring Gray grays brand, and a working agent stays yellow (Themes). The Working chip's tint, presence-busy-soft, is its own copy of brand-soft for the same reason.
  • presence-offline is stone from the palette, not a default gray: raft-ui doesn't use Tailwind's default palette, so every presence light comes from the same palette.
  • Presence lights never blink; see Motion.

A read mention is marked by a bare check, not a light, in its own token: read-mark is palette-lime-700 in light mode (6.2:1 on white) and the online lime in dark mode (10.5:1 on the dark canvas). The online lime alone is 1.64:1 on white, enough inside a light's ink edge but not for a bare 10px check (Read receipts on a mention).

Unknown token group: read-mark

Soft tints

A soft tint (*-soft) is a highlight, never a sticker: it has no border.

  • Draw status chips and runtime chips as a soft tint, with one square pixel or an icon carrying the saturated color, not as a saturated fill with an ink border. A screen can hold a dozen of them, and when the saturated color is only one pixel large, the screen stays quiet.
TintUse for
brand-softMenu highlight
presence-busy-softThe Working chip
info-softThe selected item in content, filters, info banners, runtime chips, thread references, a message inside a notification
attention-softChannel references, a reaction you added
success-softSuccess banners, the Done chip
warning-softWarning banners, errors and warnings in notifications
task-status-todo-softThe Todo chip
danger-softDanger banners
task-status-in-review-softThe In review chip, on older tasks
task-status-closed-softThe Closed chip
  • Draw a usage meter warning from 80% used, and keep a used-up one a full warning bar, not danger: an allowance comes back at its reset, so running out interrupts work but isn't irreversible (Meter).

Text selection

Selected text has its own tokens. Two rules hold for every text in the system, in every theme and both modes:

  1. Selected text stays easy to read: it takes the strongest text of its surface's tone, not its own color. Ink on a light surface, the light foreground on a dark one: 4.5:1 or more against the selection, on every surface.
  2. The selection shows on the surface it is on: the selected surface differs from the surface by an OKLab ΔE of 5 or more, so it is clear where a selection starts and ends, on a tinted banner, a highlighted row or a yellow mark too.
ModeselectionAgainst the canvasselection-foregroundSelected text
Lightbrand mixed into the page at 62% (OKLab), opaque1.24:1, ΔE 12foreground (ink)15.2:1, APCA Lc 91
Darkbrand over the surface at 22% (selection-dark), the wash of a commented passage (Comment)1.77:1foreground (the light foreground)7.7:1, APCA Lc 80
  • Why the text loses its color. A selection is a fill laid over the text's surface, so it lowers the contrast of any text that keeps its own color. Light text on the light fill vanished: a toast's sat at 1.03:1 (Artea, 2026-12-02, #proj-raft-ui:#344). The dark wash lightens what is under it: a hint fell from 6.2:1 to 3.5:1, a link to 3.7:1, a muted note and the status colors to 3.8–4.4:1, a disabled label to 1.5:1 (#proj-raft-ui:#345). The strongest text keeps 5.8:1 or more on every surface. A selected link, hint or code is ink in light mode and the light foreground in dark mode; this is the price of one rule for every text.
  • Why 62%. brand-soft, the light selection before, is the yellow of a highlight, a commented passage and a search hit, and a selection on them didn't show (ΔE 0). 62% is the least that shows (ΔE ≥ 5) on every light surface, those yellows included, in every theme; much more stops showing on a search hit's yellow (75%: ΔE 3.8). Mixed in OKLab: in oklch the mix with the page's hueless white swings to orange. Boring Gray selects in gray (oklch(0.84 0 0)): its lighter gray was the color of its inactive chips.
  • A dark surface in light mode selects as dark mode does: put selection-on-dark on it (the HUD's toast, tooltip, drag preview and pane drop overlay have it; an app's label over an image, a lightbox, a dark note add it). The fill is selection-dark and the text the surface's light type, foreground-on-hud. Ink on the light fill was readable but looked like a hole cut in the dark surface (Artea, 2026-12-02, #proj-raft-ui:#344). Ink stays the fallback for a dark surface that doesn't say so.
  • A surface in the selection's own yellow takes selection-on-brand: a search hit, a mention of you, a search result's highlighted row. In dark mode the yellow wash doesn't show on yellow (ΔE 0.1), so there the selection is ink over the yellow at 10% (selection-brand, sticker-medium) and the text stays ink; in light mode it is the page's selection, which shows on them.
  • Controls and labels aren't text to copy: they are select-none. Buttons, badges, segments, tabs, toggles, sidebar rows, reactions, choice and suggestion rows, checkboxes, and the frame's bars (the top bar, the rail, the phone's heads on the frame). A selection dragged across a page then holds only what people read, and the yellow and pastel stickers of a control, where no selection could show, never carry one. Put select-none on the class string that paints the control's fill, even when its root already has it, so the check below sees it. select-none is for controls and labels only, never a way to make the check pass: a text people read that fails the check gets a selection that works on its surface. A Badge that holds a value people copy (a slash command, a tool name, a version) adds select-text (Kirby, 2026-12-02, #proj-raft-ui:#345).
  • raft-ui paints ::selection once, for every element (styles.css), and an app adds no rule of its own. A surface with its own selection (the timeline, a comment) sets only the fill (selection:bg-selection). The selection comes with the surface's mode: a highlight reads custom properties from the selected element, so a .dark or .light island follows its own mode.
  • selection-audit.browser.test.tsx holds both rules: it reads every text-on-fill pair from the recipes, adds every reading text on every layer, and measures each, selected, in every theme and both modes. A new token, surface or theme that breaks a rule fails it.
  • One case it can't reach: the passage of an open comment discussion is painted with the Highlight API, yellow with ink type, and a selection over it in dark mode is the light foreground on yellow. A highlight has no element to take selection-on-brand from.

Hover overlays

Hover and press lay a translucent overlay over a control instead of changing its fill, in two tiers; see Hover and press.

TokenTierOver
fill-subtleSubtleHover on a row, a message or a readable card (a comment, attachment or task card, the replies bar), and a row with its menu open
fill-mediumMediumHover on paper-colored controls (buttons, icon buttons, chips, tabs, segments) and press on everything
sticker-mediumMediumHover and press on a color sticker
sticker-ink-mediumMediumHover, press and open on an ink sticker (the server tile): ink over ink doesn't show, so it lays paper
fill-frame-mediumMediumHover and press on anything on the frame

fill-subtle is lighter than every selection tint, so a hovered row never looks selected and its text keeps its contrast. The names these tokens had before the two tiers are removed; codemods/token-names.mjs renames them (Tokens).

fill-medium is also the empty track of a Meter or Progress bar. Being translucent, it shows a step darker than whatever the bar sits on: paper, a fill-muted block, an inactive card. An opaque fill-muted track vanished on a fill-muted block, as on a stale usage card (sindresorhus and Kirby, 2026-11-28, #proj-mobile).

Stickers

A sticker is a block of brand color: avatars, the selected item, the location tile, the primary button, badges.

  • Give every block of brand color a line-strong ink edge: stickers and paper are only 1.4:1 to 2.8:1 apart, so without an edge a sticker doesn't hold its shape. How wide the edge is depends on the sticker's size and whether it has a label (Stroke widths); a small labeled sticker's thinner edge holds its shape as well.
  • Put ink type on a sticker (sticker-ink), never white, in both modes.
  • Don't invert stickers in dark mode. Sticker colors have the same value in both modes; dark mode adds the die-cut edge instead (see Dark mode).
  • Don't put a shadow on a control. The hard sticker shadow is only for brand illustration; see Elevation.
TokenLightDark
sticker-ink
#141111
#141111
sticker-paper
#ffffff
#ffffff
sticker-edge
#141111 / 0%
#fafaf7 / 35%
sticker-mediumHover tier medium on a colour sticker (primary, warning and danger buttons, colour badges, the selected segment on press): hover and press, 10% ink in both modes.
#141111 / 10%
#141111 / 10%
sticker-ink-mediumHover tier medium on an ink sticker (the server tile in the rail or the sidebar header): hover, press and open, 6% paper in both modes, since ink laid over ink doesn't show.
#ffffff / 6%
#ffffff / 6%

Contrast

  • foreground, foreground-muted and foreground-hint are at least 4.5:1 on every surface, every soft tint and every popup, in both modes, and on a hovered row over any of them. There are no exceptions to remember.
  • foreground-hint is slightly darker in light mode and lighter in dark mode than 60% ink, the value the product used before it adopted these tokens, which fails 4.5:1 on some tints and popups. Tertiary text carries times, IDs and counts people need to read, so it gets the same guarantee as body text.
  • Error text and the border of an invalid input use danger-strong, a dark red at 6.1:1 on paper. The brighter reds the product used before were 4.2:1 and 2.8:1 on white, below the 4.5:1 text needs. The delete button keeps danger, because the text on it is ink.
  • Words in a status color take that family's -strong token, never the sticker color: success-strong, warning-strong, danger-strong, info-strong, attention-strong. Each is at least 4.5:1 on the canvas, the sidebar, a card and a popover, in both modes and every theme. The sticker colors are made for a fill with ink type on it, and as text on white success is 1.64:1, warning 2.03:1 and danger 2.76:1. An icon that goes with the words takes the same ink. A fill with ink on it keeps the sticker color, and a bare mark in a chart takes warning-graphic (Warnings in charts).
  • Ink on a sticker is at least 6.8:1.
  • line-seam is 3.0:1 on white and 2.8:1 on yellow.

Palette

The role tokens point at a small palette. Use the palette directly only where no role fits, such as lavender for people without a photo. The palette tokens are palette-<color>-<step>, with the bare utilities bg-palette-<color>.

TokenLightDark
palette-yellow-50
#fff9ed
#fff9ed
palette-yellow-100
#fff6e3
#fff6e3
palette-yellow-200
#ffe9b9
#ffe9b9
palette-yellow-300
#ffdf91
#ffdf91
palette-yellow-400
#ffd441
#ffd441
palette-yellow-500
#d3ad03
#d3ad03
palette-yellow-600
#a78802
#a78802
palette-yellow-700
#7a6300
#7a6300
palette-yellow-800
#534300
#534300
palette-yellow-900
#2d2300
#2d2300
palette-yellow-950
#1c1500
#1c1500
palette-lavender-50
#f7f6fc
#f7f6fc
palette-lavender-100
#efecf9
#efecf9
palette-lavender-200
#dcd7f2
#dcd7f2
palette-lavender-300
#ccc4ec
#ccc4ec
palette-lavender-400
#bbafe6
#bbafe6
palette-lavender-500
#9d8ada
#9d8ada
palette-lavender-600
#7f62cb
#7f62cb
palette-lavender-700
#6341b0
#6341b0
palette-lavender-800
#442b7c
#442b7c
palette-lavender-900
#251548
#251548
palette-lavender-950
#170c31
#170c31
palette-pink-50
#fff0f4
#fff0f4
palette-pink-100
#ffe1e8
#ffe1e8
palette-pink-200
#fec1d2
#fec1d2
palette-pink-300
#fea0bc
#fea0bc
palette-pink-400
#fe7da8
#fe7da8
palette-pink-500
#fe2f8b
#fe2f8b
palette-pink-600
#d4086f
#d4086f
palette-pink-700
#9f0551
#9f0551
palette-pink-800
#700238
#700238
palette-pink-900
#42011e
#42011e
palette-pink-950
#2f0014
#2f0014
palette-cyan-50
#ecf9ff
#ecf9ff
palette-cyan-100
#d7f2fe
#d7f2fe
palette-cyan-200
#a9e6fe
#a9e6fe
palette-cyan-300
#68dafd
#68dafd
palette-cyan-400
#28ccf3
#28ccf3
palette-cyan-500
#1ea6c6
#1ea6c6
palette-cyan-600
#15849f
#15849f
palette-cyan-700
#0e6276
#0e6276
palette-cyan-800
#06414f
#06414f
palette-cyan-900
#02252f
#02252f
palette-cyan-950
#01161c
#01161c
palette-orange-50
#fef5f1
#fef5f1
palette-orange-100
#fde6de
#fde6de
palette-orange-200
#fbd1c0
#fbd1c0
palette-orange-300
#f9b899
#f9b899
palette-orange-400
#f8a16f
#f8a16f
palette-orange-500
#dd7e34
#dd7e34
palette-orange-600
#ad6127
#ad6127
palette-orange-700
#83481a
#83481a
palette-orange-800
#5b310f
#5b310f
palette-orange-900
#331905
#331905
palette-orange-950
#220e02
#220e02
palette-lime-50
#f1fde9
#f1fde9
palette-lime-100
#dcfac1
#dcfac1
palette-lime-200
#c0f588
#c0f588
palette-lime-300
#b4e67f
#b4e67f
palette-lime-400
#a9d877
#a9d877
palette-lime-500
#8ab261
#8ab261
palette-lime-600
#6b8b4a
#6b8b4a
palette-lime-700
#506836
#506836
palette-lime-800
#344522
#344522
palette-lime-900
#1c2711
#1c2711
palette-lime-950
#101808
#101808
palette-red-50
#fef1f0
#fef1f0
palette-red-100
#fddedd
#fddedd
palette-red-200
#fbbdb9
#fbbdb9
palette-red-300
#fa9991
#fa9991
palette-red-400
#f97264
#f97264
palette-red-500
#eb4423
#eb4423
palette-red-600
#bb3419
#bb3419
palette-red-700
#8e2510
#8e2510
palette-red-800
#621708
#621708
palette-red-900
#3e0b03
#3e0b03
palette-red-950
#280501
#280501
palette-stone-50
#f7f6f5
#f7f6f5
palette-stone-100
#efedeb
#efedeb
palette-stone-200
#e0dcd7
#e0dcd7
palette-stone-300
#d2cbc2
#d2cbc2
palette-stone-400
#c0b9b1
#c0b9b1
palette-stone-500
#9d9891
#9d9891
palette-stone-600
#7b7671
#7b7671
palette-stone-700
#5d5955
#5d5955
palette-stone-800
#3e3b38
#3e3b38
palette-stone-900
#23211f
#23211f
palette-stone-950
#141312
#141312
palette-cream-50
#fffdf9
#fffdf9
palette-cream-100
#fffcf5
#fffcf5
palette-cream-200
#fffaef
#fffaef
palette-cream-300
#f9eccf
#f9eccf
palette-cream-400
#ebd38f
#ebd38f
palette-cream-500
#d2b100
#d2b100
palette-cream-600
#a78c00
#a78c00
palette-cream-700
#7c6800
#7c6800
palette-cream-800
#554500
#554500
palette-cream-900
#312700
#312700
palette-cream-950
#191300
#191300
  • Dark mode: what changes and what stays in dark mode.
  • Themes: the themes a person can pick and what each may change.
  • States: the colors of hover, selection, unread and error.
  • Brand: how much brand color each kind of page may use.
  • Button: which button color to use for which action.