mui-org/material-ui

Support for prefers-color-scheme #15588

eluchsinger posted onGitHub

<!--- Provide a general summary of the feature in the Title above -->

Is there a way to support prefers-color-scheme in the future? I guess, it would be possible for every project to make a custom implementation to support it, but maybe it could be a good idea to add support for it by default.

The CSS media feature lets you use a media query to adapt your styling to the light or dark theme requested by the system. If the user's browser is using dark theme, the application could adapt to it and use dark theme aswell, instead of showing an eye-hurting white.

<!-- Checked checkbox should look like this: [x] -->

  • This is not a v0.x issue. <!-- (v0.x is no longer maintained) -->
  • I have searched the issues of this repository and believe that this is not a duplicate.

Fund this Issue

$0.00
Funded
Only logged in users can fund an issue

Pull requests