Skip to content

Automatic light/dark mode website stylesheet #9

@nekohayo

Description

@nekohayo

I don't know how easily done this is within GitHub Pages, and this is purely a wishlist idea, but ideally... autodetect the browser/operating system's dark mode, using this simple CSS rule for example:

@media (prefers-color-scheme: dark) {
   blah blah
}

See this technical reference article on MDN for more details.

As an example (besides MDN's own website), Foreign Affairs does a fantastic job at providing a beautiful automatic dark variant of their website to their readers when the operating system requests it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions