# Colors

Source: https://ecosphere.dev/docs/foundations/colors (Ecosphere 1.5). Install `vue-ecosphere` for Vue 3 or `react-ecosphere` for React 18.2+/19: same components, props, markup and stylesheet.

Blue on cool slate. Blue carries every accent, selection and chart; the grounds and inks are slate; green, orange and red appear only as status. Reach for a token, never a raw hex.

## Grounds and lines

The page, cards and wells, and the hairlines between them. Never let a border alone separate a control from its ground.

`--app-canvas`

#f6f7f9 · dark #0d141c

Page and sidebar ground — a cool blue-gray a step off white (`body`, `.sidebar`, `.rowgroup__head`); also the cut-out ring on `.iconbtn__dot`.

`--surface`

#fbfcfe · dark #131c27

The ground every card, menu, toast, input and table paints — a cool near-white rather than pure #ffffff, so no surface in the system reads warm.

`--surface-sunken`

#f2f5f9 · dark #1a2532

Recessed well and hover fill, a cool blue-gray: `.listrow:hover`, `.empty__ico`, `.msg__w`, `.badge--neutral`, read-only controls.

`--surface-inverse`

#12202f · dark #2b3a4c

The one near-black for inverted surfaces. No rule uses it yet — reserved for inverted panels.

`--border`

#e4e8ee · dark #233040

Hairline rules and separators: `.menu`, the `.tabs` underline, `.menu__sep`, disabled edges. 1.2:1 on `surface` — a hairline, never a control boundary.

`--border-strong`

#d3d9e2 · dark #304055

Resting 1px edge on interactive containers: `.input`, `.search__in`, `.btn--secondary`, `.check`, `.chip`. 1.4:1 on `surface`, under the 3:1 non-text floor — carried from the source.

`--border-focus`

#2c6fc8 · dark #5c97ea

Colour of the 2px `:focus-visible` outline (4.7:1 on `surface`); its only use.

`--border-hover`

#c4cbd6 · dark #3d4f66

Hover border of inputs, textareas, OTP digits and the finder: a step darker than border-strong.

## Ink

Slate. Never set anything a reader must actually read in text-muted.

`--text-primary`

#12202f · dark #e7ecf3

Default ink on `surface` and `app-canvas` (17.9:1): body copy, `.listrow__t`, `.tab.is-active`, tooltips.

`--text-secondary`

#5a6069 · dark #a8b2bf

Second-rank text on `surface` and `surface-sunken` (6.7:1): `.subhead`, `.menu__opt`, `.btn--tertiary`, `.notice__b`.

`--text-muted`

#727578 · dark #8792a1

Meta text and resting icons on `surface` and `surface-sunken`: `.eyebrow`, `.iconbtn`, `.tab`, `.listrow__meta`, placeholders. 3.7:1 / 3.4:1 — under 4.5:1; kept exactly as the source set it.

`--text-disabled`

#a2a5a8 · dark #596473

Disabled ink on `surface` and `surface-sunken` (`.btn:disabled`, `.pg:disabled`) and inactive tab dots. 2.1:1 — disabled text, which WCAG exempts.

## Accent

One blue family. brand-violet names are kept for compatibility and hold blue; brand-violet-tint is the one selection fill.

`--accent`

#1d57a6 · dark #3a76cc

The primary purple: fills `.btn--primary` (white ink, 11.5:1) and is accent ink on `surface` (11.5:1).

`--accent-hover`

#16468a · dark #4a86dc

Hover fill of `.btn--primary`, `.split-btn__c`, `.chatbox__send`; hover ink of `.link` on `surface`.

`--accent-press`

#193967 · dark #2c6fc8

Pressed (`:active`) background of `.btn--primary`; its only use.

`--accent-quiet`

#2c6fc8 · dark #5c97ea

Focus border on `.input` and `.finder`, and quiet accent glyph ink on `surface` (5.8:1).

`--accent-tint`

#edf2f9 · dark #172638

Pale accent fill for quiet, non-selected states: `.avatar`, `.badge--accent`, `.tag`, `.cite`, `::selection`, own-message bubbles and the hover fill on an empty `.tpick` or `.slot`. Selection uses `brand-violet-tint`.

`--accent-tint-hi`

#dfe8f5 · dark #1d3150

Hover fill for controls that already sit on a tint: `.chip__x`, `.ask__go`, `.aibtn`.

`--brand-violet`

#2c6fc8 · dark #5c97ea

The `.sidebar__glyph` monogram on the `app-canvas` sidebar; also the value behind `border-focus`.

`--brand-violet-tint`

#e8f0fc · dark #15253b

