_variables.dark.scss 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279
  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: #dF7518;
  32. $brand-primary: $orange;
  33. $brand-success: $green;
  34. $brand-warning: $brand-primary;
  35. $brand-danger: $red;
  36. $brand-text-highlight: #f7941d;
  37. // Status colors
  38. // -------------------------
  39. $online: #10a345;
  40. $warn: #F79520;
  41. $critical: #ed2e18;
  42. // Scaffolding
  43. // -------------------------
  44. $body-bg: rgb(20,20,20);
  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: $gray-1;
  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(60deg, transparent 70%, darken($page-bg, 4%) 98%);
  57. // Links
  58. // -------------------------
  59. $link-color: darken($white, 11%);
  60. $link-color-disabled: darken($link-color, 30%);
  61. $link-hover-color: $white;
  62. $external-link-color: $blue;
  63. // Typography
  64. // -------------------------
  65. $headings-color: darken($white,11%);
  66. $abbr-border-color: $gray-3 !default;
  67. $text-muted: $text-color-weak;
  68. $blockquote-small-color: $gray-3 !default;
  69. $blockquote-border-color: $gray-4 !default;
  70. $hr-border-color: rgba(0,0,0,.1) !default;
  71. // Components
  72. $component-active-color: #fff !default;
  73. $component-active-bg: $brand-primary !default;
  74. // Panel
  75. // -------------------------
  76. $panel-bg: $dark-2;
  77. $panel-border: solid 1px $dark-3;
  78. $divider-border-color: #555;
  79. // Graphite Target Editor
  80. $tight-form-border: #050505;
  81. $tight-form-bg: $dark-3;
  82. $tight-form-func-bg: #333;
  83. $tight-form-func-highlight-bg: #444;
  84. $modal-background: $black;
  85. $code-tag-bg: $dark-5;
  86. $code-tag-border: lighten($code-tag-bg, 2%);
  87. // Lists
  88. $grafanaListBackground: $dark-3;
  89. $grafanaListAccent: lighten($dark-2, 2%);
  90. $grafanaListBorderTop: $dark-3;
  91. $grafanaListBorderBottom: $black;
  92. $grafanaListHighlight: #333;
  93. $grafanaListMainLinkColor: $text-color;
  94. // Scrollbars
  95. $scrollbarBackground: #3a3a3a;
  96. $scrollbarBackground2: #3a3a3a;
  97. $scrollbarBorder: black;
  98. // Tables
  99. // -------------------------
  100. $table-bg: transparent; // overall background-color
  101. $table-bg-accent: $dark-3; // for striping
  102. $table-bg-hover: $dark-4; // for hover
  103. $table-border: $dark-3; // table and cell border
  104. // Buttons
  105. // -------------------------
  106. $btn-primary-bg: $brand-primary;
  107. $btn-primary-bg-hl: lighten($brand-primary, 8%);
  108. $btn-secondary-bg: $blue-dark;
  109. $btn-secondary-bg-hl: lighten($blue-dark, 5%);
  110. $btn-success-bg: lighten($green, 3%);
  111. $btn-success-bg-hl: darken($green, 3%);
  112. $btn-warning-bg: $brand-warning;
  113. $btn-warning-bg-hl: lighten($brand-warning, 8%);
  114. $btn-danger-bg: $red;
  115. $btn-danger-bg-hl: lighten($red, 5%);
  116. $btn-inverse-bg: $dark-3;
  117. $btn-inverse-bg-hl: lighten($dark-3, 4%);
  118. $btn-inverse-text-color: $link-color;
  119. $btn-link-color: $gray-3;
  120. $iconContainerBackground: $black;
  121. $btn-divider-left: $dark-4;
  122. $btn-divider-right: $dark-2;
  123. $btn-drag-image: '../img/grab_dark.svg';
  124. // Forms
  125. // -------------------------
  126. $input-bg: $dark-4;
  127. $input-bg-disabled: $dark-3;
  128. $input-color: $gray-4;
  129. $input-border-color: $dark-4;
  130. $input-box-shadow: inset 1px 0px 0.3rem 0px rgba(150, 150, 150, 0.10);
  131. $input-border-focus: $input-border-color !default;
  132. $input-box-shadow-focus: rgba(102,175,233,.6) !default;
  133. $input-color-placeholder: $gray-1 !default;
  134. $input-label-bg: $dark-3;
  135. $input-invalid-border-color: lighten($red, 5%);
  136. // Search
  137. $search-shadow: 0 0 35px 0 $body-bg;
  138. // Dropdowns
  139. // -------------------------
  140. $dropdownBackground: $dark-3;
  141. $dropdownBorder: rgba(0,0,0,.2);
  142. $dropdownDividerTop: transparent;
  143. $dropdownDividerBottom: #444;
  144. $dropdownDivider: $dropdownDividerBottom;
  145. $dropdownTitle: $link-color-disabled;
  146. $dropdownLinkColor: $text-color;
  147. $dropdownLinkColorHover: $white;
  148. $dropdownLinkColorActive: $white;
  149. $dropdownLinkBackgroundActive: $dark-4;
  150. $dropdownLinkBackgroundHover: $dark-4;
  151. // COMPONENT VARIABLES
  152. // --------------------------------------------------
  153. // -------------------------
  154. $placeholderText: darken($text-color, 25%);
  155. // Horizontal forms & lists
  156. // -------------------------
  157. $horizontalComponentOffset: 180px;
  158. // Wells
  159. // -------------------------
  160. $wellBackground: #131517;
  161. $navbarHeight: 52px;
  162. $navbarBackgroundHighlight: $dark-3;
  163. $navbarBackground: $dark-3;
  164. $navbarBorder: 1px solid $body-bg;
  165. $navbarText: $gray-4;
  166. $navbarLinkColor: $gray-4;
  167. $navbarLinkColorHover: $white;
  168. $navbarLinkColorActive: $navbarLinkColorHover;
  169. $navbarLinkBackgroundHover: transparent;
  170. $navbarLinkBackgroundActive: $navbarBackground;
  171. $navbarBrandColor: $link-color;
  172. $navbarDropdownShadow: inset 0px 4px 10px -4px $body-bg;
  173. $navbarButtonBackground: lighten($navbarBackground, 3%);
  174. $navbarButtonBackgroundHighlight: lighten($navbarBackground, 5%);
  175. // Sidemenu
  176. // -------------------------
  177. $side-menu-bg: $body-bg;
  178. $side-menu-item-hover-bg: $dark-3;
  179. $side-menu-opacity: 0.97;
  180. // Pagination
  181. // -------------------------
  182. $paginationBackground: $body-bg;
  183. $paginationBorder: transparent;
  184. $paginationActiveBackground: $blue;
  185. // Form states and alerts
  186. // -------------------------
  187. $state-warning-text: $warn;
  188. $state-warning-bg: $brand-warning;
  189. $errorText: #E84D4D;
  190. $errorBackground: $btn-danger-bg;
  191. $successText: #12D95A;
  192. $successBackground: $btn-success-bg;
  193. $infoText: $blue-dark;
  194. $infoBackground: $blue-dark;
  195. // popover
  196. $popover-bg: $dark-4;
  197. $popover-color: $text-color;
  198. $popover-help-bg: $btn-secondary-bg;
  199. $popover-help-color: $text-color;
  200. // Tooltips and popovers
  201. // -------------------------
  202. $tooltipColor: $popover-help-color;
  203. $tooltipBackground: $popover-help-bg;
  204. $tooltipArrowWidth: 5px;
  205. $tooltipArrowColor: $tooltipBackground;
  206. $tooltipLinkColor: $link-color;
  207. $graph-tooltip-bg: $dark-4;
  208. // images
  209. $checkboxImageUrl: '../img/checkbox.png';
  210. // cards
  211. $card-background: linear-gradient(135deg, #2f2f2f, #262626);
  212. $card-background-hover: linear-gradient(135deg, #343434, #262626);
  213. $card-shadow: -1px -1px 0 0 hsla(0, 0%, 100%, .1), 1px 1px 0 0 rgba(0, 0, 0, .3);
  214. // footer
  215. $footer-link-color: $gray-1;
  216. $footer-link-hover: $gray-4;