Draw charts from one categorical palette, --chart-1…8

The one-hue ramp told lines apart by lightness alone. --chart-1 is now
--primary and slots 2-8 are distinct hues (orange, violet, green, orchid,
ochre, teal, magenta) that clear 3:1 on --card and stay apart under
protanopia and deuteranopia; red and sage are left out as the status
colours. A chart takes the slots in order instead of spreading a ramp,
and a dashboard's own palette continues after its primary and listed
colours with slots 2-8 rather than tints of its scheme. Line charts stay
at five series. Tokens mirror index's, as design-check requires.
This commit is contained in:
2026-10-06 07:05:09 +02:00
parent 2c605b2c13
commit 409a90db28
12 changed files with 151 additions and 149 deletions
@@ -186,7 +186,7 @@ function RunsChart({ widget }: WidgetProps) {
* The same chart, drawn from a data context.
*
* One line per member per bound message: three runs of a two-series chart is
* six curves, capped like any other chart at what the ramp can tell apart.
* six curves, capped like any other chart at what the palette can tell apart.
*/
function ContextChart({
widget,
@@ -262,7 +262,8 @@ function LiveChart({ widget }: WidgetProps) {
) || DEFAULT_POINTS,
)
// The dashboard's own data colours; outside one this is the whole ramp.
// The dashboard's own data colours; outside one, none, and the chart takes
// the shared palette.
const palette = usePalette()
const histories = useQueries({