We just pushed a change that will affect a small set of users who have enabled Dark Mode: in particular, Dark Modeās going away.
Alas, we couldnāt find a nice middle that would confer the eye-saving benefits of editing on a dark background, but not place new requirements on notebook authors - like the need to design dark charts. We want Observable to be flexible and feel like a well-honed tool, but sometimes those things are in conflict - so in this case we want to devote time to making the default color scheme great instead of being split.
Thanks for sharing your work xixixao. I donāt think we have any plans to work on this, but Iāll send it to the design team regardless as itās interesting to see what you did.
I agree that offering dark mode would be a huge pain for notebook authors. However, I got curious about what can be achieved with user styles, so hereās an SVG filter that inverts luminosity while preserving hue:
The notebook also includes an example of applying the filter to an embedded notebook.
Because the āuserā quite generally can be anyone browsing the site. This places a burden on notebook authors to design graphics that look nice in in multiple stylistic environments or to generate multiple images depending on the dark mode value. You can still design graphics that look nice wherever you choose to embed them.
Maybe dark mode is not a thing to young people, but to older people (Iām quite old now ) itās a must. Staring at the glaring white background color of the screen all day is a torture for older people, if youāre over 50, then I think youāll probably agree with me, if youāre not, then congratulations, youāre still a young person.
It would be very kind of the designers of Observable to give the elder the chance to choose which mode he or she wants. Besides, young people donāt have anything to lose, the ānormalā light mode is always there, isnāt it?
@lochiwei Iām afraid you may be missing the point. Itās a question of having to officially support this feature. You canāt just drop in a dark mode and call it a day, and like @mcmcclur mentioned, it also puts additional burden on notebook authors.
Dark mode was removed for a reason, and that reason hasnāt gone away. If this is such a serious issue for you, I recommend to check out your operating systemās accessibility features.
Iāve already turned on the dark mode of my browser on my mac for a long time, I just have no such luxury on my iPad Safari.
Iād like to mention my point again, it would be very kind of the Observable team to take into consideration (to support dark mode, again, officially) for the eldersā humble needs. Thanks.