Features · theme

Dark mode

native

Dark theme / auto light-dark

Matrix status native. Verification types · strong. ChartKit option: ChartKitChartSpecV1.theme.preset=midnight.

dark preset, or auto light/dark by default; theme.mode light|dark warns CK3012 since PR #16

Source: chartkit:packages/core/src/generated/schema.ts:315

ChartKit spec

Passed validate() during npm run matrix:refresh. The SVG is the server render.

Units rose in Q2.Units rose in Q2.40455055Q1Q2
{
  "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": "midnight"
  }
}

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.dark.md.

LibraryStatusOptionVerificationSource
Chart.jsmanualPlugin.afterDatasetsDrawset colours manuallymechanism · weakchart.js/dist/types/index.d.ts:1051
RechartsmanualCustomizedmechanism · weakrecharts/types/component/Customized.d.ts:26
Apache EChartsnativegrep: darkinit(el, 'dark')grep · weakecharts/types/src/util/types.d.ts:581
Highchartsnativegrep: darkdark themes / adaptive theme modulegrep · weakhighcharts/highcharts.src.d.ts:680
Plotly.jsnativelayout.templateplotly_darktypes · strongplot-schema.json#layout.layoutAttributes.template
NivopartialLine.themetypes · strong@nivo/line/dist/types/types.d.ts:136
VictorymanualVictoryBarProps.dataComponentmechanism · weakvictory-core/lib/victory-util/common-props.d.ts:9
visxnativegrep: darkThemegrep · weak@visx/xychart/lib/index.d.ts:37
ApexChartsnativetheme.mode=darktypes · strongapexcharts/types/apexcharts.d.ts:5303
Tremor (npm)partialgrep: darkTailwind dark: classesgrep · weak@tremor/react/dist/lib/theme.d.ts:9
Observable Plotmanualgrep: renderCSS currentColormechanism · weak@observablehq/plot/src/scales.d.ts:166
Vega-Liteplugin—dark themenpm · weak—
AG Chartsnativegrep: darkgrep · weakag-charts-community/dist/types/src/integrated-charts-theme.d.ts:24
amCharts 5nativegrep: DarkThemegrep · weak@amcharts/amcharts5/themes/SpiritedDark.d.ts:1
Google Chartsunknown—conflict · unknown—
uPlotmanualOptions.hooksmechanism · weakuplot/dist/uPlot.d.ts:394
TradingView Lightweight Chartsnativegrep: ColorTypegrep · weak26:export declare enum ColorType {
MUI X Chartsnativegrep: palettefollows MUI palette modegrep · weak@mui/x-charts/index.d.ts:5
Mermaid (chart-ish diagrams only)nativegrep: darkModegrep · weakmermaid/dist/utils.d.ts:25
AntV G2nativegrep: darkgrep · weak@antv/g2/lib/index.d.ts:106