The mobile app has one colour of its own, Seed teal, and borrows every other colour from the platform by role. This page lists every token and role that appears in the Contract files, where each is used, and the contrast each was chosen to meet.
accent-color="brand": the same controls are Seed teal. Nothing else changed.Brand tokens
The tokens live in app.tamber. Colours are written as light-dark(light, dark).
Token | Light | Dark | Meaning | Used by |
|---|---|---|---|---|
|
|
| The platform's tint for this app | Every unstyled button, link and symbol, the tab bar selection, focus |
|
|
| The same teal, by name | The app root ( |
|
|
| A surface under body-size white text | A person's own chat bubble; the Badge on a run card |
|
|
| A failed status under white text | The Badge of a failed run |
|
|
| A faint teal surface | Nothing. DESIGN.md assigns it to "selected rows, embed card edge", but no contract names it |
|
|
| Text on brand fills | Avatar initials, "Add a comment", the button block, a person's own chat bubble |
brand.fill and danger.fill are declared with pair=ink.on-brand, which makes the build warn if the pair falls below 4.5:1. ink.on-brand is marked scheme=fixed so the lint that flags one-scheme colours leaves it alone. The format is explained in Tamber design tokens.
Contrast, as stated in the sources
Colour | Statement | Source |
|---|---|---|
| 5.2:1 under white; at least 4.5:1 on the grouped background | DESIGN.md, |
| 3.0:1 under white ("the 3:1 Exact asks of a filled button's label"), 4.6:1 on the dark grouped card | DESIGN.md |
| At least 4.5:1 under white in both schemes | DESIGN.md, |
Avatar disc | White initial at least 4.5:1 "on every hue" |
|
This is why there are two teals in dark mode: brand is lightened to #26a596 so it reads as text on dark surfaces, and brand.fill stays darker at #147a71 so white body text on it still reaches 4.5:1. These ratios are quoted, not re-measured for this page.
Platform roles and the avatar colour
Every other colour is a platform role: -exact-secondary-label (115 uses), -exact-system-red (25), -exact-label (24), -exact-secondary-background (10), -exact-separator (9), -exact-tertiary-label (4) and -exact-background (1). An image-less Avatar is a green disc whose hue is computed from the name. Both are detailed on Platform colour roles in use.
No colour literals in screens
DESIGN.md: "No colour literals in screens: no-tells and lower-colour-one-scheme flag them." no-tells is Exact's script that "lists every literal colour, font size and weight left"; lower-colour-one-scheme is the build warning for "a literal colour that stays the same in dark mode". The contracts hold to it with two declared exceptions: the avatar's hsl() and the fixed white ink.on-brand.
Do and do not
Do leave a colour unsaid when the platform would pick the right one.
Do use brand for text, symbols and edges, and brand.fill under white body text.
Do use -exact-system-red only for errors and destructive words.
Do not write a hex value in a screen. Add a token to app.tamber if the brand needs a new colour.
Do not use teal for decoration. In the app it always means "you can tap this" or "this is yours or current".
Why
"A brand colour the platform has no role for is the one place for a literal" (contract-for-agents.md). Keeping the palette to one hue is what lets the app follow the system in light and dark with no per-screen work, and it is a deliberate break from the React Native app's "custom dark theme copied from the web" (DESIGN.md), see What changed from the React Native app and why.
User stories
This page helps deliver these stories. Each story lists this page in its Trace, so the link holds in both directions (traceability).
US-READ-02 Read a document: Label, secondary and brand roles used by blocks
US-AGENT-05 Chat with an agent: Brand fill means mine
US-AGENT-10 Open documents and links an agent refers to: Brand colour marks a tappable document link
US-APP-03 Use the app in light or dark: Brand tokens with light and dark values and stated contrast
US-TEAM-08 Ask for a design change: Brand tokens: the one place a colour changes
Related
Light and dark, Accessibility, Buttons and actions, Leave it unsaid, Names, not identifiers. Implementation: Tamber design tokens, Shared components and visual design. Source: app.tamber, the avatar at ui.contract L4-L21, the root tint at app.contract L744.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime