Repository navigation
Calmer chart colours: one family at an even lightness - #3017
Closed
ataibarkai wants to merge 1 commit into
Closed
ataibarkai wants to merge 1 commit into
ataibarkai wants to merge 1 commit into
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Before (main) on the left, calmer colours on the right.
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.tsholds (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 bybun run tokens:generateto the web app's theme, the page artifacts' kit and OpenBot Mobile's scheme. A skin or a customer's theme that sets--chart-1to--chart-5keeps 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.Changelog
Web app and phone app.
🤖 Generated with Claude Code