var.less 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901
  1. // Color Palette
  2. @black: #000;
  3. @white: #fff;
  4. @gray-1: #f7f8fa;
  5. @gray-2: #f2f3f5;
  6. @gray-3: #ebedf0;
  7. @gray-4: #dcdee0;
  8. @gray-5: #c8c9cc;
  9. @gray-6: #969799;
  10. @gray-7: #646566;
  11. @gray-8: #323233;
  12. @red: #ee0a24;
  13. @blue: #1989fa;
  14. @orange: #ff976a;
  15. @orange-dark: #ed6a0c;
  16. @orange-light: #fffbe8;
  17. @green: #07c160;
  18. // Gradient Colors
  19. @gradient-red: linear-gradient(to right, #ff6034, #ee0a24);
  20. @gradient-orange: linear-gradient(to right, #ffd01e, #ff8917);
  21. // Component Colors
  22. @text-color: @gray-8;
  23. @active-color: @gray-2;
  24. @active-opacity: 0.7;
  25. @disabled-opacity: 0.5;
  26. @background-color: @gray-1;
  27. @background-color-light: #fafafa;
  28. @text-link-color: #576b95;
  29. // Padding
  30. @padding-base: 4px;
  31. @padding-xs: @padding-base * 2;
  32. @padding-sm: @padding-base * 3;
  33. @padding-md: @padding-base * 4;
  34. @padding-lg: @padding-base * 6;
  35. @padding-xl: @padding-base * 8;
  36. // Font
  37. @font-size-xs: 10px;
  38. @font-size-sm: 12px;
  39. @font-size-md: 14px;
  40. @font-size-lg: 16px;
  41. @font-weight-bold: 500;
  42. @line-height-xs: 14px;
  43. @line-height-sm: 18px;
  44. @line-height-md: 20px;
  45. @line-height-lg: 22px;
  46. @base-font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue',
  47. Helvetica, Segoe UI, Arial, Roboto, 'PingFang SC', 'miui', 'Hiragino Sans GB',
  48. 'Microsoft Yahei', sans-serif;
  49. @price-integer-font-family: Avenir-Heavy, PingFang SC, Helvetica Neue, Arial,
  50. sans-serif;
  51. // Animation
  52. @animation-duration-base: 0.3s;
  53. @animation-duration-fast: 0.2s;
  54. @animation-timing-function-enter: ease-out;
  55. @animation-timing-function-leave: ease-in;
  56. // Border
  57. @border-color: @gray-3;
  58. @border-width-base: 1px;
  59. @border-radius-sm: 2px;
  60. @border-radius-md: 4px;
  61. @border-radius-lg: 8px;
  62. @border-radius-max: 999px;
  63. // ActionSheet
  64. @action-sheet-max-height: 80%;
  65. @action-sheet-header-height: 48px;
  66. @action-sheet-header-font-size: @font-size-lg;
  67. @action-sheet-description-color: @gray-6;
  68. @action-sheet-description-font-size: @font-size-md;
  69. @action-sheet-description-line-height: @line-height-md;
  70. @action-sheet-item-background: @white;
  71. @action-sheet-item-font-size: @font-size-lg;
  72. @action-sheet-item-line-height: @line-height-lg;
  73. @action-sheet-item-text-color: @text-color;
  74. @action-sheet-item-disabled-text-color: @gray-5;
  75. @action-sheet-subname-color: @gray-6;
  76. @action-sheet-subname-font-size: @font-size-sm;
  77. @action-sheet-subname-line-height: @line-height-sm;
  78. @action-sheet-close-icon-size: 22px;
  79. @action-sheet-close-icon-color: @gray-5;
  80. @action-sheet-close-icon-active-color: @gray-6;
  81. @action-sheet-close-icon-padding: 0 @padding-md;
  82. @action-sheet-cancel-text-color: @gray-7;
  83. @action-sheet-cancel-padding-top: @padding-xs;
  84. @action-sheet-cancel-padding-color: @background-color;
  85. @action-sheet-loading-icon-size: 22px;
  86. // AddressEdit
  87. @address-edit-padding: @padding-sm;
  88. @address-edit-buttons-padding: @padding-xl @padding-base;
  89. @address-edit-button-margin-bottom: @padding-sm;
  90. @address-edit-detail-finish-color: @blue;
  91. @address-edit-detail-finish-font-size: @font-size-sm;
  92. // AddressList
  93. @address-list-padding: @padding-sm @padding-sm 80px;
  94. @address-list-disabled-text-color: @gray-6;
  95. @address-list-disabled-text-padding: @padding-base * 5 0 @padding-md;
  96. @address-list-disabled-text-font-size: @font-size-md;
  97. @address-list-disabled-text-line-height: @line-height-md;
  98. @address-list-add-button-z-index: 999;
  99. @address-list-item-padding: @padding-sm;
  100. @address-list-item-text-color: @text-color;
  101. @address-list-item-disabled-text-color: @gray-5;
  102. @address-list-item-font-size: 13px;
  103. @address-list-item-line-height: @line-height-sm;
  104. @address-list-item-radio-icon-color: @red;
  105. @address-list-edit-icon-size: 20px;
  106. // Badge
  107. @badge-size: 16px;
  108. @badge-color: @white;
  109. @badge-padding: 0 3px;
  110. @badge-font-size: @font-size-sm;
  111. @badge-font-weight: @font-weight-bold;
  112. @badge-border-width: @border-width-base;
  113. @badge-background-color: @red;
  114. @badge-dot-color: @red;
  115. @badge-dot-size: 8px;
  116. @badge-font-family: -apple-system-font, Helvetica Neue, Arial, sans-serif;
  117. // Button
  118. @button-mini-height: 24px;
  119. @button-mini-font-size: @font-size-xs;
  120. @button-small-height: 32px;
  121. @button-small-font-size: @font-size-sm;
  122. @button-normal-font-size: @font-size-md;
  123. @button-large-height: 50px;
  124. @button-default-height: 44px;
  125. @button-default-line-height: 1.2;
  126. @button-default-font-size: @font-size-lg;
  127. @button-default-color: @text-color;
  128. @button-default-background-color: @white;
  129. @button-default-border-color: @border-color;
  130. @button-primary-color: @white;
  131. @button-primary-background-color: @green;
  132. @button-primary-border-color: @green;
  133. @button-info-color: @white;
  134. @button-info-background-color: @blue;
  135. @button-info-border-color: @blue;
  136. @button-danger-color: @white;
  137. @button-danger-background-color: @red;
  138. @button-danger-border-color: @red;
  139. @button-warning-color: @white;
  140. @button-warning-background-color: @orange;
  141. @button-warning-border-color: @orange;
  142. @button-border-width: @border-width-base;
  143. @button-border-radius: @border-radius-sm;
  144. @button-round-border-radius: @border-radius-max;
  145. @button-plain-background-color: @white;
  146. @button-disabled-opacity: @disabled-opacity;
  147. // Calendar
  148. @calendar-background-color: @white;
  149. @calendar-popup-height: 80%;
  150. @calendar-header-box-shadow: 0 2px 10px rgba(125, 126, 128, 0.16);
  151. @calendar-header-title-height: 44px;
  152. @calendar-header-title-font-size: @font-size-lg;
  153. @calendar-header-subtitle-font-size: @font-size-md;
  154. @calendar-weekdays-height: 30px;
  155. @calendar-weekdays-font-size: @font-size-sm;
  156. @calendar-month-title-font-size: @font-size-md;
  157. @calendar-month-mark-color: fade(@gray-2, 80%);
  158. @calendar-month-mark-font-size: 160px;
  159. @calendar-day-height: 64px;
  160. @calendar-day-font-size: @font-size-lg;
  161. @calendar-range-edge-color: @white;
  162. @calendar-range-edge-background-color: @red;
  163. @calendar-range-middle-color: @red;
  164. @calendar-range-middle-background-opacity: 0.1;
  165. @calendar-selected-day-size: 54px;
  166. @calendar-selected-day-color: @white;
  167. @calendar-info-font-size: @font-size-xs;
  168. @calendar-info-line-height: @line-height-xs;
  169. @calendar-selected-day-background-color: @red;
  170. @calendar-day-disabled-color: @gray-5;
  171. @calendar-confirm-button-height: 36px;
  172. @calendar-confirm-button-margin: 7px 0;
  173. // Card
  174. @card-padding: @padding-xs @padding-md;
  175. @card-font-size: @font-size-sm;
  176. @card-text-color: @text-color;
  177. @card-background-color: @background-color-light;
  178. @card-thumb-size: 88px;
  179. @card-thumb-border-radius: @border-radius-lg;
  180. @card-title-line-height: 16px;
  181. @card-desc-color: @gray-7;
  182. @card-desc-line-height: @line-height-md;
  183. @card-price-color: @gray-8;
  184. @card-origin-price-color: @gray-6;
  185. @card-num-color: @gray-6;
  186. @card-origin-price-font-size: @font-size-xs;
  187. @card-price-font-size: @font-size-sm;
  188. @card-price-integer-font-size: @font-size-lg;
  189. @card-price-font-family: @price-integer-font-family;
  190. // Cascader
  191. @cascader-header-height: 48px;
  192. @cascader-title-font-size: @font-size-lg;
  193. @cascader-title-line-height: 20px;
  194. @cascader-close-icon-size: 22px;
  195. @cascader-close-icon-color: @gray-5;
  196. @cascader-close-icon-active-color: @gray-6;
  197. @cascader-selected-icon-size: 18px;
  198. @cascader-tabs-height: 48px;
  199. @cascader-active-color: @red;
  200. @cascader-options-height: 384px;
  201. @cascader-tab-color: @text-color;
  202. @cascader-unselected-tab-color: @gray-6;
  203. // Cell
  204. @cell-font-size: @font-size-md;
  205. @cell-line-height: 24px;
  206. @cell-vertical-padding: 10px;
  207. @cell-horizontal-padding: @padding-md;
  208. @cell-text-color: @text-color;
  209. @cell-background-color: @white;
  210. @cell-border-color: @border-color;
  211. @cell-active-color: @active-color;
  212. @cell-required-color: @red;
  213. @cell-label-color: @gray-6;
  214. @cell-label-font-size: @font-size-sm;
  215. @cell-label-line-height: @line-height-sm;
  216. @cell-label-margin-top: @padding-base;
  217. @cell-value-color: @gray-6;
  218. @cell-icon-size: 16px;
  219. @cell-right-icon-color: @gray-6;
  220. @cell-large-vertical-padding: @padding-sm;
  221. @cell-large-title-font-size: @font-size-lg;
  222. @cell-large-label-font-size: @font-size-md;
  223. // CellGroup
  224. @cell-group-background-color: @white;
  225. @cell-group-title-color: @gray-6;
  226. @cell-group-title-padding: @padding-md @padding-md @padding-xs;
  227. @cell-group-title-font-size: @font-size-md;
  228. @cell-group-title-line-height: 16px;
  229. @cell-group-inset-padding: 0 @padding-md;
  230. @cell-group-inset-border-radius: @border-radius-lg;
  231. @cell-group-inset-title-padding: @padding-md @padding-md @padding-xs @padding-xl;
  232. // Checkbox
  233. @checkbox-size: 20px;
  234. @checkbox-border-color: @gray-5;
  235. @checkbox-transition-duration: @animation-duration-fast;
  236. @checkbox-label-margin: @padding-xs;
  237. @checkbox-label-color: @text-color;
  238. @checkbox-checked-icon-color: @blue;
  239. @checkbox-disabled-icon-color: @gray-5;
  240. @checkbox-disabled-label-color: @gray-5;
  241. @checkbox-disabled-background-color: @border-color;
  242. // Circle
  243. @circle-size: 100px;
  244. @circle-color: @blue;
  245. @circle-layer-color: @white;
  246. @circle-text-color: @text-color;
  247. @circle-text-font-weight: @font-weight-bold;
  248. @circle-text-font-size: @font-size-md;
  249. @circle-text-line-height: @line-height-md;
  250. // Collapse
  251. @collapse-item-transition-duration: @animation-duration-base;
  252. @collapse-item-content-padding: @padding-sm @padding-md;
  253. @collapse-item-content-font-size: @font-size-md;
  254. @collapse-item-content-line-height: 1.5;
  255. @collapse-item-content-text-color: @gray-6;
  256. @collapse-item-content-background-color: @white;
  257. @collapse-item-title-disabled-color: @gray-5;
  258. // ContactCard
  259. @contact-card-padding: @padding-md;
  260. @contact-card-add-icon-size: 40px;
  261. @contact-card-add-icon-color: @blue;
  262. @contact-card-value-line-height: @line-height-md;
  263. // ContactEdit
  264. @contact-edit-padding: @padding-md;
  265. @contact-edit-fields-radius: @border-radius-md;
  266. @contact-edit-buttons-padding: @padding-xl 0;
  267. @contact-edit-button-margin-bottom: @padding-sm;
  268. @contact-edit-button-font-size: 16px;
  269. @contact-edit-field-label-width: 4.1em;
  270. // ContactList
  271. @contact-list-edit-icon-size: 16px;
  272. @contact-list-add-button-z-index: 999;
  273. @contact-list-item-padding: @padding-md;
  274. // CountDown
  275. @count-down-text-color: @text-color;
  276. @count-down-font-size: @font-size-md;
  277. @count-down-line-height: @line-height-md;
  278. // Coupon
  279. @coupon-margin: 0 @padding-sm @padding-sm;
  280. @coupon-content-height: 84px;
  281. @coupon-content-padding: 14px 0;
  282. @coupon-background-color: @white;
  283. @coupon-active-background-color: @active-color;
  284. @coupon-border-radius: @border-radius-lg;
  285. @coupon-box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
  286. @coupon-head-width: 96px;
  287. @coupon-amount-color: @red;
  288. @coupon-amount-font-size: 30px;
  289. @coupon-currency-font-size: 40%;
  290. @coupon-name-font-size: @font-size-md;
  291. @coupon-disabled-text-color: @gray-6;
  292. @coupon-description-padding: @padding-xs @padding-md;
  293. @coupon-description-border-color: @border-color;
  294. // CouponCell
  295. @coupon-cell-selected-text-color: @text-color;
  296. // CouponList
  297. @coupon-list-background-color: @background-color;
  298. @coupon-list-field-padding: 5px 0 5px @padding-md;
  299. @coupon-list-exchange-button-height: 32px;
  300. @coupon-list-close-button-height: 40px;
  301. @coupon-list-empty-image-size: 200px;
  302. @coupon-list-empty-tip-color: @gray-6;
  303. @coupon-list-empty-tip-font-size: @font-size-md;
  304. @coupon-list-empty-tip-line-height: @line-height-md;
  305. // Dialog
  306. @dialog-width: 320px;
  307. @dialog-small-screen-width: 90%;
  308. @dialog-font-size: @font-size-lg;
  309. @dialog-transition: @animation-duration-base;
  310. @dialog-border-radius: 16px;
  311. @dialog-background-color: @white;
  312. @dialog-header-font-weight: @font-weight-bold;
  313. @dialog-header-line-height: 24px;
  314. @dialog-header-padding-top: 26px;
  315. @dialog-header-isolated-padding: @padding-lg 0;
  316. @dialog-message-padding: @padding-lg;
  317. @dialog-message-font-size: @font-size-md;
  318. @dialog-message-line-height: @line-height-md;
  319. @dialog-message-max-height: 60vh;
  320. @dialog-has-title-message-text-color: @gray-7;
  321. @dialog-has-title-message-padding-top: @padding-xs;
  322. @dialog-button-height: 48px;
  323. @dialog-round-button-height: 36px;
  324. @dialog-confirm-button-text-color: @red;
  325. // Divider
  326. @divider-margin: @padding-md 0;
  327. @divider-text-color: @gray-6;
  328. @divider-font-size: @font-size-md;
  329. @divider-line-height: 24px;
  330. @divider-border-color: @border-color;
  331. @divider-content-padding: @padding-md;
  332. @divider-content-left-width: 10%;
  333. @divider-content-right-width: 10%;
  334. // DropdownMenu
  335. @dropdown-menu-height: 48px;
  336. @dropdown-menu-background-color: @white;
  337. @dropdown-menu-box-shadow: 0 2px 12px fade(@gray-7, 12);
  338. @dropdown-menu-title-font-size: 15px;
  339. @dropdown-menu-title-text-color: @text-color;
  340. @dropdown-menu-title-active-text-color: @red;
  341. @dropdown-menu-title-disabled-text-color: @gray-6;
  342. @dropdown-menu-title-padding: 0 @padding-xs;
  343. @dropdown-menu-title-line-height: @line-height-lg;
  344. @dropdown-menu-option-active-color: @red;
  345. @dropdown-menu-content-max-height: 80%;
  346. @dropdown-item-z-index: 10;
  347. // Empty
  348. @empty-padding: @padding-xl 0;
  349. @empty-image-size: 160px;
  350. @empty-description-margin-top: @padding-md;
  351. @empty-description-padding: 0 60px;
  352. @empty-description-color: @gray-6;
  353. @empty-description-font-size: @font-size-md;
  354. @empty-description-line-height: @line-height-md;
  355. @empty-bottom-margin-top: 24px;
  356. // Field
  357. @field-label-width: 6.2em;
  358. @field-label-color: @gray-7;
  359. @field-label-margin-right: @padding-sm;
  360. @field-input-text-color: @text-color;
  361. @field-input-error-text-color: @red;
  362. @field-input-disabled-text-color: @gray-5;
  363. @field-placeholder-text-color: @gray-5;
  364. @field-icon-size: 16px;
  365. @field-clear-icon-size: 16px;
  366. @field-clear-icon-color: @gray-5;
  367. @field-right-icon-color: @gray-6;
  368. @field-error-message-color: @red;
  369. @field-error-message-font-size: 12px;
  370. @field-text-area-min-height: 60px;
  371. @field-word-limit-color: @gray-7;
  372. @field-word-limit-font-size: @font-size-sm;
  373. @field-word-limit-line-height: 16px;
  374. @field-disabled-text-color: @gray-5;
  375. // GridItem
  376. @grid-item-content-padding: @padding-md @padding-xs;
  377. @grid-item-content-background-color: @white;
  378. @grid-item-content-active-color: @active-color;
  379. @grid-item-icon-size: 28px;
  380. @grid-item-text-color: @gray-7;
  381. @grid-item-text-font-size: @font-size-sm;
  382. // GoodsAction
  383. @goods-action-background-color: @white;
  384. @goods-action-height: 50px;
  385. @goods-action-icon-width: 48px;
  386. @goods-action-icon-height: 100%;
  387. @goods-action-icon-color: @text-color;
  388. @goods-action-icon-size: 18px;
  389. @goods-action-icon-font-size: @font-size-xs;
  390. @goods-action-icon-active-color: @active-color;
  391. @goods-action-icon-text-color: @gray-7;
  392. @goods-action-button-height: 40px;
  393. @goods-action-button-warning-color: @gradient-orange;
  394. @goods-action-button-danger-color: @gradient-red;
  395. // IndexAnchor
  396. @index-anchor-z-index: 1;
  397. @index-anchor-padding: 0 @padding-md;
  398. @index-anchor-text-color: @text-color;
  399. @index-anchor-font-weight: @font-weight-bold;
  400. @index-anchor-font-size: @font-size-md;
  401. @index-anchor-line-height: 32px;
  402. @index-anchor-background-color: transparent;
  403. @index-anchor-sticky-text-color: @red;
  404. @index-anchor-sticky-background-color: @white;
  405. // IndexBar
  406. @index-bar-sidebar-z-index: 2;
  407. @index-bar-index-font-size: @font-size-xs;
  408. @index-bar-index-line-height: @line-height-xs;
  409. @index-bar-index-active-color: @red;
  410. // Info
  411. @info-size: 16px;
  412. @info-color: @white;
  413. @info-padding: 0 3px;
  414. @info-font-size: @font-size-sm;
  415. @info-font-weight: @font-weight-bold;
  416. @info-border-width: @border-width-base;
  417. @info-background-color: @red;
  418. @info-dot-color: @red;
  419. @info-dot-size: 8px;
  420. @info-font-family: -apple-system-font, Helvetica Neue, Arial, sans-serif;
  421. // Image
  422. @image-placeholder-text-color: @gray-6;
  423. @image-placeholder-font-size: @font-size-md;
  424. @image-placeholder-background-color: @background-color;
  425. @image-loading-icon-size: 32px;
  426. @image-loading-icon-color: @gray-4;
  427. @image-error-icon-size: 32px;
  428. @image-error-icon-color: @gray-4;
  429. // ImagePreview
  430. @image-preview-index-text-color: @white;
  431. @image-preview-index-font-size: @font-size-md;
  432. @image-preview-index-line-height: @line-height-md;
  433. @image-preview-index-text-shadow: 0 1px 1px @gray-8;
  434. @image-preview-overlay-background-color: rgba(0, 0, 0, 0.9);
  435. @image-preview-close-icon-size: 22px;
  436. @image-preview-close-icon-color: @gray-5;
  437. @image-preview-close-icon-active-color: @gray-6;
  438. @image-preview-close-icon-margin: @padding-md;
  439. @image-preview-close-icon-z-index: 1;
  440. // List
  441. @list-text-color: @gray-6;
  442. @list-text-font-size: @font-size-md;
  443. @list-text-line-height: 50px;
  444. // Loading
  445. @loading-text-color: @gray-6;
  446. @loading-text-font-size: @font-size-md;
  447. @loading-spinner-color: @gray-5;
  448. @loading-spinner-size: 30px;
  449. @loading-spinner-animation-duration: 0.8s;
  450. // NavBar
  451. @nav-bar-height: 46px;
  452. @nav-bar-background-color: @white;
  453. @nav-bar-arrow-size: 16px;
  454. @nav-bar-icon-color: @blue;
  455. @nav-bar-text-color: @blue;
  456. @nav-bar-title-font-size: @font-size-lg;
  457. @nav-bar-title-text-color: @text-color;
  458. @nav-bar-z-index: 1;
  459. // NoticeBar
  460. @notice-bar-height: 40px;
  461. @notice-bar-padding: 0 @padding-md;
  462. @notice-bar-wrapable-padding: @padding-xs @padding-md;
  463. @notice-bar-text-color: @orange-dark;
  464. @notice-bar-font-size: @font-size-md;
  465. @notice-bar-line-height: 24px;
  466. @notice-bar-background-color: @orange-light;
  467. @notice-bar-icon-size: 16px;
  468. @notice-bar-icon-min-width: 24px;
  469. // Notify
  470. @notify-text-color: @white;
  471. @notify-padding: @padding-xs @padding-md;
  472. @notify-font-size: @font-size-md;
  473. @notify-line-height: @line-height-md;
  474. @notify-primary-background-color: @blue;
  475. @notify-success-background-color: @green;
  476. @notify-danger-background-color: @red;
  477. @notify-warning-background-color: @orange;
  478. // NumberKeyboard
  479. @number-keyboard-background-color: @gray-2;
  480. @number-keyboard-key-height: 48px;
  481. @number-keyboard-key-font-size: 28px;
  482. @number-keyboard-key-active-color: @gray-3;
  483. @number-keyboard-delete-font-size: @font-size-lg;
  484. @number-keyboard-title-color: @gray-7;
  485. @number-keyboard-title-height: 34px;
  486. @number-keyboard-title-font-size: @font-size-lg;
  487. @number-keyboard-close-padding: 0 @padding-md;
  488. @number-keyboard-close-color: @text-link-color;
  489. @number-keyboard-close-font-size: @font-size-md;
  490. @number-keyboard-button-text-color: @white;
  491. @number-keyboard-button-background-color: @blue;
  492. @number-keyboard-cursor-color: @text-color;
  493. @number-keyboard-cursor-width: 1px;
  494. @number-keyboard-cursor-height: 40%;
  495. @number-keyboard-cursor-animation-duration: 1s;
  496. @number-keyboard-z-index: 100;
  497. // Overlay
  498. @overlay-z-index: 1;
  499. @overlay-background-color: rgba(0, 0, 0, 0.7);
  500. // Pagination
  501. @pagination-height: 40px;
  502. @pagination-font-size: @font-size-md;
  503. @pagination-item-width: 36px;
  504. @pagination-item-default-color: @blue;
  505. @pagination-item-disabled-color: @gray-7;
  506. @pagination-item-disabled-background-color: @background-color;
  507. @pagination-background-color: @white;
  508. @pagination-desc-color: @gray-7;
  509. @pagination-disabled-opacity: @disabled-opacity;
  510. // Panel
  511. @panel-background-color: @white;
  512. @panel-header-value-color: @red;
  513. @panel-footer-padding: @padding-xs @padding-md;
  514. // PasswordInput
  515. @password-input-height: 50px;
  516. @password-input-margin: 0 @padding-md;
  517. @password-input-font-size: 20px;
  518. @password-input-border-radius: 6px;
  519. @password-input-background-color: @white;
  520. @password-input-info-color: @gray-6;
  521. @password-input-info-font-size: @font-size-md;
  522. @password-input-error-info-color: @red;
  523. @password-input-dot-size: 10px;
  524. @password-input-dot-color: @black;
  525. // Picker
  526. @picker-background-color: @white;
  527. @picker-toolbar-height: 44px;
  528. @picker-title-font-size: @font-size-lg;
  529. @picker-title-line-height: @line-height-md;
  530. @picker-action-padding: 0 @padding-md;
  531. @picker-action-font-size: @font-size-md;
  532. @picker-confirm-action-color: @text-link-color;
  533. @picker-cancel-action-color: @gray-6;
  534. @picker-option-font-size: @font-size-lg;
  535. @picker-option-text-color: @black;
  536. @picker-option-disabled-opacity: 0.3;
  537. @picker-loading-icon-color: @blue;
  538. @picker-loading-mask-color: rgba(255, 255, 255, 0.9);
  539. // Popover
  540. @popover-arrow-size: 6px;
  541. @popover-border-radius: @border-radius-lg;
  542. @popover-action-width: 128px;
  543. @popover-action-height: 44px;
  544. @popover-action-font-size: @font-size-md;
  545. @popover-action-line-height: @line-height-md;
  546. @popover-action-icon-size: 20px;
  547. @popover-light-text-color: @text-color;
  548. @popover-light-background-color: @white;
  549. @popover-light-action-disabled-text-color: @gray-5;
  550. @popover-dark-text-color: @white;
  551. @popover-dark-background-color: #4a4a4a;
  552. @popover-dark-action-disabled-text-color: @gray-6;
  553. // Popup
  554. @popup-background-color: @white;
  555. @popup-transition: transform @animation-duration-base;
  556. @popup-round-border-radius: 16px;
  557. @popup-close-icon-size: 22px;
  558. @popup-close-icon-color: @gray-5;
  559. @popup-close-icon-active-color: @gray-6;
  560. @popup-close-icon-margin: 16px;
  561. @popup-close-icon-z-index: 1;
  562. // Progress
  563. @progress-height: 4px;
  564. @progress-color: @blue;
  565. @progress-background-color: @gray-3;
  566. @progress-pivot-padding: 0 5px;
  567. @progress-pivot-text-color: @white;
  568. @progress-pivot-font-size: @font-size-xs;
  569. @progress-pivot-line-height: 1.6;
  570. @progress-pivot-background-color: @blue;
  571. // PullRefresh
  572. @pull-refresh-head-height: 50px;
  573. @pull-refresh-head-font-size: @font-size-md;
  574. @pull-refresh-head-text-color: @gray-6;
  575. // Radio
  576. @radio-size: 20px;
  577. @radio-border-color: @gray-5;
  578. @radio-transition-duration: @animation-duration-fast;
  579. @radio-label-margin: @padding-xs;
  580. @radio-label-color: @text-color;
  581. @radio-checked-icon-color: @blue;
  582. @radio-disabled-icon-color: @gray-5;
  583. @radio-disabled-label-color: @gray-5;
  584. @radio-disabled-background-color: @border-color;
  585. // Rate
  586. @rate-icon-size: 20px;
  587. @rate-icon-gutter: @padding-base;
  588. @rate-icon-void-color: @gray-5;
  589. @rate-icon-full-color: @red;
  590. @rate-icon-disabled-color: @gray-5;
  591. // ShareSheet
  592. @share-sheet-header-padding: @padding-sm @padding-md @padding-base;
  593. @share-sheet-title-color: @text-color;
  594. @share-sheet-title-font-size: @font-size-md;
  595. @share-sheet-title-line-height: @line-height-md;
  596. @share-sheet-description-color: @gray-6;
  597. @share-sheet-description-font-size: @font-size-sm;
  598. @share-sheet-description-line-height: 16px;
  599. @share-sheet-icon-size: 48px;
  600. @share-sheet-option-name-color: @gray-7;
  601. @share-sheet-option-name-font-size: @font-size-sm;
  602. @share-sheet-option-description-color: @gray-5;
  603. @share-sheet-option-description-font-size: @font-size-sm;
  604. @share-sheet-cancel-button-font-size: @font-size-lg;
  605. @share-sheet-cancel-button-height: 48px;
  606. @share-sheet-cancel-button-background: @white;
  607. // Search
  608. @search-padding: 10px @padding-sm;
  609. @search-background-color: @white;
  610. @search-content-background-color: @gray-1;
  611. @search-input-height: 34px;
  612. @search-label-padding: 0 5px;
  613. @search-label-color: @text-color;
  614. @search-label-font-size: @font-size-md;
  615. @search-left-icon-color: @gray-6;
  616. @search-action-padding: 0 @padding-xs;
  617. @search-action-text-color: @text-color;
  618. @search-action-font-size: @font-size-md;
  619. // Sidebar
  620. @sidebar-width: 80px;
  621. @sidebar-font-size: @font-size-md;
  622. @sidebar-line-height: @line-height-md;
  623. @sidebar-text-color: @text-color;
  624. @sidebar-disabled-text-color: @gray-5;
  625. @sidebar-padding: 20px @padding-sm;
  626. @sidebar-active-color: @active-color;
  627. @sidebar-background-color: @background-color;
  628. @sidebar-selected-font-weight: @font-weight-bold;
  629. @sidebar-selected-text-color: @text-color;
  630. @sidebar-selected-border-width: 4px;
  631. @sidebar-selected-border-height: 16px;
  632. @sidebar-selected-border-color: @red;
  633. @sidebar-selected-background-color: @white;
  634. // Skeleton
  635. @skeleton-row-height: 16px;
  636. @skeleton-row-background-color: @active-color;
  637. @skeleton-row-margin-top: @padding-sm;
  638. @skeleton-title-width: 40%;
  639. @skeleton-avatar-size: 32px;
  640. @skeleton-avatar-background-color: @active-color;
  641. @skeleton-animation-duration: 1.2s;
  642. // Slider
  643. @slider-active-background-color: @blue;
  644. @slider-inactive-background-color: @gray-3;
  645. @slider-disabled-opacity: @disabled-opacity;
  646. @slider-bar-height: 2px;
  647. @slider-button-width: 24px;
  648. @slider-button-height: 24px;
  649. @slider-button-border-radius: 50%;
  650. @slider-button-background-color: @white;
  651. @slider-button-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  652. // Step
  653. @step-text-color: @gray-6;
  654. @step-active-color: @green;
  655. @step-process-text-color: @text-color;
  656. @step-font-size: @font-size-md;
  657. @step-line-color: @border-color;
  658. @step-finish-line-color: @green;
  659. @step-finish-text-color: @text-color;
  660. @step-icon-size: 12px;
  661. @step-circle-size: 5px;
  662. @step-circle-color: @gray-6;
  663. @step-horizontal-title-font-size: @font-size-sm;
  664. // Steps
  665. @steps-background-color: @white;
  666. // Sticky
  667. @sticky-z-index: 99;
  668. // Stepper
  669. @stepper-active-color: #e8e8e8;
  670. @stepper-background-color: @active-color;
  671. @stepper-button-icon-color: @text-color;
  672. @stepper-button-disabled-color: @background-color;
  673. @stepper-button-disabled-icon-color: @gray-5;
  674. @stepper-button-round-theme-color: @red;
  675. @stepper-input-width: 32px;
  676. @stepper-input-height: 28px;
  677. @stepper-input-font-size: @font-size-md;
  678. @stepper-input-line-height: normal;
  679. @stepper-input-text-color: @text-color;
  680. @stepper-input-disabled-text-color: @gray-5;
  681. @stepper-input-disabled-background-color: @active-color;
  682. @stepper-border-radius: @border-radius-md;
  683. // SubmitBar
  684. @submit-bar-height: 50px;
  685. @submit-bar-z-index: 100;
  686. @submit-bar-background-color: @white;
  687. @submit-bar-button-width: 110px;
  688. @submit-bar-price-color: @red;
  689. @submit-bar-price-font-size: @font-size-md;
  690. @submit-bar-currency-font-size: @font-size-md;
  691. @submit-bar-text-color: @text-color;
  692. @submit-bar-text-font-size: @font-size-md;
  693. @submit-bar-tip-padding: @padding-xs @padding-sm;
  694. @submit-bar-tip-font-size: @font-size-sm;
  695. @submit-bar-tip-line-height: 1.5;
  696. @submit-bar-tip-color: #f56723;
  697. @submit-bar-tip-background-color: #fff7cc;
  698. @submit-bar-tip-icon-size: 12px;
  699. @submit-bar-button-height: 40px;
  700. @submit-bar-padding: 0 @padding-md;
  701. @submit-bar-price-integer-font-size: 20px;
  702. @submit-bar-price-font-family: @price-integer-font-family;
  703. // Swipe
  704. @swipe-indicator-size: 6px;
  705. @swipe-indicator-margin: @padding-sm;
  706. @swipe-indicator-active-opacity: 1;
  707. @swipe-indicator-inactive-opacity: 0.3;
  708. @swipe-indicator-active-background-color: @blue;
  709. @swipe-indicator-inactive-background-color: @border-color;
  710. // Switch
  711. @switch-size: 30px;
  712. @switch-width: 2em;
  713. @switch-height: 1em;
  714. @switch-node-size: 1em;
  715. @switch-node-background-color: @white;
  716. @switch-node-box-shadow: 0 3px 1px 0 rgba(0, 0, 0, 0.05),
  717. 0 2px 2px 0 rgba(0, 0, 0, 0.1), 0 3px 3px 0 rgba(0, 0, 0, 0.05);
  718. @switch-background-color: @white;
  719. @switch-on-background-color: @blue;
  720. @switch-transition-duration: @animation-duration-base;
  721. @switch-disabled-opacity: @disabled-opacity;
  722. @switch-border: @border-width-base solid rgba(0, 0, 0, 0.1);
  723. // SwitchCell
  724. @switch-cell-padding-top: @cell-vertical-padding - 1px;
  725. @switch-cell-padding-bottom: @cell-vertical-padding - 1px;
  726. @switch-cell-large-padding-top: @cell-large-vertical-padding - 1px;
  727. @switch-cell-large-padding-bottom: @cell-large-vertical-padding - 1px;
  728. // Tabbar
  729. @tabbar-height: 50px;
  730. @tabbar-z-index: 1;
  731. @tabbar-background-color: @white;
  732. // TabbarItem
  733. @tabbar-item-font-size: @font-size-sm;
  734. @tabbar-item-text-color: @gray-7;
  735. @tabbar-item-active-color: @blue;
  736. @tabbar-item-active-background-color: @tabbar-background-color;
  737. @tabbar-item-line-height: 1;
  738. @tabbar-item-icon-size: 22px;
  739. @tabbar-item-margin-bottom: 4px;
  740. // Tab
  741. @tab-text-color: @gray-7;
  742. @tab-active-text-color: @text-color;
  743. @tab-disabled-text-color: @gray-5;
  744. @tab-font-size: @font-size-md;
  745. @tab-line-height: @line-height-md;
  746. // Tabs
  747. @tabs-default-color: @red;
  748. @tabs-line-height: 44px;
  749. @tabs-card-height: 30px;
  750. @tabs-nav-background-color: @white;
  751. @tabs-bottom-bar-width: 40px;
  752. @tabs-bottom-bar-height: 3px;
  753. @tabs-bottom-bar-color: @tabs-default-color;
  754. // Tag
  755. @tag-padding: 0 @padding-base;
  756. @tag-text-color: @white;
  757. @tag-font-size: @font-size-sm;
  758. @tag-border-radius: 2px;
  759. @tag-line-height: 16px;
  760. @tag-medium-padding: 2px 6px;
  761. @tag-large-padding: @padding-base @padding-xs;
  762. @tag-large-border-radius: @border-radius-md;
  763. @tag-large-font-size: @font-size-md;
  764. @tag-round-border-radius: @border-radius-max;
  765. @tag-danger-color: @red;
  766. @tag-primary-color: @blue;
  767. @tag-success-color: @green;
  768. @tag-warning-color: @orange;
  769. @tag-default-color: @gray-6;
  770. @tag-plain-background-color: @white;
  771. // Toast
  772. @toast-max-width: 70%;
  773. @toast-font-size: @font-size-md;
  774. @toast-text-color: @white;
  775. @toast-loading-icon-color: @white;
  776. @toast-line-height: @line-height-md;
  777. @toast-border-radius: @border-radius-lg;
  778. @toast-background-color: fade(@black, 70%);
  779. @toast-icon-size: 36px;
  780. @toast-text-min-width: 96px;
  781. @toast-text-padding: @padding-xs @padding-sm;
  782. @toast-default-padding: @padding-md;
  783. @toast-default-width: 88px;
  784. @toast-default-min-height: 88px;
  785. @toast-position-top-distance: 20%;
  786. @toast-position-bottom-distance: 20%;
  787. // TreeSelect
  788. @tree-select-font-size: @font-size-md;
  789. @tree-select-nav-background-color: @background-color;
  790. @tree-select-content-background-color: @white;
  791. @tree-select-nav-item-padding: 14px @padding-sm;
  792. @tree-select-item-height: 48px;
  793. @tree-select-item-active-color: @red;
  794. @tree-select-item-disabled-color: @gray-5;
  795. @tree-select-item-selected-size: 16px;
  796. // Uploader
  797. @uploader-size: 80px;
  798. @uploader-icon-size: 24px;
  799. @uploader-icon-color: @gray-4;
  800. @uploader-text-color: @gray-6;
  801. @uploader-text-font-size: @font-size-sm;
  802. @uploader-upload-background-color: @gray-1;
  803. @uploader-upload-active-color: @active-color;
  804. @uploader-delete-color: @white;
  805. @uploader-delete-icon-size: 14px;
  806. @uploader-delete-background-color: rgba(0, 0, 0, 0.7);
  807. @uploader-file-background-color: @background-color;
  808. @uploader-file-icon-size: 20px;
  809. @uploader-file-icon-color: @gray-7;
  810. @uploader-file-name-padding: 0 @padding-base;
  811. @uploader-file-name-margin-top: @padding-xs;
  812. @uploader-file-name-font-size: @font-size-sm;
  813. @uploader-file-name-text-color: @gray-7;
  814. @uploader-mask-background-color: fade(@gray-8, 88%);
  815. @uploader-mask-icon-size: 22px;
  816. @uploader-mask-message-font-size: @font-size-sm;
  817. @uploader-mask-message-line-height: @line-height-xs;
  818. @uploader-loading-icon-size: 22px;
  819. @uploader-loading-icon-color: @white;
  820. @uploader-disabled-opacity: @disabled-opacity;
  821. // Sku
  822. @sku-item-background-color: @background-color;
  823. @sku-icon-gray-color: @gray-4;
  824. @sku-upload-mask-color: rgba(50, 50, 51, 0.8);