Indicates the user’s preferred color scheme for the web page, often used to switch between light and dark modes. This can be emulated to test different theme adaptations of a website.

Definition

enum ColorScheme {
  NO_PREFERENCE
  LIGHT
  DARK
}

Values

NO_PREFERENCE

The user has not expressed a preference for a specific color scheme. The website should use its default theme.

LIGHT

The user prefers a light theme, typically with dark text on a light background.

DARK

The user prefers a dark theme, typically with light text on a dark background.