GithubHelp home page GithubHelp logo

Comments (4)

kenjibailly avatar kenjibailly commented on July 17, 2024 3

I tried to ignore some elements for dark mode using all the options I found:

  • Use the class darkmode-ignore where you don't want to apply darkmode
  • You can also add this style: isolation: isolate; in your CSS, this will also ignore the darkmode.
  • A CSS class darkmode--activated is added to the body tag when the darkmode is activated. You can take advantage of it to override the style and have a custom style

None of the above worked, I loaded Darkmode.js with CDN.

  • It is also possible to revert the Dark Mode with this style mix-blend-mode: difference;

This one above did some weird things and pulled out colors, at least it did something I guess? Not what I was expecting though.

Would be really lovely if this issue could get resolved so this can actually be used.

from darkmode.js.

sandoche avatar sandoche commented on July 17, 2024

I think the option that works the best is:

  • applying mix-blend-mode: difference; style on the items where the color is reversed. does it work?

from darkmode.js.

sandoche avatar sandoche commented on July 17, 2024

Have you tried this?
#60

from darkmode.js.

Purfview avatar Purfview commented on July 17, 2024

I found that there is no single solution, basically you need to read and understand what "mix-blend-mode" does and how it interacts with various elements.

There I made it work as userscript -> https://github.com/Purfview/Darkmode-User
You can find there hints what worked or use it for quick testing with few tweaks to it.

from darkmode.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.