docs.rodeo

MDN Web Docs mirror

theme

{{AddonSidebar}} 

Enables browser extensions to get details of the browser’s theme and update the theme.

You can use this API to include a theme in your extension, which you define as a {{WebExtAPIRef("theme.Theme")}}  and apply using {{WebExtAPIRef("theme.update()")}} . You cannot include a static theme in your extension, defined with the “theme” manifest key. The “theme” manifest key is used to define static themes only. See Themes on Extension Workshop for more information.

Types

Functions

Events

{{WebExtExamples("h2")}} 

Browser compatibility

{{Compat}} 

In this article

View on MDN