Theming
Light and dark ship in the box. Everything else is a CSS variable you can override.
Dark mode
Add data-theme="dark" to a parent element. The chart does not read prefers-color-scheme by itself, so toggle the attribute from your own theme logic.
Click a mark to pin its value
View data
| Label | Value |
|---|---|
| Jan | 32 |
| Feb | 46 |
| Mar | 63 |
| Apr | 58 |
| May | 71 |
| Jun | 84 |
The site toggle in the header does exactly this: it sets the attribute on the root element, and every chart on the page follows.
Match your app
To match your app, override these variables on .pc-chart:
Font
peakcharts/styles.css bundles DM Sans through @fontsource, so nothing is requested from Google Fonts. Set font-family on .pc-chart to use your own.