You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Components/TScripts/mudThemeProvider.js

5 lines
169 B

2 years ago
const darkThemeMediaQuery = window.matchMedia("(prefers-color-scheme: dark)");
window.darkModeChange = (dotNetHelper) => {
return darkThemeMediaQuery.matches;
};