From 65bb1b692ab89bdc1ad831486c7e5d6b300da2fe Mon Sep 17 00:00:00 2001 From: mohiit1502 Date: Wed, 12 Aug 2026 01:10:15 +0530 Subject: [PATCH] Default theme to Sage (consumer) for all new users - resolveStoredTheme() falls back to 'consumer' instead of 'dark' - ThemeContext default also updated to 'consumer' - Users with a previously saved theme are unaffected (localStorage wins) Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- src/theme/context.ts | 2 +- src/theme/index.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/theme/context.ts b/src/theme/context.ts index 1f760e6..81dfc33 100644 --- a/src/theme/context.ts +++ b/src/theme/context.ts @@ -15,7 +15,7 @@ export interface ThemeContextValue { } export const ThemeContext = createContext({ - theme: 'dark', + theme: 'consumer', toggleTheme: () => { }, toggleWithTransition: () => { }, setTheme: () => { }, diff --git a/src/theme/index.tsx b/src/theme/index.tsx index c29b669..3a7065f 100644 --- a/src/theme/index.tsx +++ b/src/theme/index.tsx @@ -6,9 +6,9 @@ function resolveStoredTheme(): Theme { const stored = localStorage.getItem('nbl-theme') const valid: Theme[] = ['light', 'warm', 'dim', 'dark', 'terra', 'dusk', 'slate', 'consumer'] if (valid.includes(stored as Theme)) return stored as Theme - // Migrate any unrecognised or old values to dark (Agos — the primary theme) + // Migrate any unrecognised or old values to consumer (Sage — the default) } catch { /* ignore */ } - return 'dark' + return 'consumer' } function applyTheme(t: Theme) {