v0.2.0-draft

Data and charts

Colours and rules for dashboards and data.

The rule

Data colours are mostly grey and green, the same in every register, with a set for each mode. Series take a fixed order and are never cycled. Four is the most; fold the rest into Other or split the chart into small multiples. Colour never carries identity alone: a legend from two series, direct labels up to four. Status colours mark state only, always with an icon and a word. Hover and selection on a chart use Sulfur, like every other action.

In each register

website, dark

Series 1Series 2Series 3Series 4
GoodWarningCriticalDisabled

website, light

Series 1Series 2Series 3Series 4
GoodWarningCriticalDisabled

interface, dark

Series 1Series 2Series 3Series 4
GoodWarningCriticalDisabled

academic, light

Series 1Series 2Series 3Series 4
GoodWarningCriticalDisabled

Variables

Set by the mode, so a chart follows data-theme like everything else. Click any value to copy it.

Dark
VariableValueNote
--wg-chart-series-1
--wg-chart-series-2
--wg-chart-series-3 Dark fill; always drawn with its Pebble edge.
--wg-chart-series-3-edge 1px edge on every series-3 mark and legend swatch.
--wg-chart-series-4
--wg-chart-seq-1 Sequential: one green, low to high.
--wg-chart-seq-2
--wg-chart-seq-3
--wg-chart-seq-4
--wg-chart-seq-5
--wg-chart-seq-1-edge 1px edge on seq-1, the step closest to the ground.
--wg-chart-seq-2-edge No edge.
--wg-chart-good
--wg-chart-warning
--wg-chart-critical
--wg-chart-disabled Low contrast on purpose; disabled items are exempt.
Light
VariableValueNote
--wg-chart-series-1
--wg-chart-series-2
--wg-chart-series-3
--wg-chart-series-3-edge Same as the fill on light; no visible edge.
--wg-chart-series-4
--wg-chart-seq-1 Sequential: one green, low to high.
--wg-chart-seq-2
--wg-chart-seq-1-edge 1px edge on seq-1, a pale step.
--wg-chart-seq-2-edge 1px edge on seq-2, a pale step.
--wg-chart-seq-3
--wg-chart-seq-4
--wg-chart-seq-5
--wg-chart-good
--wg-chart-warning
--wg-chart-critical
--wg-chart-disabled Low contrast on purpose; disabled items are exempt.

Checked

Every pair of series passes colour-blind and normal-vision separation on every ground. On dark, series 3 is Moss with a Pebble edge: draw the edge on every mark and swatch, which is what carries its contrast. Disabled is low contrast on purpose. One axis per chart; two measures get two charts.