_variables.dark.scss 7.3 KB

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