-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Dark theme for the website #2274
Comments
That sounds cool! I'll put a link to this issue in the Call for Participation section of this week's newsletter, perhaps someone from our community can help implement this :) |
Hey @nellshamrell, is this still welcome? I just checked the CSS, and it's quite minimal. I could quite easily add something in with And looking at the CSS, I actually think a good chunk could be simplified with CSS grid & flexbox. All browsers have supported this for a couple years at least. |
@jhpratt that would be most welcome! |
Coming back around to this. I see that the theme actually comes from this repository, given the CSS file name. I presume it's fine to just update the CSS in this repo? We'd just have to make sure to maintain the diff if the theme is ever updated. |
@jhpratt I'm going through and looking at old issues. Are you still interested in working on this? If not, we'll put out a call for other folks to take a look. |
Interested, yes. But I don't really have time to, as I'm preoccupied with some other things. Feel free to put a call out! |
Hi, I had this discussion many times. An important thing to notice is that two-state toggles like the mentioned “dark-mode-toggle” are wholly inadequate, as they don’t allow to select the “auto” mode that makes the most sense on every single major OS: macOS, Linux, or Windows ≥11.* Therefore the only design choices that make sense are:
*There’s multiple failure modes for two state toggles. Some of them will forever remember having been clicked, permanently disabling the “auto” mode, so a curious user is forever locked out of the most useful setting. Others (like the mentioned |
Regarding implementation, as @pradyunsg said here:
Also, in case you go with a button, I think a combination of Furo’s and MkDocs’ behavior is ideal:
|
Stupid question but why not using mdbook directly? It implements themes and search (which are another feature request). |
I'm all for a dark theme FWIW. For those looking for this functionality now try using your browsers built in Reader Mode. |
Thank you for the amazing newsletter 🧡
On the website, it could be nice to have:
prefers-color-scheme
css media query (also supported by above JS snippet and others)rustdoc
andmdbook
supports (Light, Rust, Coal, Navy, Ayu)The text was updated successfully, but these errors were encountered: