Skip to content

Detect dark mode setting from browser/OS #96

@jonespm

Description

@jonespm

I believe some work was done here to support dark mode. The default should be the mode specified by the browser.

Most browsers supply this media query https://caniuse.com/#search=prefers-color-scheme
This can also be read in javascript. This article has the best practice ways to support this: https://web.dev/prefers-color-scheme/#finding-out-if-dark-mode-is-supported-by-the-browser

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