_variables.dark.scss 7.3 KB

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