Skip to main content
This section documents the Mzizi registry — the shipping design system served at mzizi.dev — not Mzizi-lang. The ecosystem page draws the line.
Charts are built on Recharts and wrapped in a ChartContainer that applies the mineral palette automatically. They adapt between light and dark through the --chart-* tokens, so a chart follows the theme without per-chart configuration.

Install

That installs ChartContainer, ChartTooltip, ChartTooltipContent, ChartLegend and ChartLegendContent.

Chart colours

Five theme-adaptive tokens, drawn from the mineral palette. Values read from the registry’s stylesheet on 11 September 2026. Use them in order for data series, so the same series index means the same colour in every chart across the ecosystem.
There are five chart tokens, drawn from a palette of seven minerals — sodalite and copper are not in the chart ramp. Documentation describing “the Five African Minerals” is confusing the two, and is out of date about the palette; see design tokens.

Basic usage

Every chart follows the same shape: a Recharts chart wrapped in ChartContainer with a config object.
ChartContainer gives you responsive sizing, theme-aware colours through CSS custom properties, and accessible labelling.

Accessibility

Colour alone is not a legend. Every chart with more than one series needs a ChartLegend, and a pie or donut chart needs one regardless — see accessibility for why colour is never the sole carrier of meaning.

Chart types

Area

Filled areas for time series and trends — basic, stacked and gradient.

Bar

Vertical, horizontal, grouped, stacked and mineral-coloured bars.

Line

Continuous data, multiple series, and dashed lines for projections.

Pie

Pie and donut charts for proportions.

Radar

Several items compared across several dimensions.

Radial

Radial bars and gauges for progress and scores.

Tooltip

Customising tooltips and legends.