We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2524fd0 commit c544c6bCopy full SHA for c544c6b
1 file changed
src/components/theme-provider.tsx
@@ -44,6 +44,8 @@ export function ThemeProvider({
44
const next = prev === "light" ? "dark" : "light";
45
document.cookie = `theme=${next};path=/;max-age=31536000;SameSite=Lax`;
46
document.documentElement.classList.toggle("dark", next === "dark");
47
+ document.documentElement.style.backgroundColor =
48
+ next === "dark" ? "oklch(0.145 0 0)" : "";
49
return next;
50
});
51
}, []);
0 commit comments