How does mode-watcher integrate with prefers-color-scheme? (Datawrapper question) #164
Unanswered
eudemocracystiftung
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I am using mode-watcher on a website, and now want to embed Datawrapper charts. These charts have a dark mode feature that is enabled by
prefers-color-scheme(see https://www.datawrapper.de/academy/dark-mode-in-embedded-datawrapper-visualizations).So far as I can see, mode-watcher has no impact on
prefers-color-scheme. So what is the best/easiest way to switch the charts to dark mode upon toggling the mode-watched icon? If I could avoid needing an{if}condition on every chart, that would make my life easier.Thanks!
All reactions