edwardtufte / tufte-css

Style your webpage like Edward Tufte’s handouts.
https://edwardtufte.github.io/tufte-css/
MIT License
5.98k stars 458 forks source link

Add basic dark mode #165

Closed mailtokamalnayan closed 3 years ago

mailtokamalnayan commented 3 years ago

Adds a basic dark mode that switches based on users' system preferences.

Before: image

After Dark mode: image

mireille-raad commented 3 years ago

This looks neat! I hope it gets merged!

mailtokamalnayan commented 3 years ago

This looks neat! I hope it gets merged!

I hope so too. :)

daveliepmann commented 3 years ago

I'm concerned that this adds new functionality (which is a low priority) and thus greater surface area for bugs, but it's a nice idea and seems to work based on the cursory examination I just gave it in Chrome and Firefox. So, let's see how it goes. Thanks!