Re:Show HN: Darken – Darkmode Made Easy
by Call_in on Thursday January 16, 2020 @08:42PM
(#22071091)
This API do not invert colors, it uses CSS variables and classes for more customization. No mix-blend-mode or anything. The demo has been done quickly this afternoon, I'll probably change it for the next version.
Have a read of an article such as this one, and be smart about colour translation. You might need to calculate contrast or offer a contrast setting as a minimum, and watch for shadows.
https://uxdesign.cc/turn-the-lights-off-designing-the-dark-m...
Side note: I've been really happy with the "Dark Reader" plugin on various browsers. Have a look at it and see how it handles brightness (+/-) and contrast (+/-).