Skip to content

rustdoc: Automatic light/dark theme #61079

Closed
@fenhl

Description

@fenhl

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions