From b68c157e8da8f33767952a2c6e392607fb751d89 Mon Sep 17 00:00:00 2001 From: Atai Barkai Date: Sat, 5 Dec 2026 08:08:32 -0800 Subject: [PATCH] Calmer chart colours: one family at an even lightness The five chart series were saturated primaries (blue, amber, teal, red, violet at chroma 0.2), so a dashboard of charts read loud, and in dark mode the teal went neon. They are now indigo, ochre, sage, dusty rose and lavender, at an even lightness and about half the chroma, each a step lighter in dark. Every series is still at least 3:1 on the card in its mode, clearly colourful, and apart from the other four for typical, protan, deutan and tritan vision (tokens/tests/chart.test.ts, unchanged, passes). Written in tokens/src/scheme.ts and generated into the web app's theme, the page artifacts' kit and OpenBot Mobile's scheme. Co-Authored-By: Claude Opus 5.5 --- app/src/lib/artifacts/tokens.css | 20 ++++++++++---------- app/src/theme.css | 20 ++++++++++---------- mobile/src/scheme.ts | 20 ++++++++++---------- tokens/src/scheme.ts | 30 ++++++++++++++++-------------- 4 files changed, 46 insertions(+), 44 deletions(-) diff --git a/app/src/lib/artifacts/tokens.css b/app/src/lib/artifacts/tokens.css index 1c1d3ce30e..7973dc4d80 100644 --- a/app/src/lib/artifacts/tokens.css +++ b/app/src/lib/artifacts/tokens.css @@ -22,11 +22,11 @@ --border: oklch(0.108 0.042 264.7 / 10%); --input: oklch(0.108 0.042 264.7 / 10%); --ring: oklch(0.638 0.167 276.1); - --chart-1: oklch(0.46 0.2 264); - --chart-2: oklch(0.66 0.146 66); - --chart-3: oklch(0.62 0.122 170); - --chart-4: oklch(0.5 0.2 18); - --chart-5: oklch(0.6 0.2 286); + --chart-1: oklch(0.52 0.11 264); + --chart-2: oklch(0.63 0.11 75); + --chart-3: oklch(0.63 0.1 170); + --chart-4: oklch(0.54 0.1 20); + --chart-5: oklch(0.65 0.1 300); --empty-pattern-color: oklch(0.746 0.117 279.9); --sidebar: oklch(0.948 0.01 251.8); --sidebar-foreground: oklch(0.108 0.042 264.7); @@ -61,11 +61,11 @@ --border: oklch(0.956 0.004 252 / 12%); --input: oklch(0.956 0.004 252 / 12%); --ring: oklch(0.713 0.151 277.7); - --chart-1: oklch(0.58 0.2 264); - --chart-2: oklch(0.76 0.168 66); - --chart-3: oklch(0.86 0.17 170); - --chart-4: oklch(0.6 0.2 18); - --chart-5: oklch(0.76 0.128 286); + --chart-1: oklch(0.62 0.13 264); + --chart-2: oklch(0.72 0.1 75); + --chart-3: oklch(0.73 0.1 170); + --chart-4: oklch(0.64 0.11 20); + --chart-5: oklch(0.73 0.1 300); --empty-pattern-color: oklch(0.832 0.085 281.4); --sidebar: oklch(0.156 0.017 252); --sidebar-foreground: oklch(0.956 0.004 252); diff --git a/app/src/theme.css b/app/src/theme.css index 6bc3c73c7a..6e1b1c9714 100644 --- a/app/src/theme.css +++ b/app/src/theme.css @@ -34,11 +34,11 @@ --border: oklch(0.108 0.042 264.7 / 10%); --input: oklch(0.108 0.042 264.7 / 10%); --ring: oklch(0.638 0.167 276.1); - --chart-1: oklch(0.46 0.2 264); - --chart-2: oklch(0.66 0.146 66); - --chart-3: oklch(0.62 0.122 170); - --chart-4: oklch(0.5 0.2 18); - --chart-5: oklch(0.6 0.2 286); + --chart-1: oklch(0.52 0.11 264); + --chart-2: oklch(0.63 0.11 75); + --chart-3: oklch(0.63 0.1 170); + --chart-4: oklch(0.54 0.1 20); + --chart-5: oklch(0.65 0.1 300); --empty-pattern-color: oklch(0.746 0.117 279.9); --sidebar: oklch(0.948 0.01 251.8); --sidebar-foreground: oklch(0.108 0.042 264.7); @@ -87,11 +87,11 @@ --border: oklch(0.956 0.004 252 / 12%); --input: oklch(0.956 0.004 252 / 12%); --ring: oklch(0.713 0.151 277.7); - --chart-1: oklch(0.58 0.2 264); - --chart-2: oklch(0.76 0.168 66); - --chart-3: oklch(0.86 0.17 170); - --chart-4: oklch(0.6 0.2 18); - --chart-5: oklch(0.76 0.128 286); + --chart-1: oklch(0.62 0.13 264); + --chart-2: oklch(0.72 0.1 75); + --chart-3: oklch(0.73 0.1 170); + --chart-4: oklch(0.64 0.11 20); + --chart-5: oklch(0.73 0.1 300); --empty-pattern-color: oklch(0.832 0.085 281.4); --sidebar: oklch(0.156 0.017 252); --sidebar-foreground: oklch(0.956 0.004 252); diff --git a/mobile/src/scheme.ts b/mobile/src/scheme.ts index 69e1a20777..5fdcf98e28 100644 --- a/mobile/src/scheme.ts +++ b/mobile/src/scheme.ts @@ -23,11 +23,11 @@ export const scheme = { border: "#0103131a", input: "#0103131a", ring: "#727eef", - "chart-1": "#1949c5", - "chart-2": "#cd7d04", - "chart-3": "#049d7b", - "chart-4": "#ba0135", - "chart-5": "#7b65ef", + "chart-1": "#4867a8", + "chart-2": "#b07f32", + "chart-3": "#3d9d80", + "chart-4": "#a15556", + "chart-5": "#9981c3", "empty-pattern-color": "#9ea4f5", sidebar: "#e9eef4", "sidebar-foreground": "#010313", @@ -59,11 +59,11 @@ export const scheme = { border: "#eef1f31f", input: "#eef1f31f", ring: "#8d97ff", - "chart-1": "#3a70ee", - "chart-2": "#f79807", - "chart-3": "#03f4c0", - "chart-4": "#de3951", - "chart-5": "#aaa4ff", + "chart-1": "#5d83d4", + "chart-2": "#c99b5a", + "chart-3": "#5fbc9e", + "chart-4": "#c66f70", + "chart-5": "#b199de", "empty-pattern-color": "#bec2ff", sidebar: "#070d14", "sidebar-foreground": "#eef1f3", diff --git a/tokens/src/scheme.ts b/tokens/src/scheme.ts index 53796c0e94..146066aff8 100644 --- a/tokens/src/scheme.ts +++ b/tokens/src/scheme.ts @@ -91,16 +91,18 @@ const light: Palette = { input: "oklch(0.108 0.042 264.7 / 10%)", ring: "oklch(0.638 0.167 276.1)", /* - * The chart series are OpenBot's own hues: the brand blue, warning's amber, success's teal, - * destructive's rose and the sidebar's violet. Each is clearly colourful and at least 3:1 against - * the card in its mode, and the order keeps neighbours apart for protan, deutan and tritan - * colour vision (tokens/tests/chart.test.ts holds both). + * The chart series: indigo, ochre, sage, dusty rose and lavender, one family at an even lightness + * and about half the chroma the first set had, so a dashboard of charts reads as calm rather than + * as five saturated primaries. Each is still clearly colourful and at least 3:1 against the card + * in its mode, and the five stay apart for typical, protan, deutan and tritan colour vision + * (tokens/tests/chart.test.ts holds all three). None is a state colour: red and green mean + * something here (`destructive`, `success`), and these are only which series is which. */ - "chart-1": "oklch(0.46 0.2 264)", - "chart-2": "oklch(0.66 0.146 66)", - "chart-3": "oklch(0.62 0.122 170)", - "chart-4": "oklch(0.5 0.2 18)", - "chart-5": "oklch(0.6 0.2 286)", + "chart-1": "oklch(0.52 0.11 264)", + "chart-2": "oklch(0.63 0.11 75)", + "chart-3": "oklch(0.63 0.1 170)", + "chart-4": "oklch(0.54 0.1 20)", + "chart-5": "oklch(0.65 0.1 300)", "empty-pattern-color": "oklch(0.746 0.117 279.9)", sidebar: "oklch(0.948 0.01 251.8)", "sidebar-foreground": "oklch(0.108 0.042 264.7)", @@ -140,11 +142,11 @@ const dark: Palette = { border: "oklch(0.956 0.004 252 / 12%)", input: "oklch(0.956 0.004 252 / 12%)", ring: "oklch(0.713 0.151 277.7)", - "chart-1": "oklch(0.58 0.2 264)", - "chart-2": "oklch(0.76 0.168 66)", - "chart-3": "oklch(0.86 0.17 170)", - "chart-4": "oklch(0.6 0.2 18)", - "chart-5": "oklch(0.76 0.128 286)", + "chart-1": "oklch(0.62 0.13 264)", + "chart-2": "oklch(0.72 0.1 75)", + "chart-3": "oklch(0.73 0.1 170)", + "chart-4": "oklch(0.64 0.11 20)", + "chart-5": "oklch(0.73 0.1 300)", "empty-pattern-color": "oklch(0.832 0.085 281.4)", sidebar: "oklch(0.156 0.017 252)", "sidebar-foreground": "oklch(0.956 0.004 252)",