Skip to content

Calmer chart colours: one family at an even lightness - #3017

Closed
ataibarkai wants to merge 1 commit into
mainfrom
claude/calm-chart-colors
Closed

ataibarkai wants to merge 1 commit into
mainfrom
claude/calm-chart-colors

Conversation

@ataibarkai

@ataibarkai ataibarkai commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Before (main) on the left, calmer colours on the right.

A dashboard, light A dashboard, dark Charts a Bot draws in a conversation

The five chart colours were saturated primaries (blue, amber, teal, red and violet at chroma 0.2), so a dashboard of charts read loud, and in dark mode the teal turned neon. They are now one family: indigo, ochre, sage, dusty rose and lavender, at an even lightness and about half the chroma, each a step lighter in dark.

Nothing else moves: the series keep their order, so a chart's first series is still the brand's indigo. Every series still meets what tokens/tests/chart.test.ts holds (unchanged): at least 3:1 against the card in its mode, clearly colourful (chroma at least 0.1), and apart from the other four for typical, protan, deutan and tritan colour vision. Red and green stay out of the set, since they mean failed and worked here. The values were found by searching against those three rules, then judged on a real dashboard and on the conversation's charts.

A token change, so in a pull request of its own (docs/design-system.md): tokens/src/scheme.ts, written out by bun run tokens:generate to the web app's theme, the page artifacts' kit and OpenBot Mobile's scheme. A skin or a customer's theme that sets --chart-1 to --chart-5 keeps its own.

Goes with #3016 (artifacts in OpenBot's current look); either can merge first.

Checked

  • bun test tokens/tests app/tests/design-tokens.test.ts app/tests/color-scheme.test.ts app/tests/skins.test.ts: 112 pass.
  • A dashboard and every chart a Bot draws in a conversation, light and dark (pictures above).

Changelog

Web app and phone app.

  • Changed: calmer chart colours. Charts in conversations and artifacts use a quieter set of five colours; every series stays readable on its background and distinguishable with colour blindness. A theme that sets its own chart colours keeps them.

🤖 Generated with Claude Code

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 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant