Design tokens (colours, font, grid, axis)
native
Override base theme tokens
Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.theme.tokens.
Source: chartkit:packages/core/src/generated/schema.ts:344
ChartKit spec
Passed validate() during npm run matrix:refresh. The SVG is the server render.
{
"version": "1",
"type": "line",
"data": [
{
"quarter": "Q1",
"units": 40
},
{
"quarter": "Q2",
"units": 55
}
],
"encoding": {
"x": "quarter",
"y": "units"
},
"a11y": {
"alt": "Units rose in Q2."
},
"size": {
"width": 640,
"height": 260
},
"theme": {
"tokens": {
"axis": "#5c6b7a"
}
}
}Other libraries
Option names are the paths recorded in the matrix. A grep-only cell names the identifier that matched, not a render test. Markdown copy: theme.tokens.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | native | grep: defaultsChart.defaults.font / color | grep · weak | chart.js/dist/types/index.d.ts:561 |
| Recharts | partial | grep: style | grep · weak | recharts/types/theme/graphicalItemIdentity.d.ts:5 |
| Apache ECharts | native | textStyle, backgroundColor | types · strong | echarts/types/dist/shared.d.ts:7437 |
| Highcharts | native | chart.style | types · strong | highcharts/highcharts.d.ts:6649 |
| Plotly.js | native | layout.font, layout.paper_bgcolor | types · strong | plot-schema.json#layout.layoutAttributes.font |
| Nivo | native | Line.themetheme object (text, axis, grid, tooltip...) | types · strong | @nivo/line/dist/types/types.d.ts:136 |
| Victory | native | VictoryChart.theme | types · strong | victory-core/lib/victory-util/common-props.d.ts:58 |
| visx | native | grep: buildChartTheme | grep · weak | @visx/xychart/lib/index.d.ts:38 |
| ApexCharts | native | chart.fontFamily, chart.foreColor | types · strong | apexcharts/types/apexcharts.d.ts:1826 |
| Tremor (npm) | partial | grep: tremortailwind config tokens | grep · weak | @tremor/react/dist/lib/tremorTwMerge.d.ts:1 |
| Observable Plot | native | grep: style | grep · weak | @observablehq/plot/src/plot.d.ts:13 |
| Vega-Lite | native | grep: config | grep · weak | 130: "AnyMarkConfig" |
| AG Charts | native | grep: themetheme.params / overrides | grep · weak | ag-charts-types/dist/types/src/main.d.ts:38 |
| amCharts 5 | native | grep: Themetheme rules | grep · weak | @amcharts/amcharts5/xy.d.ts:32 |
| Google Charts | native | grep: fontName | grep · weak | @types/google.visualization/index.d.ts:372 |
| uPlot | manual | Options.hooksper-option | mechanism · weak | uplot/dist/uPlot.d.ts:394 |
| TradingView Lightweight Charts | native | grep: layout | grep · weak | 323: * fontFamily |
| MUI X Charts | native | grep: ThemeProvider | grep · weak | @mui/x-charts/ChartsGrid/index.d.ts:2 |
| Mermaid (chart-ish diagrams only) | native | MermaidConfig.themeVariables | types · strong | mermaid/dist/config.type.d.ts:70 |
| AntV G2 | native | grep: theme | grep · weak | @antv/g2/lib/index.d.ts:105 |