Enables browser extensions to update the browser theme.

To use this API, an extension must request the "theme" permission in its manifest.json file.

Types

theme.Theme
Represents the content of a theme.

Functions

theme.reset()
Removes any theme updates made in a call to theme.update().
theme.update()
Updates the browser’s theme.

Browser compatibility

ChromeEdgeFirefoxFirefox for AndroidOpera
Theme No No55 No No
reset No No56 No No
update No No55 No No

Example extensions

Document Tags and Contributors

 Contributors to this page: wbamberg, rebloor
 Last updated by: wbamberg,