dark_theme

Type Object
Optional No
Manifest version 2 or higher
Example
json
"dark_theme": {
  "images": {
    "theme_frame": "images/moon.jpg"
  },
  "colors": {
    "frame": "#CF723F",
    "tab_background_text": "#000"
  }
}

Use the dark_theme key to define a static theme to apply when Firefox is using the dark color scheme. The dark_theme key uses the same syntax and supports the same image, color, and property objects as the theme key.

See the theme key for more information.

Browser compatibility

Chrome compatibility

In Chrome:

  • colors/toolbar_text is not 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]
      }
    }
    

    The array form and the CSS color form are accepted for all properties.