feat(portal): default to dark theme for new visitors
Memind CI / Test, build, and release guards (push) Successful in 3m11s
Memind CI / Test, build, and release guards (push) Successful in 3m11s
First-time and cleared-storage users see dark mode; saved light preference is unchanged. Inline boot script avoids a light flash before React loads. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -5,7 +5,8 @@
|
||||
|
||||
function getStoredTheme() {
|
||||
const stored = localStorage.getItem(THEME_STORAGE_KEY);
|
||||
return stored === 'dark' ? 'dark' : 'light';
|
||||
if (stored === 'dark' || stored === 'light') return stored;
|
||||
return 'dark';
|
||||
}
|
||||
|
||||
function applyTheme(theme) {
|
||||
|
||||
Reference in New Issue
Block a user