
Dark mode vis config defaults
An early preview of enabling chart styles independently for dark mode.
Transcript
This transcript is auto-generated. Names and product terms may be wrong.
Um, one more small demo. If you've ever had this problem when you're kind of exploring around making colors, this is not production ready, but it's fun. Um, you may be playing around and just exploring with colors and clicking things and maybe you you're exploring your label colors and you do it and then you put it to black.
Um, one things that happens here is like now this is like hardcoded to uh like the hex code. Um, and then maybe you someone looks at the dashboard in dark mode and you know it was designed for light mode. It doesn't work. So, what I um hacked on here a little bit is like this idea of a saved color where you can now hit something.
Um this is a chart. Actually, I haven't label. Let's do that. Uh color. Got to get it. Okay, there we go. And so now you've picked a color and it's kind of light and dark mode aware. So you can switch back to light mode. It switches to black. Um and this is saved. UI is really horrible, but it's saved as kind of like how we do our colors in the CSS file now.
So, there's like a light and a dark mode variant, and then you can define these how you want, and so you get to pick um a save color. And so, it's pretty nice when you ever have to like flip colors really quickly without having to think about it. So, uh that's it.