Show HN: Darken – Darkmode Made Easy
github.com
Show HN: Darken – Darkmode Made Easy
1–10 of 61 posts
Re: Show HN: Darken – Darkmode Made Easy
#2Re: Show HN: Darken – Darkmode Made Easy
#3what’s the intended use case?
Here is an example: https://colinespinas.github.io/darken/
[1] https://support.apple.com/en-ca/HT208976
[2] https://css-tricks.com/dark-modes-with-css/
[3] https://developer.mozilla.org/en-US/docs/Web/CSS/@media/pref...
Re: Show HN: Darken – Darkmode Made Easy
#4Re: Show HN: Darken – Darkmode Made Easy
#5Re: Show HN: Darken – Darkmode Made Easy
#6Why would you prefer this over, as another commenter already pointed out, a web standard like the CSS `prefers-color-scheme` media feature? A web feature like that works across websites, is better equipped to deal with user accessibility issues, and doesn't require Javascript.
I hope it make the thing more clear.
Re: Show HN: Darken – Darkmode Made Easy
#7This is awesome. Always wanted something like this, but never got around to being comfortable enough with CSS to try. Def will try it out on the next front end I throw together!
Re: Show HN: Darken – Darkmode Made Easy
#8what’s the intended use case?
It does not use `prefer-color-scheme` for now but I'm planning to add the option later.
Re: Show HN: Darken – Darkmode Made Easy
#9Re: Show HN: Darken – Darkmode Made Easy
#10The only big downside I've seen so far is performance, but I haven't quantified it yet.
[0] https://github.com/darkreader/darkreader#using-for-a-website