readthedocs / addons

JavaScript client to integrate with Read the Docs nicely
https://readthedocs-addons.readthedocs.io/
MIT License
20 stars 6 forks source link

Support dark/light mode based on browser's preferences #301

Open humitos opened 6 months ago

humitos commented 6 months ago

We should start talking about how to support this and make it nice at least for the most common use cases.

Reference:

pradyunsg commented 6 months ago

I'd also appreciate if themes could provide indicators to the JS client about this, since Furo maintains its own state for these details.

humitos commented 6 months ago

@pradyunsg would https://github.com/readthedocs/addons/issues/197 and #282 would be enough for Furo? I'd like to build something where theme authors can configure easily without depending on us implementing the styles to match their themes, if possible.

pradyunsg commented 6 months ago

It would, yes! :)