_variables.light.scss 10 KB

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