Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@ browser-compat: webextensions.api.browserSettings.overrideContentColorScheme

A {{WebExtAPIRef("types.BrowserSetting", "BrowserSetting")}} object whose underlying value is a string.

Firefox enables users to choose a theme for the browser UI. These themes apply either a light or dark theme to webpages. Using the `layout.css.prefers-color-scheme.content-override` preference, users can override the theme and choose to render webpages in a light or dark theme or follow the device's theme. This browser setting exposes that preference.
Firefox enables users to choose a theme for the browser UI. These themes apply either a light or dark theme to webpages. Using the `layout.css.prefers-color-scheme.content-override` preference, users can override the theme and choose to render webpages in a light or dark theme. This browser setting exposes that preference.

This object takes these values:

- "light": Applies a light theme to webpages.
- "dark": Applies a dark theme to webpages.
- "system": Applies a light or dark theme to webpages based on the device's theme.
- "browser": Applies a light or dark theme to webpages based on the browser's theme.
- "auto": Automatically applies a light or dark theme to webpages based on the browser's theme.

## Browser compatibility

Expand Down