question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How-to implement darkreader using css?

See original GitHub issue

I want to use userChrome.css / userContent.css solution to bring complete dark mode as currently goal of darkreader. I find darkreader glitchy as report in this issue: https://github.com/darkreader/darkreader/issues/2095 - especially when slow pages load or opening firefox (I have restore previous session enabled) (it can be how firefox engine load pages)

I only have uBlock Origin add-on and darkreader. I believe the glitch issue still happens even using darkreader only.

Archlinux and firefox latest.

What’s complexity to use css solution? and how to implement that way?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Gustedcommented, Jul 20, 2020

Hello!

In the next update of Dark Reader 4.9.16 you can export it to CSS File 🎉 This can trough the following steps:

  • Click Dark Reader icon.
  • Click Dev tools (in the bottom-right corner).
  • Click Preview new design.
  • Click on settings in the popup
  • Click on Manage Settings
  • Click on Export Dynamic Theme

Regards, Gusted

0reactions
Gustedcommented, Apr 21, 2020

No not really as each <style> in the DOM structure is being computed to be which color etc. For all elements for the remaning css property’s making this into a CSS will be a big mess and with current code not possible as their isn’t a console.log(theAlmightyStyleVariable) Their are splitted up in a lot of stylesheets. A possible solution is to open a site with firefox and open the Styles or CSS tab in the devtools

Read more comments on GitHub >

github_iconTop Results From Across the Web

Move your static CSS from Stylish to Dark Reader
How to migrate your static CSS · Search for a custom CSS skin for a popular website somewhere. · Open More tab. ·...
Read more >
[Question] Best practices to make a website "Dark Reader ...
A good workaround for this is to use SVG's as logo so Dark Reader can override the fill attribute to a natural white-ish...
Read more >
A Complete Guide to Dark Mode on the Web - CSS-Tricks
Let's get into dark mode in the context of websites. We'll delve into different options and approaches to implementing a dark mode design ......
Read more >
Using Dark Reader extension code for your own website
Dark Reader has an official NPM package which you can use to enable dark mode on your website: https://www.npmjs.com/package/darkreader.
Read more >
darkreader - npm
You can use Dark Reader to enable dark mode on your website! Install the package from NPM ( npm install darkreader ); or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found