files/en-us/mozilla/add-ons/webextensions/api/theme/index.md
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.
{{WebExtExamples("h2")}}
{{Compat}}