website
website copied to clipboard
[WIP] Adds dark-mode support
Uses prefers-color-scheme to display in dark mode when asked by the browser/OS (https://caniuse.com/#feat=prefers-color-scheme)
- Graphs keeps a white background
- Force a white background for sponsors logos
- Remove the scrollbar when not needed for code
TODO:
- [ ] move colors into vars
- [ ] links are too dark
- [ ] text is too bright
- [ ] The blue of the Let's Encrypt logo (and in the "LINUX FOUNDATION COLLABORATIVE PROJECTS" header) is a little dark to show up against a black background
- [ ] The brightness of the hero image feels a little jarring and out of place
- [ ] Remove black lines between the sponsor logos
- [ ] The "Donate" button at the bottom has black text
- [ ] the black background the blue color of the "Donate" button feels over-saturated
- [ ] text in the "Get Started" and "Sponsor" buttons inside the hero image is too light.
Any argument for or against it? (related: https://community.letsencrypt.org/t/allow-users-to-select-dark-mode-theme/105987)
This seems like a nice addition so long as it looks just as good as the non-dark mode. Thanks!
I approve of adding dark mode in concept. I think this work-in-progress still needs a little work. Attached are a couple of screenshots from my Android device in dark mode.
Specific issues:
The blue of the Let's Encrypt logo (and in the "LINUX FOUNDATION COLLABORATIVE PROJECTS" header) is a little dark to show up against a black background. We should probably lighten that.
The brightness of the hero image feels a little jarring and out of place. Not sure how to fix this; probably it's best to just leave it alone.
The sponsor logos are on a white background. This is unavoidable because a lot of the sponsor logos would be unreadable on a black background. But it's awkward looking because there are black lines between the logos. I think we need to put all the logos in a big white box.
The "Donate" button at the botton has black text, while the rest of the text on the page has white text. Also, against the black background the blue color of the button feels over-saturated. Maybe match it to the blue used in hyperlinks?
Also, I think the text in the "Get Started" and "Sponsor" buttons inside the hero image is too light.
Bump