From bfadd98fa86788c9bd4f313294f2411d88fbc9a9 Mon Sep 17 00:00:00 2001 From: aidanCQ Date: Wed, 20 Dec 2023 21:13:34 +0000 Subject: [PATCH] fix(): Make dark mode default. --- src/utils/darkMode.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/darkMode.ts b/src/utils/darkMode.ts index c6febe4..f511084 100644 --- a/src/utils/darkMode.ts +++ b/src/utils/darkMode.ts @@ -16,8 +16,9 @@ const isDark = (mode: Mode): boolean => { const getTheme = () => { const localMode = localStorage.getItem(mode_storage_key); + // Default to dark mode if none specified. const resolvedMode = - localMode !== null && isMode(localMode) ? localMode : ("system" as const); + localMode !== null && isMode(localMode) ? localMode : ("dark" as const); return { mode: resolvedMode, isDark: isDark(resolvedMode),