_variables.light.scss 9.9 KB

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