API Reference
systemPrefersMode
A store for tracking the system's preferred mode.
A readable store that represents the operating system's mode preference. It can be "light"
or "dark"
, or if evaluated on the server, undefined
.
This store will automatically track changes to the operating system's mode preference unless this is disabled by setting the track
prop to false
in the ModeWatcher component.