Skip to content

Commit 4773710

Browse files
committed
update : default light theme
1 parent a7c7991 commit 4773710

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/components/MainHead.astro

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@ const {
3131
if (typeof localStorage !== "undefined" && localStorage.getItem("theme")) {
3232
return localStorage.getItem("theme");
3333
}
34-
return window.matchMedia("(prefers-color-scheme: dark)").matches
35-
? "dark"
36-
: "light";
34+
return "light";
35+
3736
};
3837
const isDark = getThemePreference() === "dark";
3938
document.documentElement.classList[isDark ? "add" : "remove"]("theme-dark");

0 commit comments

Comments
 (0)