rustdoc: Automatic light/dark theme #61079
Labels
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-rustdoc
Relevant to the rustdoc team, which will review and decide on the PR/issue.
Websites can now automatically switch between light and dark themes based on system settings using
prefers-color-scheme
. It would be nice if rustdoc had a theme that looks like the light theme by default but looks like the dark theme in the@media (prefers-color-scheme: dark)
condition. Since this is backward-compatible with the current default being the light theme, it could even be made the new default.The text was updated successfully, but these errors were encountered: