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
Darkmode for docs and webconfig #8043
Conversation
Emphasizes that they belong together
This makes changing it harder and is unnecessary
This uses the prefers-color-scheme media query to pick between dark and light mode, so the user automatically gets the colorscheme they prefer.
One thing I would like to know is how well it works with older sphinx versions - I think there's been a semi-recent change to footnotes? |
@IlanCosman How about something more like this I would prefer to keep the blue tint because we also have one in the light version, and it has a bit of a nautical theme. |
Make a bit less ultra-dark blue
@faho Much nicer! And I agree with the nautical vibe. I'd say make the background a bit lighter and more blue, and it would be good to go 😄 |
The colors are roughly the same as in fish-shell/fish-shell#8043. One fly in the ointment is that the distro logos don't look good on a dark background, so we add a cheesy white background to them.
The colors are roughly the same as in fish-shell/fish-shell#8043. One fly in the ointment is that the distro logos don't look good on a dark background, so we add a cheesy white background to those that need it.
The colors are roughly the same as in fish-shell/fish-shell#8043. One fly in the ointment is that the distro logos don't look good on a dark background, so we add a cheesy white background to those that need it.
Description
This uses the prefers-color-scheme media query to choose between a dark and a light colorscheme for both the docs and fish_config. It's pure css, no script or anything.
To see the changes, you'll have to set your dark mode preference or open up the devtools and force-enable it there. Firefox on linux should "just work" if you have a dark system colorscheme, chromium needs to be started as
chromium --force-dark-mode
.Some screenshots:
fish_config
The docs
TODOs: