diff options
| author | Dawid Rycerz <dawid@rycerz.xyz> | 2025-07-03 22:59:58 +0300 |
|---|---|---|
| committer | Dawid Rycerz <dawid@rycerz.xyz> | 2025-07-03 22:59:58 +0300 |
| commit | 7913ca14a300ec6e357dc8554276f80867a818b2 (patch) | |
| tree | 035dbb84dc7cbffb438dc9b9df48950afdc107b8 /src | |
| parent | 17221b57f9345575add173be49efb4587fc3c828 (diff) | |
Change default theme to dark one
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/ThemeProvider.astro | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/ThemeProvider.astro b/src/components/ThemeProvider.astro index 5f0723d..3bedcc5 100644 --- a/src/components/ThemeProvider.astro +++ b/src/components/ThemeProvider.astro @@ -4,7 +4,7 @@ function getUserPref() { const storedTheme = typeof localStorage !== "undefined" && localStorage.getItem("theme"); - return storedTheme || (lightModePref.matches ? "light" : "dark"); + return storedTheme || "dark"; } function setTheme(newTheme) { |
