Appearance module exposes information about the user’s appearance preferences, such as their preferred color scheme (light or dark).
Developer notes
The color scheme preference will map to the user’s Light Mode on Vega.
Example
You can use theAppearance module to determine if the user prefers a dark color scheme:
Reference
Methods
getColorScheme()
setColorScheme) or on a schedule (e.g. light and dark themes that follow the day/night cycle).
Supported color schemes:
light: The user prefers a light color theme.dark: The user prefers a dark color theme.- null: The user has not indicated a preferred color theme.
useColorScheme hook.
Note:getColorScheme()will always returnlighton Vega and when debugging with Chrome.

