We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ff5da60 + 268a510 commit 972b6ceCopy full SHA for 972b6ce
resources/js/hooks/use-appearance.tsx
@@ -23,6 +23,7 @@ const applyTheme = (appearance: Appearance) => {
23
const isDark = appearance === 'dark' || (appearance === 'system' && prefersDark());
24
25
document.documentElement.classList.toggle('dark', isDark);
26
+ document.documentElement.style.colorScheme = isDark ? 'dark' : 'light';
27
};
28
29
const mediaQuery = () => {
0 commit comments