-
Notifications
You must be signed in to change notification settings - Fork 22.4k
/
index.md
1471 lines (1423 loc) · 48.4 KB
/
index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
---
title: theme
slug: Mozilla/Add-ons/WebExtensions/manifest.json/theme
page-type: webextension-manifest-key
browser-compat: webextensions.manifest.theme
---
{{AddonSidebar}}
<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": "#000"
}
}</pre
>
</td>
</tr>
</tbody>
</table>
Use the theme key to define a static theme to apply to Firefox.
> **Note:** If you want to include a theme with an extension, please see the {{WebExtAPIRef("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.
> **Note:** A new version of Firefox for Android, based on GeckoView, is under development. A [pre-release version](https://play.google.com/store/apps/details?id=org.mozilla.fenix) is available. The pre-release version does not support themes.
## 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> images 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></td>
<td>
<p>
The URL of a foreground image to be added to the header area and
anchored to the upper right corner of the header area.
</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. Required in Firefox for Android.
</p>
</td>
</tr>
<tr>
<td><code>additional_backgrounds</code></td>
<td><code>Array </code>of <code>String</code></td>
<td>
<div class="warning">
<p>
<strong>Warning:</strong> The
<code>additional_backgrounds</code> property is experimental. It is
currently accepted in release versions of Firefox, but its behavior
is subject to change. It is not supported in Firefox for Android.
</p>
</div>
<p>
An array of URLs for additional background images to be added to the
header area and displayed behind the
<code>"theme_frame":</code> image. These images layer the first image
in the array on top, the last image in the array at the bottom.
</p>
<p>Optional.</p>
<p>
By default all images are anchored to the upper right corner of the
header area, but their alignment and repeat behavior can be controlled
by properties of <code>"properties":</code>.
</p>
</td>
</tr>
</tbody>
</table>
### colors
These properties define the colors used for different parts of the browser. They are all optional. How these properties affect the Firefox UI is shown here:
<table class="fullwidth-table standard-table">
<tbody>
<tr>
<td>
<p>
<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](/en-US/docs/Web/CSS/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).
>
> In Firefox for Android colors can be specified using:
>
> - full hexadecimal notation, that is #RRGGBB only. _alpha_ and shortened syntax, as in #RGB\[A], are not supported.
> - [Functional notation](/en-US/docs/Web/CSS/color_value#rgb_syntax_variations) (RGB arrays) for themes targeting Firefox 68.2 or later.
>
> Colors for Firefox for Android themes cannot be specified using color names.
<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>
<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><img alt="Browser firefox is black. Browser's tabs and URL bar are grey 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><img alt="Browser firefox is black. Browser's tabs and URL bar are grey 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><img alt="Browser firefox is black. Browser's tabs and URL bar are grey 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><img alt="Browser firefox is black. Browser's tabs and URL bar are grey 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 images 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><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 images 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>
<img
alt="Browser firefox is grey. Browser's tabs and URL bar are lighter grey. The tab text is white and the URL bar icon are darker grey."
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><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><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>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"ntp_text": "red"
}
}</pre
>
</details>
<p><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>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"frame": "black",
"tab_background_text": "white",
"popup": "red"
}
}</pre
>
</details>
<p><img alt="Browser firefox is black. Browser's tabs and URL bar are lighter grey 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><img alt="Browser firefox is black. Browser's tabs and URL bar are lighter grey 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><img alt="screenshot of firefox is black. Browser's tabs and URL bar are lighter grey 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><img alt="Browser firefox is black. Browser's tabs and URL bar are lighter grey 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>
<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><img alt="Browser firefox is black. Browser's tabs and URL bar are lighter grey 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><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>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"sidebar_border": "red"
}
}</pre
>
</details>
<p><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>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"sidebar_highlight": "red",
"sidebar_highlight_text": "white"
}
}</pre
>
</details>
<p><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>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"sidebar_highlight": "pink",
"sidebar_highlight_text": "red",
}
}</pre
>
</details>
<p><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><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_separator</code> {{Deprecated_Inline}}
</td>
<td>
<div class="notecard warning">
<p>
<strong>Warning:</strong> <code>tab_background_separator</code> is
not supported starting with Firefox 89.
</p>
</div>
<p>The color of the vertical separator of the background tabs.</p>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"frame": "black",
"tab_background_text": "white",
"tab_background_separator": "red"
}
}</pre
>
</details>
<p>
<img
alt="A closeup of browser tabs to highlight the separator."
src="theme-tab-background-separator.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><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><img alt="Browser firefox is black. Browser's tabs and URL bar are darker grey with lighter grey 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>
<details open>
<summary>See example</summary>
<pre class="brush: json">
"theme": {
"colors": {
"frame": "black",
"tab_background_text": "white",
"tab_loading": "red"
}
}</pre
>
</details>
<p><img alt="A screenshot of a browser window with one open tab. Browser is black. Browser's tabs and URL bar are darker grey 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>.
</p>
<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><img alt="A screenshot of a browser window with one open tab. Browser is black. Browser's tabs and URL bar are darker grey 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><img alt="Browser firefox has a picture of an insect theme. URL bar is lighter grey 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><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 bottom of the toolbar from the
region below.
</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><img alt="Browser firefox is black. Browser's tab and URL bar are lighter grey 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><img alt="Browser firefox is black. Browser's tab, find in page bar and URL bar are lighter grey 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><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><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><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>