useResolvedColorScheme
useResolvedColorScheme(
preference):"light"|"dark"
Resolve a RevTurbineColorScheme to the concrete scheme to paint.
'system' tracks prefers-color-scheme and keeps tracking it: a user
flipping their OS theme updates the resolved value without a remount, which
is the difference between following the system and sampling it once at init.
Parameters
Section titled “Parameters”preference
Section titled “preference”The requested scheme. 'system' follows the OS.
Returns
Section titled “Returns”"light" | "dark"
'light' or 'dark'.