Describe the bug
Hi,
I am trying to force the mode to be light by default, regardless of the system preference. But it seems that mode-watcher-mode always defaults to system.
So if my systemPrefersMode is system/dark, I would expect defaultMode="light" to override that and use light by default, assuming the mode is not set in localStorage.
As the docs say:
I tried setting track={false}, but that just stops the page from changing the mode dynamically when I change my Windows mode.
I am not sure if this is intended behavior, or I am missing something. Basically, I want to ignore whatever mode is inferred by prefers-color-scheme and use light. Users then can toggle whatever mode they want, but the initial one without localStorage keys stored should be light.
Reproduction
The Stackblitz template link is not working anymore.
Logs
System Info
Severity
annoyance
Describe the bug
Hi,
I am trying to force the mode to be
lightby default, regardless of the system preference. But it seems thatmode-watcher-modealways defaults tosystem.So if my
systemPrefersModeissystem/dark, I would expectdefaultMode="light"to override that and uselightby default, assuming the mode is not set inlocalStorage.As the docs say:
I tried setting
track={false}, but that just stops the page from changing the mode dynamically when I change my Windows mode.I am not sure if this is intended behavior, or I am missing something. Basically, I want to ignore whatever mode is inferred by
prefers-color-schemeand uselight. Users then can toggle whatever mode they want, but the initial one withoutlocalStoragekeys stored should belight.Reproduction
The Stackblitz template link is not working anymore.
Logs
System Info
Severity
annoyance