Hacker News new | ask | show | jobs
by BeefWellington 1438 days ago
I'm sorry to hear about the passing of the project's founder. You have my condolences.

Two off-the-cuff pieces of feedback:

1) The PDF link is broken.

2) You can achieve a Light/Dark theme toggle using pure CSS, using a combination of prefers-color-scheme[1] and/or a combinator selector (~) and checkbox. This could do away with the JS entirely.

[1]: https://developer.mozilla.org/en-US/docs/Web/CSS/@media/pref...

2 comments

"If `privacy.resistFingerprinting` has been set true, the prefers-color-scheme preference is forced to light. You must set `privacy.resistFingerprinting` to false in order to use this feature."

Kind of a bummer.

Yeah, in those cases your toggle would still come into play.
Great to know about that non JS thing