_variables.light.scss 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378
  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: #13161d;
  13. $dark-2: #1e2028;
  14. $dark-3: #303133;
  15. $dark-4: #35373f;
  16. $dark-5: #41444b;
  17. $gray-1: #52545c;
  18. $gray-2: #767980;
  19. $gray-3: #acb6bf;
  20. $gray-4: #c7d0d9;
  21. $gray-5: #dde4ed;
  22. $gray-6: #e9edf2;
  23. $gray-7: #f7f8fa;
  24. $white: #fff;
  25. // Accent colors
  26. // -------------------------
  27. $blue: #61c2f2;
  28. $blue-dark: #0083b3;
  29. $green: #3aa655;
  30. $red: #d44939;
  31. $yellow: #ff851b;
  32. $orange: #ff7941;
  33. $pink: #e671b8;
  34. $purple: #9954bb;
  35. $variable: $blue;
  36. $brand-primary: $orange;
  37. $brand-success: $green;
  38. $brand-warning: $orange;
  39. $brand-danger: $red;
  40. $query-blue: $blue-dark;
  41. // Status colors
  42. // -------------------------
  43. $online: #01a64f;
  44. $warn: #f79520;
  45. $critical: #ec2128;
  46. // Scaffolding
  47. // -------------------------
  48. $body-bg: $gray-7;
  49. $page-bg: $gray-7;
  50. $body-color: $gray-1;
  51. //$text-color: $dark-4;
  52. $text-color: $gray-1;
  53. $text-color-strong: $white;
  54. $text-color-weak: $gray-2;
  55. $text-color-faint: $gray-4;
  56. $text-color-emphasis: $dark-5;
  57. $text-shadow-strong: none;
  58. $text-shadow-faint: none;
  59. $textShadow: none;
  60. // gradients
  61. $brand-gradient: linear-gradient(to right, rgba(255, 213, 0, 1) 0%, rgba(255, 68, 0, 1) 99%, rgba(255, 68, 0, 1) 100%);
  62. $page-gradient: linear-gradient(-60deg, $gray-7, #f5f6f9 70%, $gray-7 98%);
  63. // Links
  64. // -------------------------
  65. $link-color: $gray-1;
  66. $link-color-disabled: lighten($link-color, 30%);
  67. $link-hover-color: darken($link-color, 20%);
  68. $external-link-color: $blue;
  69. // Typography
  70. // -------------------------
  71. $headings-color: $text-color;
  72. $abbr-border-color: $gray-2 !default;
  73. $text-muted: $text-color-weak;
  74. $blockquote-small-color: $gray-2 !default;
  75. $blockquote-border-color: $gray-3 !default;
  76. $hr-border-color: $dark-3 !default;
  77. // Components
  78. $component-active-color: $white !default;
  79. $component-active-bg: $brand-primary !default;
  80. // Panel
  81. // -------------------------
  82. $panel-bg: $white;
  83. $panel-border-color: $gray-5;
  84. $panel-border: solid 1px $panel-border-color;
  85. $panel-drop-zone-bg: repeating-linear-gradient(-128deg, $body-bg, $body-bg 10px, $gray-6 10px, $gray-6 20px);
  86. $panel-header-hover-bg: $gray-6;
  87. $panel-header-menu-hover-bg: $gray-4;
  88. $panel-edit-shadow: 0 0 30px 20px $black;
  89. // Page header
  90. $page-header-bg: linear-gradient(90deg, $white, $gray-7);
  91. $page-header-shadow: inset 0px -3px 10px $gray-6;
  92. $page-header-border-color: $gray-4;
  93. $divider-border-color: $gray-2;
  94. // Graphite Target Editor
  95. $tight-form-bg: #eaebee;
  96. $tight-form-func-bg: $gray-5;
  97. $tight-form-func-highlight-bg: $gray-6;
  98. $modal-backdrop-bg: $body-bg;
  99. $code-tag-bg: $gray-6;
  100. $code-tag-border: darken($code-tag-bg, 3%);
  101. // cards
  102. $card-background: linear-gradient(135deg, $gray-6, $gray-5);
  103. $card-background-hover: linear-gradient(135deg, $gray-5, $gray-6);
  104. $card-shadow: -1px -1px 0 0 hsla(0, 0%, 100%, 0.1), 1px 1px 0 0 rgba(0, 0, 0, 0.1);
  105. // Lists
  106. $list-item-bg: linear-gradient(135deg, $gray-5, $gray-6); //$card-background;
  107. $list-item-hover-bg: darken($gray-5, 5%);
  108. $list-item-link-color: $text-color;
  109. $list-item-shadow: $card-shadow;
  110. $empty-list-cta-bg: $gray-6;
  111. // Tables
  112. // -------------------------
  113. $table-bg: transparent; // overall background-color
  114. $table-bg-accent: $gray-5; // for striping
  115. $table-bg-hover: $gray-5; // for hover
  116. $table-bg-active: $table-bg-hover !default;
  117. $table-border: $gray-3; // table and cell border
  118. $table-bg-odd: $gray-6;
  119. $table-bg-hover: $gray-5;
  120. // Scrollbars
  121. $scrollbarBackground: $gray-5;
  122. $scrollbarBackground2: $gray-5;
  123. $scrollbarBorder: $gray-4;
  124. // Buttons
  125. // -------------------------
  126. $btn-primary-bg: $brand-primary;
  127. $btn-primary-bg-hl: lighten($brand-primary, 8%);
  128. $btn-secondary-bg: $blue-dark;
  129. $btn-secondary-bg-hl: lighten($blue-dark, 4%);
  130. $btn-success-bg: lighten($green, 3%);
  131. $btn-success-bg-hl: darken($green, 3%);
  132. $btn-warning-bg: lighten($orange, 3%);
  133. $btn-warning-bg-hl: darken($orange, 3%);
  134. $btn-danger-bg: lighten($red, 3%);
  135. $btn-danger-bg-hl: darken($red, 3%);
  136. $btn-inverse-bg: $gray-6;
  137. $btn-inverse-bg-hl: darken($gray-6, 5%);
  138. $btn-inverse-text-color: $gray-1;
  139. $btn-inverse-text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
  140. $btn-link-color: $gray-1;
  141. $btn-divider-left: $gray-4;
  142. $btn-divider-right: $gray-7;
  143. $btn-drag-image: '../img/grab_light.svg';
  144. $iconContainerBackground: $white;
  145. // Forms
  146. // -------------------------
  147. $input-bg: $white;
  148. $input-bg-disabled: $gray-5;
  149. $input-color: $dark-3;
  150. $input-border-color: $gray-5;
  151. $input-box-shadow: none;
  152. $input-border-focus: $blue !default;
  153. $input-box-shadow-focus: $blue !default;
  154. $input-color-placeholder: $gray-4 !default;
  155. $input-label-bg: $gray-5;
  156. $input-label-border-color: $gray-5;
  157. $input-invalid-border-color: lighten($red, 5%);
  158. // Sidemenu
  159. // -------------------------
  160. $side-menu-bg: $dark-2;
  161. $side-menu-bg-mobile: rgba(0, 0, 0, 0); //$gray-6;
  162. $side-menu-item-hover-bg: $gray-1;
  163. $side-menu-shadow: 5px 0px 10px -5px $gray-1;
  164. $side-menu-link-color: $gray-6;
  165. // Menu dropdowns
  166. // -------------------------
  167. $menu-dropdown-bg: $gray-7;
  168. $menu-dropdown-hover-bg: $gray-6;
  169. $menu-dropdown-border-color: $gray-4;
  170. $menu-dropdown-shadow: 5px 5px 10px -5px $gray-1;
  171. // Breadcrumb
  172. // -------------------------
  173. $page-nav-bg: $gray-5;
  174. $page-nav-shadow: 5px 5px 20px -5px $gray-4;
  175. $page-nav-breadcrumb-color: $black;
  176. $breadcrumb-hover-hl: #d9dadd;
  177. // Tabs
  178. // -------------------------
  179. $tab-border-color: $gray-5;
  180. // search
  181. $search-shadow: 0 5px 30px 0 $gray-4;
  182. $search-filter-box-bg: $gray-7;
  183. // Dropdowns
  184. // -------------------------
  185. $dropdownBackground: $white;
  186. $dropdownBorder: $gray-4;
  187. $dropdownDividerTop: $gray-6;
  188. $dropdownDividerBottom: $white;
  189. $dropdownDivider: $dropdownDividerTop;
  190. $dropdownTitle: $gray-3;
  191. $dropdownLinkColor: $dark-3;
  192. $dropdownLinkColorHover: $link-color;
  193. $dropdownLinkColorActive: $link-color;
  194. $dropdownLinkBackgroundActive: $gray-6;
  195. $dropdownLinkBackgroundHover: $gray-6;
  196. // COMPONENT VARIABLES
  197. // --------------------------------------------------
  198. // Input placeholder text color
  199. // -------------------------
  200. $placeholderText: $gray-2;
  201. // Hr border color
  202. // -------------------------
  203. $hrBorder: $gray-3;
  204. // Horizontal forms & lists
  205. // -------------------------
  206. $horizontalComponentOffset: 180px;
  207. // Wells
  208. // -------------------------
  209. $wellBackground: $gray-3;
  210. // Navbar
  211. // -------------------------
  212. $navbarHeight: 52px;
  213. $navbarBackgroundHighlight: $white;
  214. $navbarBackground: $white;
  215. $navbarBorder: 1px solid $gray-4;
  216. $navbarShadow: 0 0 3px #c1c1c1;
  217. $navbarText: #444;
  218. $navbarLinkColor: #444;
  219. $navbarLinkColorHover: #000;
  220. $navbarLinkColorActive: #333;
  221. $navbarLinkBackgroundHover: transparent;
  222. $navbarLinkBackgroundActive: darken($navbarBackground, 6.5%);
  223. $navbarDropdownShadow: inset 0px 4px 7px -4px darken($body-bg, 20%);
  224. $navbarBrandColor: $navbarLinkColor;
  225. $navbarButtonBackground: lighten($navbarBackground, 3%);
  226. $navbarButtonBackgroundHighlight: lighten($navbarBackground, 5%);
  227. $navbar-button-border: $gray-4;
  228. // Pagination
  229. // -------------------------
  230. $paginationBackground: $gray-2;
  231. $paginationBorder: transparent;
  232. $paginationActiveBackground: $blue;
  233. // Form states and alerts
  234. // -------------------------
  235. $warning-text-color: lighten($orange, 10%);
  236. $error-text-color: lighten($red, 10%);
  237. $success-text-color: lighten($green, 10%);
  238. $info-text-color: $blue;
  239. $alert-error-bg: linear-gradient(90deg, #d44939, #e04d3d);
  240. $alert-success-bg: linear-gradient(90deg, #3aa655, #47b274);
  241. $alert-warning-bg: linear-gradient(90deg, #d44939, #e04d3d);
  242. $alert-info-bg: $blue-dark;
  243. // popover
  244. $popover-bg: $page-bg;
  245. $popover-color: $text-color;
  246. $popover-border-color: $gray-5;
  247. $popover-shadow: 0 0 20px $white;
  248. $popover-help-bg: $blue-dark;
  249. $popover-help-color: $gray-6;
  250. $popover-error-bg: $btn-danger-bg;
  251. // Tooltips and popovers
  252. // -------------------------
  253. $tooltipColor: $popover-help-color;
  254. $tooltipBackground: $popover-help-bg;
  255. $tooltipArrowWidth: 5px;
  256. $tooltipArrowColor: $tooltipBackground;
  257. $tooltipLinkColor: lighten($popover-help-color, 5%);
  258. $graph-tooltip-bg: $gray-5;
  259. // images
  260. $checkboxImageUrl: '../img/checkbox_white.png';
  261. // info box
  262. $info-box-background: linear-gradient(100deg, $blue-dark, darken($blue-dark, 5%));
  263. $info-box-color: $gray-7;
  264. // footer
  265. $footer-link-color: $gray-3;
  266. $footer-link-hover: $dark-5;
  267. // collapse box
  268. $collapse-box-body-border: $gray-4;
  269. $collapse-box-body-error-border: $red;
  270. // json explorer
  271. $json-explorer-default-color: black;
  272. $json-explorer-string-color: green;
  273. $json-explorer-number-color: blue;
  274. $json-explorer-boolean-color: red;
  275. $json-explorer-null-color: #855a00;
  276. $json-explorer-undefined-color: rgb(202, 11, 105);
  277. $json-explorer-function-color: #ff20ed;
  278. $json-explorer-rotate-time: 100ms;
  279. $json-explorer-toggler-opacity: 0.6;
  280. $json-explorer-toggler-color: #45376f;
  281. $json-explorer-bracket-color: blue;
  282. $json-explorer-key-color: #00008b;
  283. $json-explorer-url-color: blue;
  284. // Changelog and diff
  285. // -------------------------
  286. $diff-label-bg: $gray-5;
  287. $diff-label-fg: $gray-2;
  288. $diff-switch-bg: $gray-7;
  289. $diff-switch-disabled: $gray-5;
  290. $diff-arrow-color: $dark-3;
  291. $diff-group-bg: $gray-7;
  292. $diff-json-bg: $gray-5;
  293. $diff-json-fg: $gray-2;
  294. $diff-json-added: lighten(desaturate($green, 30%), 10%);
  295. $diff-json-deleted: desaturate($red, 35%);
  296. $diff-json-old: #5a372a;
  297. $diff-json-new: #664e33;
  298. $diff-json-changed-fg: $gray-6;
  299. $diff-json-changed-num: $gray-4;
  300. $diff-json-icon: $gray-4;