_variables.dark.scss 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. // Global values
  2. // --------------------------------------------------
  3. // Grays
  4. // -------------------------
  5. $black: #000;
  6. // -------------------------
  7. $black: #000;
  8. $dark-1: #141414;
  9. $dark-2: #1f1d1d;
  10. $dark-3: #292929;
  11. $dark-4: #333333;
  12. $dark-5: #444444;
  13. $gray-1: #555555;
  14. $gray-2: #7B7B7B;
  15. $gray-3: #b3b3b3;
  16. $gray-4: #D8D9DA;
  17. $gray-5: #ECECEC;
  18. $gray-6: #f4f5f8;
  19. $gray-7: #fbfbfb;
  20. $white: #fff;
  21. // Accent colors
  22. // -------------------------
  23. $blue: #33B5E5;
  24. $blue-dark: #005f81;
  25. $green: #609000;
  26. $red: #CC3900;
  27. $yellow: #ECBB13;
  28. $pink: #FF4444;
  29. $purple: #9933CC;
  30. $variable: #32D1DF;
  31. $orange: #eb7b18;
  32. $brand-primary: $orange;
  33. $brand-success: $green;
  34. $brand-warning: $brand-primary;
  35. $brand-danger: $red;
  36. // Status colors
  37. // -------------------------
  38. $online: #10a345;
  39. $warn: #F79520;
  40. $critical: #ed2e18;
  41. // Scaffolding
  42. // -------------------------
  43. $body-bg: rgb(24,20,20);
  44. $page-bg: $dark-2;
  45. $body-color: $gray-4;
  46. $text-color: $gray-4;
  47. $text-color-strong: $white;
  48. $text-color-weak: $gray-2;
  49. $text-color-faint: $dark-5;
  50. $text-color-emphasis: $gray-5;
  51. $text-shadow-strong: 1px 1px 4px $black;
  52. $text-shadow-faint: 1px 1px 4px rgb(45, 45, 45);
  53. // gradients
  54. $brand-gradient: linear-gradient(to right, rgba(255,213,0,0.7) 0%, rgba(255,68,0,0.7) 99%, rgba(255,68,0,0.7) 100%);
  55. $page-gradient: linear-gradient(60deg, transparent 70%, darken($page-bg, 4%) 98%);
  56. // Links
  57. // -------------------------
  58. $link-color: darken($white, 11%);
  59. $link-color-disabled: darken($link-color, 30%);
  60. $link-hover-color: $white;
  61. $external-link-color: $blue;
  62. // Typography
  63. // -------------------------
  64. $headings-color: darken($white,11%);
  65. $abbr-border-color: $gray-3 !default;
  66. $text-muted: $text-color-weak;
  67. $blockquote-small-color: $gray-3 !default;
  68. $blockquote-border-color: $gray-4 !default;
  69. $hr-border-color: rgba(0,0,0,.1) !default;
  70. // Components
  71. $component-active-color: #fff !default;
  72. $component-active-bg: $brand-primary !default;
  73. // Panel
  74. // -------------------------
  75. $panel-bg: $dark-2;
  76. $panel-border-color: $dark-3;
  77. $panel-border: solid 1px $panel-border-color;
  78. $panel-drop-zone-bg: repeating-linear-gradient(-128deg, #111, #111 10px, #191919 10px, #222 20px);
  79. $panel-header-hover-bg: $dark-3;
  80. $panel-header-menu-hover-bg: $dark-5;
  81. $divider-border-color: #555;
  82. // Graphite Target Editor
  83. $tight-form-border: #050505;
  84. $tight-form-bg: $dark-3;
  85. $tight-form-func-bg: #333;
  86. $tight-form-func-highlight-bg: #444;
  87. $modal-background: $black;
  88. $code-tag-bg: $dark-5;
  89. $code-tag-border: lighten($code-tag-bg, 2%);
  90. // Lists
  91. $grafanaListBackground: $dark-3;
  92. $grafanaListAccent: lighten($dark-2, 2%);
  93. $grafanaListBorderTop: $dark-3;
  94. $grafanaListBorderBottom: $black;
  95. $grafanaListHighlight: #333;
  96. $grafanaListMainLinkColor: $text-color;
  97. // Scrollbars
  98. $scrollbarBackground: #3a3a3a;
  99. $scrollbarBackground2: #3a3a3a;
  100. $scrollbarBorder: black;
  101. // Tables
  102. // -------------------------
  103. $table-bg: transparent; // overall background-color
  104. $table-bg-accent: $dark-3; // for striping
  105. $table-bg-hover: $dark-4; // for hover
  106. $table-border: $dark-3; // table and cell border
  107. // Buttons
  108. // -------------------------
  109. $btn-primary-bg: $brand-primary;
  110. $btn-primary-bg-hl: lighten($brand-primary, 8%);
  111. $btn-secondary-bg: $blue-dark;
  112. $btn-secondary-bg-hl: lighten($blue-dark, 5%);
  113. $btn-success-bg: lighten($green, 3%);
  114. $btn-success-bg-hl: darken($green, 3%);
  115. $btn-warning-bg: $brand-warning;
  116. $btn-warning-bg-hl: lighten($brand-warning, 8%);
  117. $btn-danger-bg: $red;
  118. $btn-danger-bg-hl: lighten($red, 5%);
  119. $btn-inverse-bg: $dark-3;
  120. $btn-inverse-bg-hl: lighten($dark-3, 4%);
  121. $btn-inverse-text-color: $link-color;
  122. $btn-link-color: $gray-3;
  123. $iconContainerBackground: $black;
  124. $btn-divider-left: $dark-4;
  125. $btn-divider-right: $dark-2;
  126. $btn-drag-image: '../img/grab_dark.svg';
  127. // Forms
  128. // -------------------------
  129. $input-bg: $black;
  130. $input-bg-disabled: $dark-3;
  131. $input-color: $gray-4;
  132. $input-border-color: $dark-3;
  133. $input-box-shadow: inset 1px 0px 0.3rem 0px rgba(150, 150, 150, 0.10);
  134. $input-border-focus: $input-border-color !default;
  135. $input-box-shadow-focus: rgba(102,175,233,.6) !default;
  136. $input-color-placeholder: $gray-1 !default;
  137. $input-label-bg: $dark-3;
  138. $input-invalid-border-color: lighten($red, 5%);
  139. // Search
  140. $search-shadow: 0 0 35px 0 $body-bg;
  141. // Dropdowns
  142. // -------------------------
  143. $dropdownBackground: $dark-3;
  144. $dropdownBorder: rgba(0,0,0,.2);
  145. $dropdownDividerTop: transparent;
  146. $dropdownDividerBottom: #444;
  147. $dropdownDivider: $dropdownDividerBottom;
  148. $dropdownTitle: $link-color-disabled;
  149. $dropdownLinkColor: $text-color;
  150. $dropdownLinkColorHover: $white;
  151. $dropdownLinkColorActive: $white;
  152. $dropdownLinkBackgroundActive: $dark-4;
  153. $dropdownLinkBackgroundHover: $dark-4;
  154. $dropdown-link-color: $gray-3;
  155. // COMPONENT VARIABLES
  156. // --------------------------------------------------
  157. // -------------------------
  158. $placeholderText: darken($text-color, 25%);
  159. // Horizontal forms & lists
  160. // -------------------------
  161. $horizontalComponentOffset: 180px;
  162. // Wells
  163. // -------------------------
  164. $wellBackground: #131517;
  165. $navbarHeight: 52px;
  166. $navbarBackgroundHighlight: $dark-3;
  167. $navbarBackground: $panel-bg;
  168. $navbarBorder: 1px solid $body-bg;
  169. $navbarText: $gray-4;
  170. $navbarLinkColor: $gray-4;
  171. $navbarLinkColorHover: $white;
  172. $navbarLinkColorActive: $navbarLinkColorHover;
  173. $navbarLinkBackgroundHover: transparent;
  174. $navbarLinkBackgroundActive: $navbarBackground;
  175. $navbarBrandColor: $link-color;
  176. $navbarDropdownShadow: inset 0px 4px 10px -4px $body-bg;
  177. $navbarButtonBackground: $navbarBackground;
  178. $navbarButtonBackgroundHighlight: $body-bg;
  179. // Sidemenu
  180. // -------------------------
  181. $side-menu-bg: $black;
  182. $side-menu-item-hover-bg: $dark-2;
  183. // Menu dropdowns
  184. // -------------------------
  185. $menu-dropdown-bg: $body-bg;
  186. $menu-dropdown-hover-bg: $dark-2;
  187. $menu-dropdown-border-color: $dark-3;
  188. $menu-dropdown-shadow: 5px 5px 20px -5px $black;
  189. // Breadcrumb
  190. // -------------------------
  191. $page-nav-bg: $black;
  192. $page-nav-shadow: 5px 5px 20px -5px $black;
  193. // Pagination
  194. // -------------------------
  195. $paginationBackground: $body-bg;
  196. $paginationBorder: transparent;
  197. $paginationActiveBackground: $blue;
  198. // Form states and alerts
  199. // -------------------------
  200. $state-warning-text: $warn;
  201. $state-warning-bg: $brand-warning;
  202. $errorText: #E84D4D;
  203. $errorBackground: $btn-danger-bg;
  204. $successText: #12D95A;
  205. $successBackground: $btn-success-bg;
  206. $infoText: $blue-dark;
  207. $infoBackground: $blue-dark;
  208. // popover
  209. $popover-bg: $panel-bg;
  210. $popover-color: $text-color;
  211. $popover-border-color: $gray-1;
  212. $popover-help-bg: $btn-secondary-bg;
  213. $popover-help-color: $text-color;
  214. // Tooltips and popovers
  215. // -------------------------
  216. $tooltipColor: $popover-help-color;
  217. $tooltipBackground: $popover-help-bg;
  218. $tooltipArrowWidth: 5px;
  219. $tooltipArrowColor: $tooltipBackground;
  220. $tooltipLinkColor: $link-color;
  221. $graph-tooltip-bg: $dark-1;
  222. // images
  223. $checkboxImageUrl: '../img/checkbox.png';
  224. // cards
  225. $card-background: linear-gradient(135deg, #2f2f2f, #262626);
  226. $card-background-hover: linear-gradient(135deg, #343434, #262626);
  227. $card-shadow: -1px -1px 0 0 hsla(0, 0%, 100%, .1), 1px 1px 0 0 rgba(0, 0, 0, .3);
  228. // info box
  229. $info-box-background: linear-gradient(120deg, #142749, #0e203e);
  230. // footer
  231. $footer-link-color: $gray-1;
  232. $footer-link-hover: $gray-4;
  233. // collapse box
  234. $collapse-box-body-border: $dark-5;
  235. $collapse-box-body-error-border: $red;
  236. // json-explorer
  237. $json-explorer-default-color: $text-color;
  238. $json-explorer-string-color: #23d662;
  239. $json-explorer-number-color: $variable;
  240. $json-explorer-boolean-color: $variable;
  241. $json-explorer-null-color: #EEC97D;
  242. $json-explorer-undefined-color: rgb(239, 143, 190);
  243. $json-explorer-function-color: #FD48CB;
  244. $json-explorer-rotate-time: 100ms;
  245. $json-explorer-toggler-opacity: 0.6;
  246. $json-explorer-toggler-color: #45376F;
  247. $json-explorer-bracket-color: #9494FF;
  248. $json-explorer-key-color: #23A0DB;
  249. $json-explorer-url-color: #027BFF;
  250. // Changelog and diff
  251. // -------------------------
  252. $diff-label-bg: $dark-2;
  253. $diff-label-fg: $white;
  254. $diff-group-bg: $dark-4;
  255. $diff-arrow-color: $white;
  256. $diff-json-bg: $dark-4;
  257. $diff-json-fg: $gray-5;
  258. $diff-json-added: #457740;
  259. $diff-json-deleted: #a04338;
  260. $diff-json-old: #a04338;
  261. $diff-json-new: #457740;
  262. $diff-json-changed-fg: $gray-5;
  263. $diff-json-changed-num: $text-color;
  264. $diff-json-icon: $gray-7;