The system's selection fill: a selected table row (`.table tbody tr.is-sel`), the `.dtable__top` toolbar in its selected state, a chosen `.pill`, and the ring on `.plan--pick`. Cleaner than `accent-tint`, which is a low-chroma mauve-grey and reads as disabled across a whole row.

`--brand-violet-tint-hi`

#bad4fd · dark #1f3d66

Deeper violet tint for hover on a violet ground. No rule uses it yet.

`--text-on-accent`

#ffffff · dark #ffffff

White ink for text on an accent fill (11.5:1 on `accent`). `.btn--primary` still hardcodes `#fff`; use this token in new work.

`--text-accent`

#1d57a6 · dark #82b4fb

Accent-coloured text on `surface` (11.5:1), same value as `accent`. No rule uses it yet; prefer it for accent ink.

## Status

The only colours outside the blue family. They reach the screen only through badge, score, toast and notice.

`--success`

#2f6b52 · dark #5fb48c

Green status ink on `success-tint` (5.5:1) and on `surface`: `.badge--success`, `.stat__delta`, `.toast--success`.

`--success-tint`

#e9f1ec · dark #132620

Fill behind `.badge--success`.

`--warning`

#a8451b · dark #e08a5c

Status ink for something that needs attention, on `warning-tint` (5.3:1) and on `surface` (6.0:1): `.badge--warning`, `.notice__i`, the `.notice` bar, `.toast--warning`. Rust, not amber — the palette carries no yellow.

`--warning-tint`

#edf1f7 · dark #2a1d15

Cool fill behind `.badge--warning` and the `.notice` limit block. Red stays reserved for real faults.

`--danger`

#9b2c4e · dark #d0587a

Destructive red: fills `.btn--danger` and is ink on `danger-tint` (6.4:1) for `.badge--danger`, `.req`, `.menu__opt--danger`.

`--danger-tint`

#fbebf0 · dark #2c1820

Fill behind `.badge--danger` and `.menu__opt--danger:hover`.

`--info`

#1d57a6 · dark #5c97ea

Informational status — the accent value, because there is no blue in this palette. Used by `.toast--info`.

`--info-tint`

#e8f0fc · dark #15253b

Informational tint beside the other status tints. No rule uses it yet.

## Data ramp

The six-step chart ramp, light to dark blue, bound inline as the Stat card binds it.

`--p0`

#e8f0fc · dark #16263b

Lightest of the six-step chart ramp; bound inline on `.segbar` segments and `.legend__dot`s (see Stat), not by any rule.

`--p1`

#bad4fd · dark #1f3d66

Chart ramp step 2 of 6; bind it inline on `.segbar` segments and `.legend__dot`s, as the Stat card does.

`--p2`

#82b4fb · dark #2c5fa8

Chart ramp step 3 of 6; bind it inline on `.segbar` segments and `.legend__dot`s, as the Stat card does.

`--p3`

#5c97ea · dark #4a86dc

Chart ramp step 4 of 6; bind it inline on `.segbar` segments and `.legend__dot`s, as the Stat card does.

`--p4`

#2c6fc8 · dark #82b4fb

Chart ramp step 5 of 6; bind it inline on `.segbar` segments and `.legend__dot`s, as the Stat card does.

`--p5`

#1d57a6 · dark #bad4fd

Darkest chart-ramp step (11.5:1 on `surface`): strokes `.plot .line`, fills `.plot .dot`, and leads the `.segbar`.

## Categorical

Blues taken in order from cat-1 (the accent), alternating dark and light, with a slate last.

`--cat-1`

#1d57a6 · dark #4a86dc

Series slot 1 — violet. Assign the slots in order and never cycle them: colour follows the entity, not its rank. The six are the score-scale hues resequenced so neighbouring slots stay apart under deuteranopia and protanopia (worst adjacent pair ΔE 8.2, OKLab ×100, validated); they mean series identity here, not score.

`--cat-2`

#4a86dc · dark #9cc3f7

Series slot 2 — teal.

`--cat-3`

#193967 · dark #2c5fa8

Series slot 3 — rose.

`--cat-4`

#82b4fb · dark #d6e5fd

Series slot 4 — blue.

`--cat-5`

#a2a5a8 · dark #6b7480

Series slot 5 — rust.

`--cat-6`

#727578 · dark #a2a8b0

Series slot 6 — green.

## Scores

sc-1 (best) to sc-6, each with a -t tint and a -b border.

`--sc-1`

#1d57a6 · dark #82b4fb

Score step 1 (best) ink on `sc-1-t` inside `.sc1` (5.9:1); also fills the `.dot1` legend swatch.

