Automatic light/dark from page
native
Follows prefers-color-scheme without re-render
Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.theme.preset=auto.
Soft default follows prefers-color-scheme via light-dark()
Source: chartkit:packages/core/src/generated/schema.ts:315
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": {
"preset": "auto"
}
}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.auto.scheme.md.
| Library | Status | Option | Verification | Source |
|---|---|---|---|---|
| Chart.js | none | — | absence · absence | — |
| Recharts | unknown | grep: currentColorCSS-styled SVG can follow page | unverified · unknown | — |
| Apache ECharts | none | — | absence · absence | — |
| Highcharts | native | grep: adaptiveadaptive theme module | grep · weak | highcharts/esm/themes/adaptive.src.d.ts:1 |
| Plotly.js | none | — | absence · absence | — |
| Nivo | none | — | absence · absence | — |
| Victory | none | — | absence · absence | — |
| visx | none | — | absence · absence | — |
| ApexCharts | none | — | absence · absence | — |
| Tremor (npm) | partial | grep: dark | grep · weak | @tremor/react/dist/lib/theme.d.ts:9 |
| Observable Plot | native | grep: currentColorinherits CSS colour | grep · weak | @observablehq/plot/src/scales.d.ts:318 |
| Vega-Lite | none | — | absence · absence | — |
| AG Charts | none | — | absence · absence | — |
| amCharts 5 | none | — | absence · absence | — |
| Google Charts | none | — | absence · absence | — |
| uPlot | none | — | absence · absence | — |
| TradingView Lightweight Charts | none | — | absence · absence | — |
| MUI X Charts | unknown | grep: colorSchemesMUI CSS vars | unverified · unknown | — |
| Mermaid (chart-ish diagrams only) | none | — | absence · absence | — |
| AntV G2 | none | — | absence · absence | — |