You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New visitors now always start with the light theme instead of
following the OS setting. Users can still switch to "System"
in Settings → Appearance to follow their OS preference.
Changes:
- themeStore default preference: "system" → "light"
- Anti-FOUC script fallback: "system" → "light"
- Theme doc: marked §7.4 (root variables) and §7.5 (PWA
theme-color) as fixed — both were already resolved in code
but the doc still listed them as open issues
Copy file name to clipboardExpand all lines: Notes/Theme_Light_Dark.md
+21-12Lines changed: 21 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -90,10 +90,12 @@ themeStore.ts (single source of truth)
90
90
| 🌙 Dark |`"dark"`|`docsplus-dark`| Always dark |
91
91
| 🎯 Dark HC |`"dark-hc"`|`docsplus-dark-hc`| High contrast dark for projectors |
92
92
93
+
**Default: `"light"`** — new users see the light theme on first visit. The "System" option is available in Settings → Appearance for users who prefer to follow their OS setting.
94
+
93
95
**Anti-FOUC inline script** in `_document.tsx` runs before React hydration:
94
96
```js
95
97
// Reads persisted Zustand state from localStorage and applies data-theme immediately
96
-
var p = (state.preference) ||'system';
98
+
var p = (state.preference) ||'light';
97
99
var t = p==='dark-hc'?'docsplus-dark-hc'
98
100
: p==='dark'?'docsplus-dark'
99
101
: p==='light'?'docsplus'
@@ -435,7 +437,7 @@ Since the theme toggle is instant, `prefers-reduced-motion` has no bearing on it
435
437
| 🌙 Dark |`"dark"`|`docsplus-dark`| Always dark, ignores OS setting |
436
438
| 🎯 Dark HC |`"dark-hc"`|`docsplus-dark-hc`| High contrast dark for projectors/classrooms |
437
439
438
-
**Default: `"system"`** — respects the user's OS-level accessibility and comfort settings out of the box.
440
+
**Default: `"light"`** — new users always start with the light theme. Users can switch to "System" in Settings → Appearance to follow their OS preference.
439
441
440
442
**Implementation (complete):**
441
443
@@ -476,28 +478,35 @@ Components using `bg-white`, `text-gray-*`, `bg-[#hex]` instead of semantic toke
The browser chrome, status bar, and task switcher now match the active OS color scheme.
509
+
501
510
### 7.6 ✅ Overlay Component Dark Mode Compliance (Fixed 2026-02-16)
502
511
503
512
Multiple overlay/floating components were invisible or poorly visible in dark mode because they lacked borders, used insufficient shadows, or used `base-100` (which matches the dark page background).
0 commit comments