_variables.dark.scss 10 KB

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