observablehq / plot

A concise API for exploratory data visualization implementing a layered grammar of graphics
https://observablehq.com/plot/
ISC License
4.25k stars 173 forks source link

Plot.boxX default fill should be responsive with dark mode #2006

Open Fil opened 6 months ago

Fil commented 6 months ago

The default fill for boxX is #ccc, which is way too light in dark mode (when --plot-background is dark and currentColor is light).

Should we address this by "hardcoding" a new color in box.js, say color-mix(in oklab, var(--plot-background), currentColor 80%), or by introducing an intermediate --color80? The only other "hardcoded" colors are