_variables.light.scss 9.5 KB

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