theme
<table class="fullwidth-table standard-table"> <tbody> <tr> <th scope="row">Type</th> <td><code>Object</code></td> </tr> <tr> <th scope="row">Mandatory</th> <td>No</td> </tr> <tr> <th scope="row">Manifest version</th> <td>2 or higher</td> </tr> <tr> <th scope="row">Example</th>
<table class="fullwidth-table standard-table">
<tbody>
<tr>
<th scope="row">Type</th>
<td><code>Object</code></td>
</tr>
<tr>
<th scope="row">Mandatory</th>
<td>No</td>
</tr>
<tr>
<th scope="row">Manifest version</th>
<td>2 or higher</td>
</tr>
<tr>
<th scope="row">Example</th>
<td>
<pre class="brush: json">
"theme": {
"images": {
"theme_frame": "images/sun.jpg"
},
"colors": {
"frame": "#CF723F",
"tab_background_text": "black"
}
}</pre
>
</td>
</tr>
</tbody>
</table>
Use the `theme` key to define a static theme to apply to Firefox. When provided alone, this defines the theme used when Firefox is using either the light or dark color schemes. If the [`dark_theme` key](/docs/Mozilla/Add-ons/WebExtensions/manifest.json/dark_theme) is provided, this key provides the theme used when Firefox is using the light color scheme.
> [!NOTE]
> If you want to include a theme with an extension, please see the theme API.
> [!NOTE]
> Since May 2019, themes need to be signed to be installed ([Firefox bug 1545109](https://bugzil.la/1545109)). See [Signing and distributing your add-on](https://extensionworkshop.com/documentation/publish/signing-and-distribution-overview/#distributing-your-addon) for more details.
## Image formats
The following image formats are supported in all theme image properties:
- JPEG
- PNG
- APNG
- SVG (animated SVG is supported from Firefox 59)
- GIF (animated GIF isn't supported)
## Syntax
The theme key is an object that takes the following properties:
<table class="fullwidth-table standard-table">
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Type</th>
<th scope="col">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>images</code></td>
<td><code>Object</code></td>
<td>
<p>Optional as of Firefox 60. Mandatory before Firefox 60.</p>
<p>
A JSON object whose properties represent the images to display in
various parts of the browser. See
<code><a href="#images">images</a></code> for details on the
properties that this object can contain.
</p>
</td>
</tr>
<tr>
<td><code>colors</code></td>
<td><code>Object</code></td>
<td>
<p>Mandatory</p>
<p>
A JSON object whose properties represent the colors of various parts
of the browser. See <code><a href="#colors">colors</a></code> for
details on the properties that this object can contain.
</p>
</td>
</tr>
<tr>
<td><code>properties</code></td>
<td><code>Object</code></td>
<td>
<p>Optional</p>
<p>
This object has properties that affect how the
<code>"additional_backgrounds"</code> items are displayed and color schemes are applied. See
<code><a href="#properties">properties</a></code> for details on the properties that this object can contain.
</p>
</td>
</tr>
</tbody>
</table>
### images
All URLs are relative to the manifest.json file and cannot reference an external URL.
Images should be 200 pixels high to ensure they always fill the header space vertically.
<table class="fullwidth-table standard-table">
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Type</th>
<th scope="col">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>theme_frame</code></td>
<td><code>String</code> or <code>Object</code></td>
<td>
<p>
A foreground image (defined by the path to an image asset packaged in the extension) or <a href="#css_gradient_syntax">CSS gradient</a>
to be added to the header area and anchored to the upper right corner
of the header area. CSS gradients are supported from Firefox 153.
</p>
<div class="notecard note">
<p>
<strong>Note:</strong> Chrome anchors the image to the top left of
the header and if the image doesn't fill the header area tile the
image.
</p>
</div>
<p>
Optional in desktop Firefox 60 onwards.
</p>
</td>
</tr>
<tr>
<td><code>additional_backgrounds</code></td>
<td><code>Array</code> of <code>String</code> or <code>Object</code></td>
<td>
<div class="warning">
<p>
<strong>Warning:</strong> The
<code>additional_backgrounds</code> property is experimental. It's
accepted in release versions of Firefox, but its behavior
is subject to change.
</p>
</div>
<p>
An array of additional background items, each being either the path to an image asset packaged in the extension or <a href="#css_gradient_syntax">CSS gradient</a>, to be added to
the header area and displayed behind the
<code>"theme_frame":</code> item. These additional background items layer the first item in
the array on top and the last item at the bottom. CSS gradients are
supported from Firefox 153.
</p>
<p>Optional</p>
<p>
By default, all items are anchored to the upper right corner of the
header area, but their alignment, repeat, and size behavior, and the
area of the browser window they are drawn in, can be controlled by
<a href="#properties"><code>"properties":</code></a>.
</p>
<p>
As additional background items display behind the <code>theme_frame</code> item, if <code>theme_frame</code> is set as a CSS gradient, any additional background items are hidden.
</p>
</td>
</tr>
</tbody>
</table>
### CSS gradient syntax
A CSS gradient is specified as an object in the form `{ "GRADIENT_TYPE": "GRADIENT_PARAMS" }`, where:
- `GRADIENT_TYPE` is one of:
- `linear-gradient`
- `radial-gradient`
- `conic-gradient`
- `repeating-linear-gradient`
- `repeating-radial-gradient`
- `repeating-conic-gradient`
- `GRADIENT_PARAMS` contains the parameters for that CSS gradient function, as described in [CSS gradient values](/docs/Web/CSS/Reference/Values/gradient).
### colors
These properties define the colors used for different parts of the browser. They are all optional.
> [!NOTE]
> Color properties introduced in Firefox 157 (Nova) are ignored in earlier Firefox versions; use `strict_min_version` for themes designed only for Nova.
How these properties affect the Firefox UI is shown here:
<table class="fullwidth-table standard-table">
<tbody>
<tr>
<td>
<p>
Firefox 157 and later (Nova):
<img
alt="Overview of the color properties and how they apply to Firefox UI components in Nova"
src="themes_components_annotations-nova.webp"
/>
</p>
<p>
Firefox 156 and earlier:
<img
alt="Overview of the color properties and how they apply to Firefox UI components"
src="themes_components_annotations.png"
/>
</p>
</td>
</tr>
</tbody>
</table>
> [!NOTE]
> Where a component is affected by multiple color properties, the properties are listed in order of precedence.
All these properties can be specified as either a string containing any valid [CSS color string](/docs/Web/CSS/Reference/Values/color_value) (including hexadecimal), or an RGB array, such as `"tab_background_text": [ 107 , 99 , 23 ]`.
> [!NOTE]
> [In Chrome, colors may only be specified as RGB arrays](#chrome_compatibility).
<table class="fullwidth-table standard-table">
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>bookmark_text</code></td>
<td>
<p>
The color of text and icons in the bookmark and find bars. Also, if
<code>tab_text</code> isn't defined it sets the color of the active
tab text and if <code>icons</code> isn't defined the color of the
toolbar icons. Provided as Chrome compatible alias for
<code>toolbar_text</code>.
</p>
<div class="notecard note">
<p>
<strong>Note:</strong> Ensure any color used contrasts well with
those used in <code>frame</code> and <code>frame_inactive</code> or
<code>toolbar</code> if you're using that property.
</p>
<p>
Where <code>icons</code> isn't defined, also ensure good contrast
with <code>button_background_active</code> and
<code>button_background_hover</code>.
</p>
</div>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"frame": "black",
"tab_background_text": "white",
"tab_text": "white",
"toolbar": "black",
"bookmark_text": "red"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="Browser Firefox is black. Browser's tab is black with white text. URL bar and the find in page bar are white with black text but all the browser and the find in page bar icons are red."
src="theme-bookmark_text-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img
alt="Browser Firefox is black. Browser's tab is black with white text. URL bar and the find in page bar are white with black text but all the browser and the find in page bar icons are red."
src="theme-bookmark_text.png"
/>
</p>
</td>
</tr>
<tr>
<td><code>button_background_active</code></td>
<td>
<p>The color of the background of the pressed toolbar buttons.</p>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"frame": "black",
"tab_background_text": "white",
"button_background_active": "red"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="Browser firefox is black. Browser's tabs and URL bar are gray with white text. The customize toolbar icon in the url bar in white with a red background is pressed and a popup is open displaying a short list of thing to add to the toolbar such as the browser's library and the sidebars."
src="theme-button_background_active-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img alt="Browser firefox is black. Browser's tabs and URL bar are gray with white text. The customize toolbar icon in the url bar in white with a red background is pressed and a popup is open displaying a short list of thing to add to the toolbar such as the browser's library and the sidebars." src="theme-button_background_active.png" />
</p>
</td>
</tr>
<tr>
<td><code>button_background_hover</code></td>
<td>
<p>The color of the background of the toolbar buttons on hover.</p>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"frame": "black",
"tab_background_text": "white",
"button_background_hover": "red"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="Browser firefox is black. Browser's tabs and URL bar are gray with white text. The go back one page icon is white with a red circle background."
src="theme-button_background_hover-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img alt="Browser firefox is black. Browser's tabs and URL bar are gray with white text. The go back one page icon is white with a red circle background." src="theme-button_background_hover.png" />
</p>
</td>
</tr>
<tr>
<td><code>icons</code></td>
<td>
<p>The color of toolbar icons, excluding those in the find toolbar.</p>
<div class="notecard note">
<p>
<strong>Note:</strong> Ensure the color used contrasts well with
those used in <code>frame</code>, <code>frame_inactive</code>,
<code>button_background_active</code>, and
<code>button_background_hover</code>.
</p>
</div>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"frame": "black",
"tab_background_text": "white",
"icons": "red"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="Browser firefox is black. Browser's tabs and URL bar are gray with white text. The URL bar and open a new tab icons are red. The red icons contrast well with the black background color of the header area."
src="theme-icons-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img alt="Browser firefox is black. Browser's tabs and URL bar are gray with white text. The URL bar and open a new tab icons are red. The red icons contrast well with the black background color of the header area." src="theme-icons.png" />
</p>
</td>
</tr>
<tr>
<td><code>icons_attention</code></td>
<td>
<p>
The color of toolbar icons in attention state such as the starred
bookmark icon or finished download icon.
</p>
<div class="notecard note">
<p>
<strong>Note:</strong> Ensure the color used contrasts well with
those used in <code>frame</code>, <code>frame_inactive</code>,
<code>button_background_active</code>, and
<code>button_background_hover</code>.
</p>
</div>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"frame": "black",
"tab_background_text": "white",
"icons_attention": "red"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="Browser firefox is black. Browser's tabs and URL bar are gray with white text. The bookmark this page icon is red and pressed, an open popup name edit this bookmark is displayed. While in attention state, the toolbar icons contrast well with the black background of the header area."
src="theme-icons_attention-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img alt="Browser firefox is black. Browser's tabs and URL bar are gray with white text. The bookmark this page icon is red and pressed, an open popup name edit this bookmark is displayed. While in attention state, the toolbar icons contrast well with the black background of the header area." src="theme-icons_attention.png" />
</p>
</td>
</tr>
<tr>
<td><code>frame</code></td>
<td>
<p>
The color of the header area background, displayed in the part of the
header not covered or visible through the items specified in
<code>"theme_frame"</code> and <code>"additional_backgrounds"</code>.
</p>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"frame": "red",
"tab_background_text": "white"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="Browser firefox is red with white text. Browsers tabs are lighter red, also with white text. URL bar is very light red with black text"
src="theme-frame-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img alt="Browser firefox is red with white text. Browsers tabs are lighter red, also with white text. URL bar is very light red with black text" src="theme-frame.png" />
</p>
</td>
</tr>
<tr>
<td><code>frame_inactive</code></td>
<td>
<p>
The color of the header area background when the browser window is
inactive, displayed in the part of the header not covered or visible
through the items specified in <code>"theme_frame"</code> and
<code>"additional_backgrounds"</code>.
</p>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"frame": "red",
"frame_inactive": "gray",
"tab_text": "white"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="Browser firefox is gray. Browser's tabs and URL bar are lighter gray. The tab text is white and the URL bar icon are darker gray."
src="theme-frame_inactive-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img
alt="Browser firefox is gray. Browser's tabs and URL bar are lighter gray. The tab text is white and the URL bar icon are darker gray."
src="theme-frame_inactive.png"
/>
</p>
</td>
</tr>
<tr>
<td><code>ntp_background</code></td>
<td>
<p>The new tab page background color.</p>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"ntp_background": "red"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="Firefox showing a new tab page. The background of the page is red."
src="ntp-background-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img alt="Firefox showing a new tab page. The background of the page is red." src="ntp-background.png" />
</p>
</td>
</tr>
<tr>
<td><code>ntp_card_background</code></td>
<td>
<p>The new tab page card background color.</p>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"ntp_card_background": "red"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="Firefox showing a new tab page. On the page, the background to the search bar and shortcut buttons is red."
src="ntp-card-background-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img alt="Firefox showing a new tab page. On the page, the background to the search bar and shortcut buttons is red." src="ntp-card-background.png" />
</p>
</td>
</tr>
<tr>
<td><code>ntp_text</code></td>
<td>
<p>The new tab page text color.</p>
<div class="notecard note">
<p>
<strong>Note:</strong> Ensure the color used contrasts well with
that used in <code>ntp_background</code> and <code>ntp_card_background</code>.
</p>
</div>
<div class="notecard note">
<p>
<strong>Note:</strong> In Nova, the text in the search box is not styled. It takes the default text color.
</p>
</div>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"ntp_text": "red"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="Firefox showing a new tab page. On the page, the text is in red."
src="ntp-text-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img alt="Firefox showing a new tab page. On the page, the text is in red." src="ntp-text.png" />
</p>
</td>
</tr>
<tr>
<td><code>popup</code></td>
<td>
<p>
The background color of popups (such as the URL bar dropdown and the
arrow panels).
</p>
<p>
<div class="notecard note">
<p>
<strong>Note:</strong> In Firefox 157 and later (Nova), the URL bar dropdown doesn't use
<code>popup</code> or <code>popup_text</code>: it keeps the browser's
default colors.
</p>
</div>
</p>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"frame": "black",
"tab_background_text": "white",
"popup": "red"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="Browser firefox is black. Browser's tabs and URL bar are lighter gray with icons and text in white. The bookmark this page icon is blue and pressed, an open popup name 'edit this bookmark' is displayed with a red background. The background color of the popup is red."
src="theme-popup-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img alt="Browser firefox is black. Browser's tabs and URL bar are lighter gray with icons and text in white. The bookmark this page icon is blue and pressed, an open popup name 'edit this bookmark' is displayed with a red background. The background color of the popup is red." src="theme-popup.png" />
</p>
</td>
</tr>
<tr>
<td><code>popup_border</code></td>
<td>
<p>The border color of popups.</p>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"frame": "black",
"tab_background_text": "white",
"popup": "black",
"popup_text": "white",
"popup_border": "red"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="Browser firefox is black. Browser's tabs and URL bar are lighter gray with icons and text in white. The bookmark this page icon is blue and pressed, an open popup name 'edit this bookmark' is displayed with a red outline and black background. The popup's border is red."
src="theme-popup_border-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img alt="Browser firefox is black. Browser's tabs and URL bar are lighter gray with icons and text in white. The bookmark this page icon is blue and pressed, an open popup name 'edit this bookmark' is displayed with a red outline and black background. The popup's border is red." src="theme-popup_border.png" />
</p>
</td>
</tr>
<tr>
<td><code>popup_highlight</code></td>
<td>
<p>
The background color of items highlighted using the keyboard inside
popups (such as the selected URL bar dropdown item).
</p>
<div class="notecard note">
<p>
<strong>Note:</strong> It's recommended to define
<code>popup_highlight_text</code> to override the browser default
text color on various platforms.
</p>
</div>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"frame": "black",
"tab_background_text": "white",
"popup_highlight": "red",
"popup_highlight_text": "white"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="screenshot of firefox is black. Browser's tabs and URL bar are lighter gray with icons and text in white. A search results popup is displayed with a highlighted item's background in red. The background color of the highlighted item inside the popup is red."
src="theme-popup_highlight-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img alt="screenshot of firefox is black. Browser's tabs and URL bar are lighter gray with icons and text in white. A search results popup is displayed with a highlighted item's background in red. The background color of the highlighted item inside the popup is red." src="theme-popup_highlight.png" />
</p>
</td>
</tr>
<tr>
<td><code>popup_highlight_text</code></td>
<td>
<p>The text color of items highlighted inside popups.</p>
<div class="notecard note">
<p>
<strong>Note:</strong> Ensure the color used contrasts well with
that used in <code>popup_highlight</code>.
</p>
</div>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"frame": "black",
"tab_background_text": "white",
"popup_highlight": "black",
"popup_highlight_text": "red"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="Browser firefox is black. Browser's tabs and URL bar are lighter gray with icons and text in white. A search results popup is displayed with a highlighted item's text in red with a black background. The text color of the highlighted item contrasts well with the black background color of this item."
src="theme-popup_highlight_text-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img alt="Browser firefox is black. Browser's tabs and URL bar are lighter gray with icons and text in white. A search results popup is displayed with a highlighted item's text in red with a black background. The text color of the highlighted item contrasts well with the black background color of this item." src="theme-popup_highlight_text.png" />
</p>
</td>
</tr>
<tr>
<td><code>popup_text</code></td>
<td>
<p>The text color of popups.</p>
<div class="notecard note">
<p>
<strong>Note:</strong> Ensure the color used contrasts well with
that used in <code>popup</code>.
</p>
</div>
<p>
<div class="notecard note">
<p>
<strong>Note:</strong> In Firefox 157 and later (Nova), the URL bar dropdown doesn't use
<code>popup</code> or <code>popup_text</code>: it keeps the browser's
default colors.
</p>
</div>
</p>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"frame": "black",
"tab_background_text": "white",
"popup": "black",
"popup_text": "red"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="Firefox with a black frame and white tab text. The Add bookmark panel is open, with a black background and its labels, fields, and buttons in red."
src="popup_text-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img alt="Browser firefox is black. Browser's tabs and URL bar are lighter gray with icons and text in white. A search results popup is displayed with items texts in red. The text color contrasts well with the black background color of the popup." src="popup_text.png" />
</p>
</td>
</tr>
<tr>
<td><code>sidebar</code></td>
<td>
<p>The background color of the sidebar.</p>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"sidebar": "red",
"sidebar_highlight": "white",
"sidebar_highlight_text": "green",
"sidebar_text": "white"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="A close-up screenshot of a browser windows's open sidebar. The background color of the sidebar is red."
src="sidebar-colors-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img alt="A close-up screenshot of a browser windows's open sidebar. The background color of the sidebar is red." src="sidebar-colors.png" />
</p>
</td>
</tr>
<tr>
<td><code>sidebar_border</code></td>
<td>
<p>The border and splitter color of the browser sidebar</p>
<div class="notecard note">
<p>
<strong>Note:</strong> In Firefox 157 and later (Nova), the redesigned sidebar no longer includes a splitter.
</p>
</div>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"sidebar_border": "red"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="A closeup of the firefox browser bookmarks sidebar with a red horizontal separator between the sidebar title and the sidebar menu. The border and splitter color of the sidebar is red."
src="sidebar-border-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img alt="A closeup of the firefox browser bookmarks sidebar with a red horizontal separator between the sidebar title and the sidebar menu. The border and splitter color of the sidebar is red." src="sidebar-border.png" />
</p>
</td>
</tr>
<tr>
<td><code>sidebar_highlight</code></td>
<td>
<p>The background color of highlighted rows in built-in sidebars</p>
<p>
<div class="notecard note">
<p>
<strong>Note:</strong> In Firefox 157 and later (Nova), a highlighted row in the redesigned sidebar keeps the browser's default highlight color, so this property has no visible effect.
</p>
</div>
</p>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"sidebar_highlight": "red",
"sidebar_highlight_text": "white"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="The bookmarks sidebar with a row highlighted. The highlighted row keeps the browser's default lavender background rather than the red set by the theme."
src="sidebar-highlight-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img alt="A closeup of the firefox browser bookmarks sidebar with a highlighted item. The background color of a highlighted row in the sidebar is red with white text." src="sidebar-highlight.png" />
</p>
</td>
</tr>
<tr>
<td><code>sidebar_highlight_text</code></td>
<td>
<p>The text color of highlighted rows in sidebars.</p>
<div class="notecard note">
<p>
<strong>Note:</strong> Ensure the color used contrasts well with
that used in <code>sidebar_highlight</code>.
</p>
</div>
<p>
<div class="notecard note">
<p>
<strong>Note:</strong> In Firefox 157 and later (Nova), a highlighted row in the redesigned sidebar keeps the browser's default text color, so this property has no visible effect.
</p>
</div>
</p>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"sidebar_highlight": "pink",
"sidebar_highlight_text": "red",
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="The bookmarks sidebar with a row highlighted. The highlighted row's label keeps the browser's default color rather than the red set by the theme."
src="sidebar-highlight-text-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img alt="A closeup of the firefox browser bookmarks sidebar with a highlighted item. The color of the text of a highlighted row in the sidebar is red. The text color contrasts well with the pink background color of the highlighted row." src="sidebar-highlight-text.png" />
</p>
</td>
</tr>
<tr>
<td><code>sidebar_text</code></td>
<td>
<p>The text color of sidebars.</p>
<div class="notecard note">
<p>
<strong>Note:</strong> Ensure the color used contrasts well with
that used in <code>sidebar</code>.
</p>
</div>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"sidebar": "red",
"sidebar_highlight": "white",
"sidebar_highlight_text": "green",
"sidebar_text": "white"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="A close-up screenshot of a browser windows's open sidebar. The color of the text inside the sidebar is white. The text color contrasts well with the red background of the sidebar."
src="sidebar-colors-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img alt="A close-up screenshot of a browser windows's open sidebar. The color of the text inside the sidebar is white. The text color contrasts well with the red background of the sidebar." src="sidebar-colors.png" />
</p>
</td>
</tr>
<tr>
<td><code>tab_background_text</code></td>
<td>
<p>
The color of the text displayed in the inactive page tabs. If
<code>tab_text</code> or <code>bookmark_text</code> isn't specified,
applies to the active tab text.
</p>
<div class="notecard note">
<p>
<strong>Note:</strong> Ensure the color used contrasts well with
those used in <code>tab_selected</code> or <code>frame</code> and
<code>frame_inactive</code>.
</p>
</div>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"frame": "black",
"toolbar": "white",
"tab_background_text": "red"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="A screenshot of a browser window with one open tab. Browser is black. Browser's tabs and URL bar are white with red icons and red text. The color of the text in the open tab is red. The text color contrasts well with the black background color of the tab."
src="theme-tab_background_text-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img alt="A screenshot of a browser window with one open tab. Browser is black. Browser's tabs and URL bar are white with red icons and red text. The color of the text in the open tab is red. The text color contrasts well with the black background color of the tab." src="theme-tab_background_text.png" />
</p>
</td>
</tr>
<tr>
<td><code>tab_line</code></td>
<td>
<p>The color of the selected tab line.</p>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"frame": "black",
"tab_background_text": "white",
"tab_line": "red"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="Browser firefox is black. Browser's tabs and URL bar are darker gray with lighter gray icons and white text. The selected tab has a red outline."
src="theme-tab_line-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img alt="Browser firefox is black. Browser's tabs and URL bar are darker gray with lighter gray icons and white text. The selected tab has a red outline." src="theme-tab_line.png" />
</p>
</td>
</tr>
<tr>
<td><code>tab_loading</code></td>
<td>
<p>The color of the tab loading indicator and the tab loading burst.</p>
<div class="notecard note">
<p>
<strong>Note:</strong> In Firefox 157 and later (Nova), the tab loading indicator keeps its default color, so this property has no visible effect.
</p>
</div>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"frame": "black",
"tab_background_text": "white",
"tab_loading": "red"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="Firefox with a black frame and white tab text, loading a page. The loading indicator in the tab is the browser's default gray rather than the red set by the theme."
src="theme-tab_loading-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img alt="A screenshot of a browser window with one open tab. Browser is black. Browser's tabs and URL bar are darker gray with icons and text in white. Inside the selected tab an animated loading indicator is red." src="theme-tab_loading.gif" />
</p>
</td>
</tr>
<tr>
<td><code>tab_selected</code></td>
<td>
<p>
The background color of the selected tab. When not in use selected tab
color is set by <code>frame</code> and the
<code>frame_inactive</code>.
<div class="notecard note">
<p>
<strong>Note:</strong> Nova removed the selected tab drop shadow. To ensure selected tabs are clearly visible, set this property to a color that contrasts with <code>frame</code> and <code>frame_inactive</code>.
</p>
</div>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"images": {
"theme_frame": "weta.png"
},
"colors": {
"frame": "black",
"tab_background_text": "white",
"tab_selected": "red"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="A screenshot of a browser window with one open tab. Browser is black. Browser's tabs and URL bar are darker gray with icons and text in white. The selected tab has red background and white text."
src="theme-tab_selected-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img alt="A screenshot of a browser window with one open tab. Browser is black. Browser's tabs and URL bar are darker gray with icons and text in white. The selected tab has red background and white text." src="theme-tab_selected.png" />
</p>
</td>
</tr>
<tr>
<td><code>tab_text</code></td>
<td>
<p>
From Firefox 59, it represents the text color for the selected tab. If
<code>tab_line</code> isn't specified, it also defines the color of
the selected tab line.
</p>
<div class="notecard note">
<p>
<strong>Note:</strong> Ensure the color used contrasts well with
those used in <code>tab_selected</code> or <code>frame</code> and
<code>frame_inactive</code>.
</p>
</div>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"images": {
"theme_frame": "weta.png"
},
"colors": {
"frame": "black",
"tab_background_text": "white",
"tab_selected": "white",
"tab_text": "red"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="Browser firefox has a picture of an insect theme. URL bar is lighter gray with white icons. The selected tab text is red with white background."
src="theme-tab_text-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img alt="Browser firefox has a picture of an insect theme. URL bar is lighter gray with white icons. The selected tab text is red with white background." src="theme-tab_text.png" />
</p>
</td>
</tr>
<tr>
<td><code>toolbar</code></td>
<td>
<p>
The background color for the navigation bar, the bookmarks bar, and
the selected tab.
</p>
<p>This also sets the background color of the "Find" bar.</p>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"frame": "black",
"toolbar": "red",
"tab_background_text": "white"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="Browser firefox is black. Browser's tab, find in page bar and URL bar are red with white text and icons, except for the find in page bar where the text and icon are black."
src="toolbar-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img alt="Browser firefox is black. Browser's tab, find in page bar and URL bar are red with white text and icons, except for the find in page bar where the text and icon are black." src="toolbar.png" />
</p>
</td>
</tr>
<tr>
<td><code>toolbar_bottom_separator</code></td>
<td>
<p>
The color of the line separating the top and left edges of the area containing the web page. It therefore separates the page content from the toolbar above it and, where the sidebar is displayed, from the sidebar to its left.
</p>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"frame": "black",
"tab_background_text": "white",
"toolbar_bottom_separator": "red"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="Browser Firefox is black with white tab text and the sidebar showing its icons. A red line runs along the top and left edges of the area holding the web page, separating that area from the toolbar above it and from the sidebar to its left."
src="theme-toolbar_bottom_separator-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img alt="Browser firefox is black. Browser's tab and URL bar are lighter gray with white text and icons. A horizontal red line separates the bottom of the toolbar and the beginning of the display of the web page." src="theme-toolbar_bottom_separator.png" />
</p>
</td>
</tr>
<tr>
<td><code>toolbar_field</code></td>
<td>
<p>
The background color for fields in the toolbar, such as the URL bar.
</p>
<p>
This also sets the background color of the
<strong>Find in page</strong> field.
</p>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"frame": "black",
"tab_background_text": "white",
"toolbar_field": "red"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="Browser firefox is black. Browser's tab, find in page bar and URL bar are lighter gray with white text and icons. The background color of the URL bar is red. The find in page bar is white with black text. The find in page field is red with black text."
src="toolbar-field-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img alt="Browser firefox is black. Browser's tab, find in page bar and URL bar are lighter gray with white text and icons. The background color of the URL bar is red. The find in page bar is white with black text. The find in page field is red with black text." src="toolbar-field.png" />
</p>
</td>
</tr>
<tr>
<td><code>toolbar_field_border</code></td>
<td>
<p>The border color for fields in the toolbar.</p>
<p>
This also sets the border color of the
<strong>Find in page</strong> field.
</p>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"frame": "black",
"toolbar": "black",
"tab_background_text": "white",
"toolbar_field": "black",
"toolbar_field_text": "white",
"toolbar_field_border": "red"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="Browser firefox is black. Browser's tab, find in page and URL bar are black with white text and icons. The URL bar and find in page fields are outlined in red."
src="toolbar-field-border-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img alt="Browser firefox is black. Browser's tab, find in page and URL bar are black with white text and icons. The URL bar and find in page fields are outlined in red." src="toolbar-field-border.png" />
</p>
</td>
</tr>
<tr>
<td><code>toolbar_field_border_focus</code></td>
<td>
<p>The focused border color for fields in the toolbar.</p>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"frame": "black",
"toolbar": "black",
"tab_background_text": "white",
"toolbar_field": "black",
"toolbar_field_text": "white",
"toolbar_field_border_focus": "red"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="Browser firefox is black. Browser's tab and URL bar are black with white text and icons. The url bar field is focused and outlined in red."
src="theme-toolbar_field_border_focus-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img alt="Browser firefox is black. Browser's tab and URL bar are black with white text and icons. The url bar field is focused and outlined in red." src="theme-toolbar_field_border_focus.png" />
</p>
</td>
</tr>
<tr>
<td><code>toolbar_field_focus</code></td>
<td>
<p>
The focused background color for fields in the toolbar, such as the
URL bar.
</p>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"frame": "black",
"toolbar": "black",
"tab_background_text": "white",
"toolbar_field": "black",
"toolbar_field_text": "white",
"toolbar_field_focus": "red"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="Browser firefox is black. Browser's tab, find in page and URL bar are black with white text and icons. The background color of the focused URL bar is red and the text is white."
src="theme-toolbar_field_focus-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img alt="Browser firefox is black. Browser's tab, find in page and URL bar are black with white text and icons. The background color of the focused URL bar is red and the text is white." src="theme-toolbar_field_focus.png" />
</p>
</td>
</tr>
<tr>
<td><code>toolbar_field_highlight</code></td>
<td>
The background color used to indicate the current selection of text in
the URL bar (and the search bar, if it's configured to be separate).
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"toolbar_field": "rgb(255 255 255 / 91%)",
"toolbar_field_text": "rgb(0 100 0)",
"toolbar_field_highlight": "rgb(180 240 180 / 90%)",
"toolbar_field_highlight_text": "rgb(0 80 0)"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="Browser firefox is white. Browser's tab and URL bar are white with text and icons in black. The URL bar field is focused and outlined in blue and URL bar text is selected."
src="toolbar_field_highlight-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img
alt="Browser firefox is white. Browser's tab and URL bar are white with text and icons in black. The URL bar field is focused and outlined in blue and URL bar text is selected."
src="toolbar_field_highlight.png"
/>
</p>
<p>
Here, the <code>toolbar_field_highlight</code> field specifies that
the highlight color is a light green, while the text is set to a
dark-to-medium green using <code>toolbar_field_highlight_text</code>.
</p>
</td>
</tr>
<tr>
<td><code>toolbar_field_highlight_text</code></td>
<td>
<p>
The color used to draw text that's currently selected in the URL bar
(and the search bar, if it's configured to be separate box).
</p>
<div class="notecard note">
<p>
<strong>Note:</strong> Ensure the color used contrasts well with
those used in <code>toolbar_field_highlight</code>.
</p>
</div>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"toolbar_field": "rgb(255 255 255 / 91%)",
"toolbar_field_text": "rgb(0 100 0)",
"toolbar_field_highlight": "rgb(180 240 180 / 90%)",
"toolbar_field_highlight_text": "rgb(0 80 0)"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="Browser firefox is white. Browser's tab and URL bar are white with text and icons in black. The URL bar field is focused and outlined in blue and URL bar text is selected."
src="toolbar_field_highlight-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img
alt="Browser firefox is white. Browser's tab and URL bar are white with text and icons in black. The URL bar field is focused and outlined in blue and URL bar text is selected."
src="toolbar_field_highlight.png"
/>
</p>
<p>
Here, the <code>toolbar_field_highlight_text</code> field is used to
set the text color to a dark medium-dark green, while the highlight
color is a light green.
</p>
</td>
</tr>
<tr>
<td><code>toolbar_field_text</code></td>
<td>
<p>
The color of text in fields in the toolbar, such as the URL bar. This
also sets the color of text in the
<strong>Find in page</strong> field.
</p>
<div class="notecard note">
<p>
<strong>Note:</strong> Ensure the color used contrasts well with
those used in <code>toolbar_field</code>.
</p>
</div>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"frame": "black",
"toolbar": "black",
"tab_background_text": "white",
"toolbar_field": "black",
"toolbar_field_text": "red"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="A screenshot of a browser window with one open tab. Browser is black. Browser's tab and URL bar are black with white text and icons. The text inside the URL bar is red. The icons and find in page field have red text with black background."
src="toolbar-field-text-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img alt="A screenshot of a browser window with one open tab. Browser is black. Browser's tab and URL bar are black with white text and icons. The text inside the URL bar is red. The icons and find in page field have red text with black background." src="toolbar-field-text.png" />
</p>
</td>
</tr>
<tr>
<td><code>toolbar_field_text_focus</code></td>
<td>
<p>
The color of text in focused fields in the toolbar, such as the URL
bar.
</p>
<div class="notecard note">
<p>
<strong>Note:</strong> Ensure the color used contrasts well with
those used in <code>toolbar_field_focus</code>.
</p>
</div>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"frame": "black",
"toolbar": "black",
"tab_background_text": "white",
"toolbar_field": "black",
"toolbar_field_text": "white",
"toolbar_field_text_focus": "red"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="A screenshot of a browser window with two open tabs. Browser is black. Browser's tab and URL bar are black with text and icons in white. The URL bar has focus; the bar's text and icons are red with black background."
src="theme-toolbar_field_text_focus-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img alt="A screenshot of a browser window with two open tabs. Browser is black. Browser's tab and URL bar are black with text and icons in white. The URL bar has focus; the bar's text and icons are red with black background." src="theme-toolbar_field_text_focus.png" />
</p>
</td>
</tr>
<tr>
<td><code>toolbar_text</code></td>
<td>
<p>
The color of toolbar text. This also sets the color of text in the
"Find" bar.
</p>
<div class="notecard note">
<p>
<strong>Note:</strong> For compatibility with Chrome, use the alias
<code>bookmark_text</code>.
</p>
</div>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"frame": "black",
"tab_background_text": "white",
"toolbar": "black",
"toolbar_text": "red"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="A screenshot of a browser window with one open tab. Browser is black. Browser's tab, find in page bar, and URL bar are black with red text and icons. The text inside the active tab, the navigator bar and the find bar is red."
src="toolbar-text-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img alt="A screenshot of a browser window with one open tab. Browser is black. Browser's tab, find in page bar, and URL bar are black with red text and icons. The text inside the active tab, the navigator bar and the find bar is red." src="toolbar-text.png" />
</p>
</td>
</tr>
<tr>
<td><code>toolbar_top_separator</code></td>
<td>
<p>
The color of the line separating the top of the toolbar from the
region above.
</p>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"frame": "black",
"tab_background_text": "white",
"toolbar": "black",
"toolbar_top_separator": "red"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="A screenshot of a browser window with one open tab. Browser is black. Browser's tab and URL bar are black with white text and icons. A red line separates the top of the URL bar from the browser."
src="theme-toolbar_top_separator-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img alt="A screenshot of a browser window with one open tab. Browser is black. Browser's tab and URL bar are black with white text and icons. A red line separates the top of the URL bar from the browser." src="theme-toolbar_top_separator.png" />
</p>
</td>
</tr>
<tr>
<td><code>toolbar_vertical_separator</code></td>
<td>
<p>
The color of the separator in the bookmarks toolbar. In Firefox 58, it
corresponds to the color of separators inside the URL bar.
</p>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"frame": "black",
"tab_background_text": "white",
"toolbar": "black",
"toolbar_vertical_separator": "red"
}
}</pre
>
</details>
<p>
Firefox 157 and later (Nova):
<img
alt="A screenshot of a browser window with one open tab. Browser is black. Browser's tab and URL bar are black with text and icons in white. The color of the vertical line separating the bookmarks toolbar from the content to the right is red."
src="theme-toolbar_vertical_separator-nova.png"
/>
</p>
<p>
Firefox 156 and earlier:
<img alt="A screenshot of a browser window with one open tab. Browser is black. Browser's tab and URL bar are black with text and icons in white. The color of the vertical line separating the bookmarks toolbar from the content to the right is red." src="theme-toolbar_vertical_separator.png" />
</p>
</td>
</tr>
</tbody>
</table>
#### Aliases
Additionally, this key accepts various properties that are aliases for one of the properties above. These are provided for compatibility with Chrome. If an alias is given, and the non-alias version is also given, then the value will be taken from the non-alias version.
<table class="fullwidth-table standard-table">
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Alias for</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>bookmark_text</code></td>
<td><code>toolbar_text</code></td>
</tr>
</tbody>
</table>
### properties
<table class="fullwidth-table standard-table">
<thead>
<tr>
<th scope="col">Name</th>
<th scope="col">Type</th>
<th scope="col">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>additional_backgrounds_alignment</code></td>
<td>
<p><code>Array</code> of <code>String</code></p>
</td>
<td>
<p>Optional</p>
<p>
An array of enumeration values defining the alignment of the
corresponding <code>"additional_backgrounds":</code> array item.<br />The
alignment options include:
</p>
<ul>
<li><code>"bottom"</code></li>
<li><code>"center"</code></li>
<li><code>"left"</code></li>
<li><code>"right"</code></li>
<li><code>"top"</code></li>
<li><code>"center bottom"</code></li>
<li><code>"center center"</code></li>
<li><code>"center top"</code></li>
<li><code>"left bottom"</code></li>
<li><code>"left center"</code></li>
<li><code>"left top"</code></li>
<li><code>"right bottom"</code></li>
<li><code>"right center"</code></li>
<li><code>"right top"</code>.</li>
</ul>
<p>
If the array contains fewer items than the <code>additional_backgrounds</code> array, the array is reused for the missing values. For example, if <code>additional_backgrounds</code> contains 5 values and <code>additional_backgrounds_alignment</code> contains <code>["left", "top"]</code>, the third background item is aligned using <code>"left"</code>, the fourth using <code>"top"</code>, and the fifth <code>"left"</code>.
</p>
<p>If not specified, defaults to <code>"right top"</code>.</p>
</td>
</tr>
<tr>
<td><code>additional_backgrounds_tiling</code></td>
<td>
<p><code>Array</code> of <code>String</code></p>
</td>
<td>
<p>Optional</p>
<p>
An array of enumeration values defining how the corresponding
<code>"additional_backgrounds":</code> array item repeats. Options
include:
</p>
<ul>
<li><code>"no-repeat"</code></li>
<li><code>"repeat"</code></li>
<li><code>"repeat-x"</code></li>
<li><code>"repeat-y"</code></li>
</ul>
<p>
If the array contains fewer items than the <code>additional_backgrounds</code> array, the array is reused for the missing values. For example, if <code>additional_backgrounds</code> contains 5 values and <code>additional_backgrounds_tiling</code> contains <code>["no-repeat", "repeat-x"]</code>, the third background item is tiled using <code>"no-repeat"</code>, the fourth using <code>"repeat-x"</code>, and the fifth <code>"no-repeat"</code>.
</p>
<p>If not specified, defaults to <code>"no-repeat"</code>.</p>
</td>
</tr>
<tr>
<td><code>additional_backgrounds_size</code></td>
<td>
<p><code>Array</code> of <code>String</code></p>
</td>
<td>
<p>Optional</p>
<p>
An array of values defining the size of the corresponding
<code>"additional_backgrounds":</code> array item. Accepts the same
values as the CSS
<a href="/en-US/docs/Web/CSS/Reference/Properties/background-size"><code>background-size</code></a>
property, such as <code>"auto"</code>, <code>"cover"</code>,
<code>"contain"</code>, or explicit width and height values (for
example, <code>"100px 200px"</code>).
</p>
<p>
If the array contains fewer items than the <code>additional_backgrounds</code> array, the array is reused for the missing values. For example, if <code>additional_backgrounds</code> contains 5 values and <code>additional_backgrounds_size</code> contains <code>["auto", "100px 100px"]</code>, the third background item is sized using <code>"auto"</code>, the fourth using <code>"100px 100px"</code>, and the fifth <code>"auto"</code>.
</p>
<p>If not specified, defaults to <code>"auto"</code>.</p>
</td>
</tr>
<tr>
<td><code>backgrounds_area</code></td>
<td>
<p><code>String</code></p>
</td>
<td>
<p>Optional</p>
<p>
Determines the area of the browser window where the theme's background
images and gradients are drawn. Options include:
</p>
<ul>
<li>
<code>"auto"</code> – Firefox chooses the area based on
<code>additional_backgrounds_alignment</code>. If any alignment
value positions a background at the vertical center or bottom of the
header area, the backgrounds are drawn in the top toolbars.
Otherwise, they are drawn in the window.
</li>
<li>
<code>"window"</code> – the backgrounds are drawn in the whole
browser window, so that they extend behind vertical UI, such as the
sidebar and vertical tabs.
</li>
<li>
<code>"top_toolbars"</code> – the backgrounds are drawn only in the
horizontal toolbars at the top of the window, that is, the menu bar,
tab strip, navigation toolbar, and bookmarks toolbar. Vertical UI,
such as the sidebar, uses the <code>frame</code> color instead.
</li>
</ul>
<p>If not specified, defaults to <code>"auto"</code>.</p>
</td>
</tr>
<tr>
<td><code>color_scheme</code></td>
<td>
<p><code>String</code></p>
</td>
<td>
<p>Optional</p>
<p>
Determines which color scheme is applied to the chrome (for example, context menus)
and content (for example, built-in pages and the preferred color scheme for web pages).
Options include:
</p>
<ul>
<li><code>"auto"</code> – a light or dark scheme based automatically on the theme.</li>
<li><code>"light"</code> – a light scheme.</li>
<li><code>"dark"</code> – a dark scheme.</li>
<li><code>"system"</code> – uses the system scheme.</li>
</ul>
<p>If not specified, defaults to <code>"auto"</code>.</p>
</td>
</tr>
<tr>
<td><code>content_color_scheme</code></td>
<td>
<p><code>String</code></p>
</td>
<td>
<p>Optional</p>
<p>
Determines which color scheme is applied to the content (for example, built-in pages and
preferred color scheme for web pages). Overrides <code>color_scheme</code>. Options
include:
</p>
<ul>
<li><code>"auto"</code> – a light or dark scheme based automatically on the theme.</li>
<li><code>"light"</code> – a light scheme.</li>
<li><code>"dark"</code> – a dark scheme.</li>
<li><code>"system"</code> – the system scheme.</li>
</ul>
<p>If not specified, defaults to <code>"auto"</code>.</p>
</td>
</tr>
</tbody>
</table>
## Examples
A basic theme must define an image to add to the header, the accent color to use in the header, and the color of text used in the header:
```json
"theme": {
"images": {
"theme_frame": "images/sun.jpg"
},
"colors": {
"frame": "#CF723F",
"tab_background_text": "black"
}
}
```
Multiple items can be used to fill the header. Before Firefox version 60, use a blank or transparent header image to gain control over the placement of each additional item:
```json
"theme": {
"images": {
"additional_backgrounds": [ "images/left.png", "images/middle.png", "images/right.png"]
},
"properties": {
"additional_backgrounds_alignment": [ "left top", "top", "right top"]
},
"colors": {
"frame": "blue",
"tab_background_text": "white"
}
}
```
You can also fill the header with a repeated image, or images, in this case a single image anchored in the middle top of the header and repeated across the rest of the header:
```json
"theme": {
"images": {
"additional_backgrounds": [ "images/logo.png"]
},
"properties": {
"additional_backgrounds_alignment": [ "top" ],
"additional_backgrounds_tiling": [ "repeat" ]
},
"colors": {
"frame": "green",
"tab_background_text": "black"
}
}
```
The following example uses most of the different values for `theme.colors`:
```json
"theme": {
"images": {
"theme_frame": "weta.png"
},
"colors": {
"frame": "darkgreen",
"tab_background_text": "white",
"toolbar": "blue",
"bookmark_text": "cyan",
"toolbar_field": "orange",
"toolbar_field_border": "white",
"toolbar_field_text": "green",
"toolbar_top_separator": "red",
"toolbar_bottom_separator": "white",
"toolbar_vertical_separator": "white"
}
}
```
It will give you a browser that looks like this:
Firefox 157 and later (Nova):

Firefox 156 and earlier:

In this screenshot, `"toolbar_vertical_separator"` is the white vertical line in the URL bar dividing the Reader Mode icon from the other icons.
This example (Firefox 153+) mixes image backgrounds with a CSS linear gradient:
```json
"theme": {
"images": {
"additional_backgrounds": [
"background-image1.svg",
"background-image2.svg",
{ "linear-gradient": "to bottom, #FF6BBA -20%, #FFC999 50%" }
]
},
"properties": {
"additional_backgrounds_alignment": ["right top", "left top", "right top"],
"additional_backgrounds_tiling": ["no-repeat", "no-repeat", "repeat-x"],
"additional_backgrounds_size": ["auto", "auto", "auto 144px"]
}
}
```
This results in:
- `background-image1.svg` displaying at the top right, at its natural size.
- `background-image2.svg` displaying at the top left, at its natural size.
- The `linear-gradient` displaying from the top right, tiled horizontally across the header (`repeat-x`), and sized to 144px tall (width is automatic). The gradient transitions from pink (`#FF6BBA`) at the top to peach (`#FFC999`) at the bottom.
This example (Firefox 156+) restricts the background gradient to the horizontal toolbars at the top of the window, so that it doesn't extend behind the sidebar or vertical tabs. Without `backgrounds_area`, the `"right top"` alignment causes Firefox to draw the gradient in the whole window:
```json
"theme": {
"images": {
"additional_backgrounds": [
{ "linear-gradient": "to bottom, rgb(255, 0, 128), rgb(0, 128, 255)" }
]
},
"colors": {
"frame": "#000080",
"tab_background_text": "#ffffff"
},
"properties": {
"additional_backgrounds_alignment": ["right top"],
"additional_backgrounds_tiling": ["no-repeat"],
"additional_backgrounds_size": ["100% 100%"],
"backgrounds_area": "top_toolbars"
}
}
```
With `backgrounds_area` set to `"top_toolbars"`, the sidebar uses the `frame` color. Changing `backgrounds_area` to `"window"` draws the gradient across the whole window instead, including behind the sidebar.
## Browser compatibility
### Chrome compatibility
In Chrome:
- `colors/toolbar_text` isn't used, use `colors/bookmark_text` instead.
- `images/theme_frame` anchors the image to the top left of the header and if the image doesn't fill the header area tile the image.
- all colors must be specified as an array of RGB values, like this:
```json
"theme": {
"colors": {
"frame": [255, 0, 0],
"tab_background_text": [0, 255, 0],
"bookmark_text": [0, 0, 255]
}
}
```
From Firefox 59 onward, both the array form and the CSS color form are accepted for all properties. Before that, `colors/frame` and `colors/tab_background_text` required the array form, while other properties required the CSS color form.
Cite this
"theme". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/theme JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy