rugk / website-dark-mode-switcher

This is a (Firefox) add-on (WebExtension) that lets you invert the website's color scheme by inverting/changing the prefers-color-scheme media feature of CSS.
https://addons.mozilla.org/firefox/addon/dark-mode-website-switcher/?src=external-github-top
Other
58 stars 4 forks source link

Doesn't work with stylesheets imported with @import #26

Closed Justin-CB closed 3 years ago

Justin-CB commented 4 years ago

I was testing this extension on my own site(justinbesterportfolio.xp3.biz), but it didn't use my styles that I defined with a prefers-color-scheme: dark query. I <link> a dummy stylesheet that @imports the real stylesheet, but presumably, this would apply to all @imported stylesheets.

rugk commented 3 years ago

Hmm, actually it uses the browser's parsed CSS tree. So I see no integrated issue. Could you probably use the "Problem with a specific website" issue template to report a bug?.

rugk commented 3 years ago

Okay, apparently done in https://github.com/rugk/website-dark-mode-switcher/issues/28 thanks 😃