_variables.light.scss 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  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. $dashboard-gradient: linear-gradient(-60deg, transparent 70%, darken($page-bg, 4%) 98%);
  61. // Links
  62. // -------------------------
  63. $link-color: $gray-1;
  64. $link-color-disabled: lighten($link-color, 30%);
  65. $link-hover-color: darken($link-color, 20%);
  66. $external-link-color: $blue;
  67. // Typography
  68. // -------------------------
  69. $headings-color: $text-color;
  70. $abbr-border-color: $gray-2 !default;
  71. $text-muted: $text-color-weak;
  72. $blockquote-small-color: $gray-2 !default;
  73. $blockquote-border-color: $gray-3 !default;
  74. $hr-border-color: $dark-3 !default;
  75. // Components
  76. $component-active-color: $white !default;
  77. $component-active-bg: $brand-primary !default;
  78. // Panel
  79. // -------------------------
  80. $panel-bg: $gray-7;
  81. $panel-border-color: $gray-5;
  82. $panel-border: solid 1px $panel-border-color;
  83. $panel-drop-zone-bg: repeating-linear-gradient(-128deg, $body-bg, $body-bg 10px, $gray-6 10px, $gray-6 20px);
  84. $panel-header-hover-bg: $gray-6;
  85. $panel-header-menu-hover-bg: $gray-4;
  86. $divider-border-color: $gray-2;
  87. // Graphite Target Editor
  88. $tight-form-border: $gray-4;
  89. $tight-form-bg: #eaebee;
  90. $tight-form-func-bg: $gray-5;
  91. $tight-form-func-highlight-bg: $gray-6;
  92. $modal-backdrop-bg: $body-bg;
  93. $code-tag-bg: $gray-6;
  94. $code-tag-border: darken($code-tag-bg, 3%);
  95. // Lists
  96. $grafanaListBackground: #eaebee;
  97. $grafanaListAccent: $gray-5;
  98. $grafanaListBorderTop: $gray-3;
  99. $grafanaListBorderBottom: $gray-3;
  100. $grafanaListHighlight: $gray-5;
  101. $grafanaListMainLinkColor: $text-color;
  102. // Tables
  103. // -------------------------
  104. $table-bg: transparent; // overall background-color
  105. $table-bg-accent: $gray-5; // for striping
  106. $table-bg-hover: $gray-5; // for hover
  107. $table-bg-active: $table-bg-hover !default;
  108. $table-border: $gray-3; // table and cell border
  109. // Scrollbars
  110. $scrollbarBackground: $gray-5;
  111. $scrollbarBackground2: $gray-5;
  112. $scrollbarBorder: $gray-4;
  113. // Buttons
  114. // -------------------------
  115. $btn-primary-bg: $brand-primary;
  116. $btn-primary-bg-hl: lighten($brand-primary, 8%);
  117. $btn-secondary-bg: $blue-dark;
  118. $btn-secondary-bg-hl: lighten($blue-dark, 4%);
  119. $btn-success-bg: lighten($green, 3%);
  120. $btn-success-bg-hl: darken($green, 3%);
  121. $btn-warning-bg: lighten($orange, 3%);
  122. $btn-warning-bg-hl: darken($orange, 3%);
  123. $btn-danger-bg: lighten($red, 3%);
  124. $btn-danger-bg-hl: darken($red, 3%);
  125. $btn-inverse-bg: $gray-5;
  126. $btn-inverse-bg-hl: darken($gray-5, 5%);
  127. $btn-inverse-text-color: $dark-4;
  128. $btn-link-color: $gray-1;
  129. $btn-divider-left: $gray-4;
  130. $btn-divider-right: $gray-7;
  131. $btn-drag-image: '../img/grab_light.svg';
  132. $iconContainerBackground: $white;
  133. // Forms
  134. // -------------------------
  135. $input-bg: $gray-7;
  136. $input-bg-disabled: $gray-5;
  137. $input-color: $dark-3;
  138. $input-border-color: $gray-5;
  139. $input-box-shadow: none;
  140. $input-border-focus: $blue !default;
  141. $input-box-shadow-focus: $blue !default;
  142. $input-color-placeholder: $gray-4 !default;
  143. $input-label-bg: #eaebee;
  144. $input-label-border-color: #e3e4e7;
  145. $input-invalid-border-color: lighten($red, 5%);
  146. // Sidemenu
  147. // -------------------------
  148. $side-menu-bg: $body-bg;
  149. $side-menu-item-hover-bg: $gray-6;
  150. $side-menu-shadow: 0 0 5px #c2c2c2;
  151. // Menu dropdowns
  152. // -------------------------
  153. $menu-dropdown-bg: $white;
  154. $menu-dropdown-hover-bg: $gray-6;
  155. $menu-dropdown-border-color: $tight-form-border;
  156. $menu-dropdown-shadow: 5px 5px 20px -5px $gray-4;
  157. // Breadcrumb
  158. // -------------------------
  159. $page-nav-bg: #eaebee;
  160. $page-nav-shadow: 5px 5px 20px -5px $gray-4;
  161. $page-nav-breadcrumb-color: $black;
  162. $breadcrumb-hover-hl: #d9dadd;
  163. // search
  164. $search-shadow: 0 5px 30px 0 $gray-4;
  165. // Dropdowns
  166. // -------------------------
  167. $dropdownBackground: $white;
  168. $dropdownBorder: $tight-form-border;
  169. $dropdownDividerTop: $gray-6;
  170. $dropdownDividerBottom: $white;
  171. $dropdownDivider: $dropdownDividerTop;
  172. $dropdownTitle: $gray-3;
  173. $dropdownLinkColor: $dark-3;
  174. $dropdownLinkColorHover: $link-color;
  175. $dropdownLinkColorActive: $link-color;
  176. $dropdownLinkBackgroundActive: $gray-6;
  177. $dropdownLinkBackgroundHover: $gray-6;
  178. // COMPONENT VARIABLES
  179. // --------------------------------------------------
  180. // Input placeholder text color
  181. // -------------------------
  182. $placeholderText: $gray-2;
  183. // Hr border color
  184. // -------------------------
  185. $hrBorder: $gray-3;
  186. // Horizontal forms & lists
  187. // -------------------------
  188. $horizontalComponentOffset: 180px;
  189. // Wells
  190. // -------------------------
  191. $wellBackground: $gray-3;
  192. // Navbar
  193. // -------------------------
  194. $navbarHeight: 52px;
  195. $navbarBackgroundHighlight: #f8f8f8;
  196. $navbarBackground: #f2f3f7;
  197. $navbarBorder: 1px solid $tight-form-border;
  198. $navbarShadow: 0 0 3px #c1c1c1;
  199. $navbarText: #444;
  200. $navbarLinkColor: #444;
  201. $navbarLinkColorHover: #000;
  202. $navbarLinkColorActive: #333;
  203. $navbarLinkBackgroundHover: transparent;
  204. $navbarLinkBackgroundActive: darken($navbarBackground, 6.5%);
  205. $navbarDropdownShadow: inset 0px 4px 7px -4px darken($body-bg, 20%);
  206. $navbarBrandColor: $navbarLinkColor;
  207. $navbarButtonBackground: lighten($navbarBackground, 3%);
  208. $navbarButtonBackgroundHighlight: lighten($navbarBackground, 5%);
  209. // Pagination
  210. // -------------------------
  211. $paginationBackground: $gray-2;
  212. $paginationBorder: transparent;
  213. $paginationActiveBackground: $blue;
  214. // Form states and alerts
  215. // -------------------------
  216. $warning-text-color: lighten($orange, 10%);
  217. $error-text-color: lighten($red, 10%);
  218. $success-text-color: lighten($green, 10%);
  219. $info-text-color: $blue;
  220. $alert-error-bg: linear-gradient(90deg, #d44939, #e04d3d);
  221. $alert-success-bg: linear-gradient(90deg, #3aa655, #47b274);
  222. $alert-warning-bg: linear-gradient(90deg, #d44939, #e04d3d);
  223. $alert-info-bg: $blue-dark;
  224. // popover
  225. $popover-bg: $panel-bg;
  226. $popover-color: $text-color;
  227. $popover-border-color: $gray-5;
  228. $popover-shadow: 0 0 20px $white;
  229. $popover-help-bg: $blue-dark;
  230. $popover-help-color: $gray-6;
  231. $popover-error-bg: $btn-danger-bg;
  232. // Tooltips and popovers
  233. // -------------------------
  234. $tooltipColor: $popover-help-color;
  235. $tooltipBackground: $popover-help-bg;
  236. $tooltipArrowWidth: 5px;
  237. $tooltipArrowColor: $tooltipBackground;
  238. $tooltipLinkColor: lighten($popover-help-color, 5%);
  239. $graph-tooltip-bg: $gray-5;
  240. // images
  241. $checkboxImageUrl: '../img/checkbox_white.png';
  242. // cards
  243. $card-background: linear-gradient(135deg, $gray-5, $gray-6);
  244. $card-background-hover: linear-gradient(135deg, $gray-6, $gray-7);
  245. $card-shadow: -1px -1px 0 0 hsla(0, 0%, 100%, .1), 1px 1px 0 0 rgba(0, 0, 0, .1);
  246. // info box
  247. $info-box-background: linear-gradient(135deg, #f1fbff, #d7ebff);
  248. // footer
  249. $footer-link-color: $gray-3;
  250. $footer-link-hover: $dark-5;
  251. // collapse box
  252. $collapse-box-body-border: $gray-4;
  253. $collapse-box-body-error-border: $red;
  254. // json explorer
  255. $json-explorer-default-color: black;
  256. $json-explorer-string-color: green;
  257. $json-explorer-number-color: blue;
  258. $json-explorer-boolean-color: red;
  259. $json-explorer-null-color: #855A00;
  260. $json-explorer-undefined-color: rgb(202, 11, 105);
  261. $json-explorer-function-color: #FF20ED;
  262. $json-explorer-rotate-time: 100ms;
  263. $json-explorer-toggler-opacity: 0.6;
  264. $json-explorer-toggler-color: #45376F;
  265. $json-explorer-bracket-color: blue;
  266. $json-explorer-key-color: #00008B;
  267. $json-explorer-url-color: blue;
  268. // Changelog and diff
  269. // -------------------------
  270. $diff-label-bg: $gray-5;
  271. $diff-label-fg: $gray-2;
  272. $diff-switch-bg: $gray-7;
  273. $diff-switch-disabled: $gray-5;
  274. $diff-arrow-color: $dark-3;
  275. $diff-group-bg: $gray-7;
  276. $diff-json-bg: $gray-5;
  277. $diff-json-fg: $gray-2;
  278. $diff-json-added: lighten(desaturate($green, 30%), 10%);
  279. $diff-json-deleted: desaturate($red, 35%);
  280. $diff-json-old: #5a372a;
  281. $diff-json-new: #664e33;
  282. $diff-json-changed-fg: $gray-6;
  283. $diff-json-changed-num: $gray-4;
  284. $diff-json-icon: $gray-4;