After applying the new class adaptive-color-scheme on a site I migrated to v6, I have found the NEED for additional code for pages with Chart.js and want to share with others in my same situation:
Assuming Charts have good contrast when not-dark (light), the following code (colors tweaked to suit) will likely be needed when dark is set by system, i.e. class adaptive-color-scheme:
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
Chart.defaults.global.defaultFontColor = '#eee';
Chart.defaults.scale.gridLines.color = '#696969';
}
This could also be tweaked if charts are designed for good contrast when dark by substituting prefers-color-scheme: dark for prefers-color-scheme: light, but that was not my case.
This may be possibly worth incorporating on future Canvas v6.x deployment or worth noting on one of these pages:
http://docs.semicolonweb.com/docs/shortcodes/charts/
http://docs.semicolonweb.com/docs/getting-started/color-schemes/
