News for hackers. Stuff that matters.
Re:Show HN: Darken – Darkmode Made Easy by beanpup_py on Thursday January 16, 2020 @07:47PM (#22070729)
Do you do anything different to other libraries like dark mode.js?

https://github.com/sandoche/Darkmode.js

Re:Show HN: Darken – Darkmode Made Easy by Call_in on Thursday January 16, 2020 @07:52PM (#22070773)
Darkmode.js uses `mix-blend-mode` to invert the colors on the pages and offer a class based custom style system.

Here you also have the class based custom styles but also have a CSS variables based styling system. You can chose what value will take a variable depending on the current state of the darkmode.

See the readme of the github page for more informations, ask again if you need additional informations.