`--sc-1-t`

#e8f0fc · dark #16263b

Tint fill behind the `.sc1` score tag.

`--sc-1-b`

#bad4fd · dark #24406a

Border of the `.sc1` score tag.

`--sc-2`

#193967 · dark #b9c6d9

Score step 2 ink on `sc-2-t` inside `.sc2` (5.5:1); also fills the `.dot2` legend swatch.

`--sc-2-t`

#e3e9f2 · dark #1c2533

Tint fill behind the `.sc2` score tag.

`--sc-2-b`

#b9c6d9 · dark #344358

Border of the `.sc2` score tag.

`--sc-3`

#2765b8 · dark #9cc3f7

Score step 3 ink on `sc-3-t` inside `.sc3`; also fills the `.dot3` legend swatch. 3.3:1 at 11.5px — under 4.5:1, kept as the source set it.

`--sc-3-t`

#edf4fd · dark #14273f

Tint fill behind the `.sc3` score tag.

`--sc-3-b`

#c9ddf8 · dark #27466e

Border of the `.sc3` score tag.

`--sc-4`

#4b6584 · dark #a9b9cc

Score step 4 ink on `sc-4-t` inside `.sc4`; also fills the `.dot4` legend swatch. 3.1:1 at 11.5px — under 4.5:1, kept as the source set it.

`--sc-4-t`

#eaeff5 · dark #1b2633

Tint fill behind the `.sc4` score tag.

`--sc-4-b`

#c5d0dd · dark #34475e

Border of the `.sc4` score tag.

`--sc-5`

#5a6069 · dark #b3b8bf

Score step 5 ink on `sc-5-t` (5.1:1); also fills the `.dot5` legend swatch. Orange, the step between green and red.

`--sc-5-t`

#eef0f2 · dark #1e242c

Tint fill behind the `.sc5` score tag.

`--sc-5-b`

#d3d6da · dark #3a424d

Border of the `.sc5` score tag.

`--sc-6`

#3d4a5c · dark #c3c8d0

Score step 6 (worst) ink on `sc-6-t` inside `.sc6`; also fills the `.dot6` legend swatch. 3.8:1 at 11.5px — under 4.5:1, kept as the source set it.

`--sc-6-t`

#ebedf0 · dark #1d222a

Tint fill behind the `.sc6` score tag.

`--sc-6-b`

#c3c8d0 · dark #3b434f

Border of the `.sc6` score tag.

## Veils

Translucent values that cannot be derived from a solid token. Each tracks a solid by hand: change the solid, change these with it.

`--veil`

rgba(246,247,249,.88) · dark rgba(13,20,28,.88)

`app-canvas` at 88% — the frosted ground of the sticky `.mast`, which blurs the page scrolling under it. A literal rgba because a colour cannot be made translucent by reference; it tracks `app-canvas` by hand.

`--scrim`

rgba(14,37,71,.5) · dark rgba(0,0,0,.6)

The dim behind a modal: `.dlgscrim` and `.dscrim`. Darker and more saturated than `surface-inverse` so the dialog reads as lit from in front.

`--ink-plate`

rgba(18,32,47,.78) · dark rgba(5,10,16,.86)

`text-primary` at 78% — the caption plate laid over imagery, as in `.scan__cap`. White ink on it clears 4.5:1 against any image beneath.

`--tint-today`

rgba(44,111,200,.05) · dark rgba(92,151,234,.08)

`accent-quiet` at 5% — the wash marking today's column in `.tt`. Faint enough that an event sitting on it is unchanged.

## Other

`--scrollbar`

#ccd3dd · dark #33435a

Scrollbar thumb in scrolling panes and lists.

`--veil-surface`

rgba(251,252,254,.86) · dark rgba(19,28,39,.86)

Translucent surface behind the sticky masthead.

## Dark theme

Every colour token has a dark value. Set data-theme on the root element: dark always, or auto to follow the reader's system setting. Components need nothing else, because they paint only with tokens. The switch in this site's top bar does exactly this.

Vue (vue-ecosphere):

```vue
<!-- Always dark -->
<html data-theme="dark">

<!-- Follow the reader's system setting -->
<html data-theme="auto">

// A switch: flip the attribute and remember the choice
document.documentElement.dataset.theme = dark ? "dark" : "default";
```

React (react-ecosphere):

```tsx
<!-- Always dark -->
<html data-theme="dark">

<!-- Follow the reader's system setting -->
<html data-theme="auto">

// A switch: flip the attribute and remember the choice
document.documentElement.dataset.theme = dark ? "dark" : "default";
```
