The toggle sets data-theme="dark" on html but nothing reads it. components use inline hardcoded colors everywhere so the attribute does nothing. the dark mode button itself is backgroundColor: '#eee'.
Also resets on every refresh, no localStorage, no prefers-color-scheme. needs a proper CSS variable system and persistence.
what needs:
- define a CSS variable system (--bg-primary, --text-primary, etc.) with light/dark values
- replace all inline hardcoded colors with CSS vars
- persist to localStorage
- read prefers-color-scheme on first load