variables.css 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. /* vim:set ts=2 sw=2 sts=2 et: */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. /* Variable declarations for light and dark devtools themes.
  6. * Colors are taken from:
  7. * https://developer.mozilla.org/en-US/docs/Tools/DevToolsColors.
  8. * Changes should be kept in sync with commandline.css and commandline.inc.css.
  9. */
  10. /* IMPORTANT NOTE:
  11. * This file is parsed in js (see client/shared/theme.js)
  12. * so the formatting should be consistent (i.e. no '}' inside a rule).
  13. */
  14. :root.theme-light {
  15. --theme-body-background: white;
  16. --theme-sidebar-background: white;
  17. --theme-contrast-background: #e6b064;
  18. --theme-tab-toolbar-background: #fcfcfc;
  19. --theme-toolbar-background: #fcfcfc;
  20. --theme-selection-background: #4c9ed9;
  21. --theme-selection-background-semitransparent: rgba(76, 158, 217, 0.15);
  22. --theme-selection-color: #f5f7fa;
  23. --theme-splitter-color: #dde1e4;
  24. --theme-comment: #696969;
  25. --theme-body-color: #393f4c;
  26. --theme-body-color-alt: #585959;
  27. --theme-body-color-inactive: #999797;
  28. --theme-content-color1: #292e33;
  29. --theme-content-color2: #8fa1b2;
  30. --theme-content-color3: #667380;
  31. --theme-highlight-green: #2cbb0f;
  32. --theme-highlight-blue: #0088cc;
  33. --theme-highlight-bluegrey: #0072ab;
  34. --theme-highlight-purple: #5b5fff;
  35. --theme-highlight-lightorange: #d97e00;
  36. --theme-highlight-orange: #f13c00;
  37. --theme-highlight-red: #ed2655;
  38. --theme-highlight-pink: #b82ee5;
  39. --theme-highlight-gray: #dde1e4;
  40. /* For accessibility purposes we want to enhance the focus styling. This
  41. * should improve keyboard navigation usability. */
  42. --theme-focus-outline-color: #000000;
  43. /* Colors used in Graphs, like performance tools. Similar colors to Chrome's timeline. */
  44. --theme-graphs-green: #85d175;
  45. --theme-graphs-blue: #83b7f6;
  46. --theme-graphs-bluegrey: #0072ab;
  47. --theme-graphs-purple: #b693eb;
  48. --theme-graphs-yellow: #efc052;
  49. --theme-graphs-orange: #d97e00;
  50. --theme-graphs-red: #e57180;
  51. --theme-graphs-grey: #cccccc;
  52. --theme-graphs-full-red: #f00;
  53. --theme-graphs-full-blue: #00f;
  54. /* Images */
  55. --theme-pane-collapse-image: url(chrome://devtools/skin/images/pane-collapse.svg);
  56. --theme-pane-expand-image: url(chrome://devtools/skin/images/pane-expand.svg);
  57. /* Tooltips */
  58. --theme-tooltip-border: #d9e1e8;
  59. --theme-tooltip-background: rgba(255, 255, 255, .9);
  60. --theme-tooltip-shadow: rgba(155, 155, 155, 0.26);
  61. /* Command line */
  62. --theme-command-line-image: url(chrome://devtools/skin/images/commandline-icon.svg#light-theme);
  63. --theme-command-line-image-focus: url(chrome://devtools/skin/images/commandline-icon.svg#light-theme-focus);
  64. }
  65. :root.theme-dark {
  66. --theme-body-background: #393f4c;
  67. --theme-sidebar-background: #393f4c;
  68. --theme-contrast-background: #ffb35b;
  69. --theme-tab-toolbar-background: #272b35;
  70. --theme-toolbar-background: #272b35;
  71. --theme-selection-background: #5675B9;
  72. --theme-selection-background-semitransparent: rgba(86, 117, 185, 0.5);
  73. --theme-selection-color: #f5f7fa;
  74. --theme-splitter-color: #454d5d;
  75. --theme-comment: #757873;
  76. --theme-body-color: #8fa1b2;
  77. --theme-body-color-alt: #b6babf;
  78. --theme-body-color-inactive: #8fa1b2;
  79. --theme-content-color1: #a9bacb;
  80. --theme-content-color2: #8fa1b2;
  81. --theme-content-color3: #5f7387;
  82. --theme-highlight-green: #00ff7f;
  83. --theme-highlight-blue: #46afe3;
  84. --theme-highlight-bluegrey: #5e88b0;
  85. --theme-highlight-purple: #bcb8db;
  86. --theme-highlight-lightorange: #d99b28;
  87. --theme-highlight-orange: #d96629;
  88. --theme-highlight-red: #eb5368;
  89. --theme-highlight-pink: #df80ff;
  90. --theme-highlight-gray: #e9f4fe;
  91. /* For accessibility purposes we want to enhance the focus styling. This
  92. * should improve keyboard navigation usability. */
  93. --theme-focus-outline-color: #ced3d9;
  94. /* Colors used in Graphs, like performance tools. Mostly similar to some "highlight-*" colors. */
  95. --theme-graphs-green: #70bf53;
  96. --theme-graphs-blue: #46afe3;
  97. --theme-graphs-bluegrey: #5e88b0;
  98. --theme-graphs-purple: #df80ff;
  99. --theme-graphs-yellow: #d99b28;
  100. --theme-graphs-orange: #d96629;
  101. --theme-graphs-red: #eb5368;
  102. --theme-graphs-grey: #757873;
  103. --theme-graphs-full-red: #f00;
  104. --theme-graphs-full-blue: #00f;
  105. /* Images */
  106. --theme-pane-collapse-image: url(chrome://devtools/skin/images/pane-collapse.svg);
  107. --theme-pane-expand-image: url(chrome://devtools/skin/images/pane-expand.svg);
  108. /* Tooltips */
  109. --theme-tooltip-border: #434850;
  110. --theme-tooltip-background: rgba(19, 28, 38, .9);
  111. --theme-tooltip-shadow: rgba(25, 25, 25, 0.76);
  112. /* Command line */
  113. --theme-command-line-image: url(chrome://devtools/skin/images/commandline-icon.svg#dark-theme);
  114. --theme-command-line-image-focus: url(chrome://devtools/skin/images/commandline-icon.svg#dark-theme-focus);
  115. }
  116. :root.theme-firebug {
  117. --theme-body-background: #fcfcfc;
  118. --theme-sidebar-background: #fcfcfc;
  119. --theme-contrast-background: #e6b064;
  120. --theme-tab-toolbar-background: #d8eaf9;
  121. --theme-toolbar-background: #f0f1f2;
  122. --theme-selection-background: #3399ff;
  123. --theme-selection-background-semitransparent: rgba(128,128,128,0.2);
  124. --theme-selection-color: white;
  125. --theme-splitter-color: #aabccf;
  126. --theme-comment: green;
  127. --theme-body-color: #000000;
  128. --theme-body-color-alt: #585959;
  129. --theme-content-color1: #292e33;
  130. --theme-content-color2: #8fa1b2;
  131. --theme-content-color3: #667380;
  132. --theme-highlight-green: #2cbb0f;
  133. --theme-highlight-blue: #3455db;
  134. --theme-highlight-bluegrey: #0072ab;
  135. --theme-highlight-purple: #887ce6;
  136. --theme-highlight-lightorange: #d97e00;
  137. --theme-highlight-orange: #f13c00;
  138. --theme-highlight-red: #e22f6f;
  139. --theme-highlight-pink: #b82ee5;
  140. --theme-highlight-gray: #dde1e4;
  141. /* Colors used in Graphs, like performance tools. Similar colors to Chrome's timeline. */
  142. --theme-graphs-green: #85d175;
  143. --theme-graphs-blue: #83b7f6;
  144. --theme-graphs-bluegrey: #0072ab;
  145. --theme-graphs-purple: #b693eb;
  146. --theme-graphs-yellow: #efc052;
  147. --theme-graphs-orange: #d97e00;
  148. --theme-graphs-red: #e57180;
  149. --theme-graphs-grey: #cccccc;
  150. --theme-graphs-full-red: #f00;
  151. --theme-graphs-full-blue: #00f;
  152. /* Images */
  153. --theme-pane-collapse-image: url(chrome://devtools/skin/images/firebug/pane-collapse.svg);
  154. --theme-pane-expand-image: url(chrome://devtools/skin/images/firebug/pane-expand.svg);
  155. /* Font size */
  156. --theme-toolbar-font-size: 12px;
  157. /* Header */
  158. --theme-header-background: #F0F0F0 linear-gradient(to top,
  159. rgba(0, 0, 0, 0.1),
  160. transparent) repeat-x;
  161. /* Command line */
  162. --theme-command-line-image: url(chrome://devtools/skin/images/firebug/commandline-icon.svg);
  163. --theme-command-line-image-focus: url(chrome://devtools/skin/images/firebug/commandline-icon.svg#focus);
  164. }
  165. :root {
  166. --theme-focus-border-color-textbox: #0675d3;
  167. --theme-textbox-box-shadow: rgba(97,181,255,.75);
  168. /* For accessibility purposes we want to enhance the focus styling. This
  169. * should improve keyboard navigation usability. */
  170. --theme-focus-outline: 1px dotted var(--theme-focus-outline-color);
  171. --theme-focus-box-shadow-textbox: 0 0 0 1px var(--theme-textbox-box-shadow);
  172. }