_variables.light.scss 10 KB

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