Skip to content

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.

RevTurbineColorScheme

The requested scheme. 'system' follows the OS.

"light" | "dark"

'light' or 'dark'.