variable.less 39 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151
  1. /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
  2. @import '../color/colors';
  3. @theme: variable;
  4. // The prefix to use on all css classes from ant.
  5. @ant-prefix: ant;
  6. // An override for the html selector for theme prefixes
  7. @html-selector: html;
  8. @{html-selector} {
  9. @base-primary: @blue-6;
  10. // ========= Primary Color =========
  11. --@{ant-prefix}-primary-color: @base-primary;
  12. --@{ant-prefix}-primary-color-hover: color(colorPalette('@{base-primary}', 5));
  13. --@{ant-prefix}-primary-color-active: color(colorPalette('@{base-primary}', 7));
  14. --@{ant-prefix}-primary-color-outline: fade(@base-primary, @outline-fade);
  15. // Legacy
  16. @legacy-primary-1: color(colorPalette('@{base-primary}', 1));
  17. --@{ant-prefix}-primary-1: @legacy-primary-1;
  18. --@{ant-prefix}-primary-2: color(colorPalette('@{base-primary}', 2));
  19. --@{ant-prefix}-primary-3: color(colorPalette('@{base-primary}', 3));
  20. --@{ant-prefix}-primary-4: color(colorPalette('@{base-primary}', 4));
  21. --@{ant-prefix}-primary-5: color(colorPalette('@{base-primary}', 5));
  22. --@{ant-prefix}-primary-6: @base-primary;
  23. --@{ant-prefix}-primary-7: color(colorPalette('@{base-primary}', 7));
  24. // Deprecated
  25. --@{ant-prefix}-primary-color-deprecated-pure: ~'';
  26. --@{ant-prefix}-primary-color-deprecated-l-35: lighten(@base-primary, 35%);
  27. --@{ant-prefix}-primary-color-deprecated-l-20: lighten(@base-primary, 20%);
  28. --@{ant-prefix}-primary-color-deprecated-t-20: tint(@base-primary, 20%);
  29. --@{ant-prefix}-primary-color-deprecated-t-50: tint(@base-primary, 50%);
  30. --@{ant-prefix}-primary-color-deprecated-f-12: fade(@base-primary, 12%);
  31. --@{ant-prefix}-primary-color-active-deprecated-f-30: fade(@legacy-primary-1, 30%);
  32. --@{ant-prefix}-primary-color-active-deprecated-d-02: darken(@legacy-primary-1, 2%);
  33. // ========= Success Color =========
  34. --@{ant-prefix}-success-color: @green-6;
  35. --@{ant-prefix}-success-color-hover: color(colorPalette('@{green-6}', 5));
  36. --@{ant-prefix}-success-color-active: color(colorPalette('@{green-6}', 7));
  37. --@{ant-prefix}-success-color-outline: fade(@green-6, @outline-fade);
  38. --@{ant-prefix}-success-color-deprecated-bg: colorPalette('@{green-6}', 1);
  39. --@{ant-prefix}-success-color-deprecated-border: colorPalette('@{green-6}', 3);
  40. // ========== Error Color ==========
  41. --@{ant-prefix}-error-color: @red-5;
  42. --@{ant-prefix}-error-color-hover: color(colorPalette('@{red-5}', 5));
  43. --@{ant-prefix}-error-color-active: color(colorPalette('@{red-5}', 7));
  44. --@{ant-prefix}-error-color-outline: fade(@red-5, @outline-fade);
  45. --@{ant-prefix}-error-color-deprecated-bg: colorPalette('@{red-5}', 1);
  46. --@{ant-prefix}-error-color-deprecated-border: colorPalette('@{red-5}', 3);
  47. // ========= Warning Color =========
  48. --@{ant-prefix}-warning-color: @gold-6;
  49. --@{ant-prefix}-warning-color-hover: color(colorPalette('@{gold-6}', 5));
  50. --@{ant-prefix}-warning-color-active: color(colorPalette('@{gold-6}', 7));
  51. --@{ant-prefix}-warning-color-outline: fade(@gold-6, @outline-fade);
  52. --@{ant-prefix}-warning-color-deprecated-bg: colorPalette('@{gold-6}', 1);
  53. --@{ant-prefix}-warning-color-deprecated-border: colorPalette('@{gold-6}', 3);
  54. // ========== Info Color ===========
  55. --@{ant-prefix}-info-color: @base-primary;
  56. --@{ant-prefix}-info-color-deprecated-bg: colorPalette('@{base-primary}', 1);
  57. --@{ant-prefix}-info-color-deprecated-border: colorPalette('@{base-primary}', 3);
  58. }
  59. // -------- Colors -----------
  60. // >>> Primary
  61. @primary-color: ~'var(--@{ant-prefix}-primary-color)';
  62. @primary-color-hover: ~'var(--@{ant-prefix}-primary-color-hover)';
  63. @primary-color-active: ~'var(--@{ant-prefix}-primary-color-active)';
  64. @primary-color-outline: ~'var(--@{ant-prefix}-primary-color-outline)';
  65. @processing-color: @primary-color;
  66. // >>> Info
  67. @info-color: ~'var(--@{ant-prefix}-info-color)';
  68. @info-color-deprecated-bg: ~'var(--@{ant-prefix}-info-color-deprecated-bg)';
  69. @info-color-deprecated-border: ~'var(--@{ant-prefix}-info-color-deprecated-border)';
  70. // >>> Success
  71. @success-color: ~'var(--@{ant-prefix}-success-color)';
  72. @success-color-hover: ~'var(--@{ant-prefix}-success-color-hover)';
  73. @success-color-active: ~'var(--@{ant-prefix}-success-color-active)';
  74. @success-color-outline: ~'var(--@{ant-prefix}-success-color-outline)';
  75. @success-color-deprecated-bg: ~'var(--@{ant-prefix}-success-color-deprecated-bg)';
  76. @success-color-deprecated-border: ~'var(--@{ant-prefix}-success-color-deprecated-border)';
  77. // >>> Warning
  78. @warning-color: ~'var(--@{ant-prefix}-warning-color)';
  79. @warning-color-hover: ~'var(--@{ant-prefix}-warning-color-hover)';
  80. @warning-color-active: ~'var(--@{ant-prefix}-warning-color-active)';
  81. @warning-color-outline: ~'var(--@{ant-prefix}-warning-color-outline)';
  82. @warning-color-deprecated-bg: ~'var(--@{ant-prefix}-warning-color-deprecated-bg)';
  83. @warning-color-deprecated-border: ~'var(--@{ant-prefix}-warning-color-deprecated-border)';
  84. // >>> Error
  85. @error-color: ~'var(--@{ant-prefix}-error-color)';
  86. @error-color-hover: ~'var(--@{ant-prefix}-error-color-hover)';
  87. @error-color-active: ~'var(--@{ant-prefix}-error-color-active)';
  88. @error-color-outline: ~'var(--@{ant-prefix}-error-color-outline)';
  89. @error-color-deprecated-bg: ~'var(--@{ant-prefix}-error-color-deprecated-bg)';
  90. @error-color-deprecated-border: ~'var(--@{ant-prefix}-error-color-deprecated-border)';
  91. @highlight-color: @red-5;
  92. @normal-color: #d9d9d9;
  93. @white: #fff;
  94. @black: #000;
  95. // Color used by default to control hover and active backgrounds and for
  96. // alert info backgrounds.
  97. @primary-1: ~'var(--@{ant-prefix}-primary-1)'; // replace tint(@primary-color, 90%)
  98. @primary-2: ~'var(--@{ant-prefix}-primary-2)'; // replace tint(@primary-color, 80%)
  99. @primary-3: ~'var(--@{ant-prefix}-primary-3)'; // unused
  100. @primary-4: ~'var(--@{ant-prefix}-primary-4)'; // unused
  101. @primary-5: ~'var(--@{ant-prefix}-primary-5)'; // color used to control the text color in many active and hover states, replace tint(@primary-color, 20%)
  102. @primary-6: ~'var(--@{ant-prefix}-primary-6)'; // color used to control the text color of active buttons, don't use, use @primary-color
  103. @primary-7: ~'var(--@{ant-prefix}-primary-7)'; // replace shade(@primary-color, 5%)
  104. @primary-8: color(colorPalette('@{primary-color}', 8)); // unused
  105. @primary-9: color(colorPalette('@{primary-color}', 9)); // unused
  106. @primary-10: color(colorPalette('@{primary-color}', 10)); // unused
  107. // Base Scaffolding Variables
  108. // ---
  109. // Background color for `<body>`
  110. @body-background: #fff;
  111. // Base background color for most components
  112. @component-background: #fff;
  113. // Popover background color
  114. @popover-background: @component-background;
  115. @popover-customize-border-color: @border-color-split;
  116. @font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
  117. 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
  118. 'Noto Color Emoji';
  119. @code-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
  120. @text-color: fade(@black, 85%);
  121. @text-color-secondary: fade(@black, 45%);
  122. @text-color-inverse: @white;
  123. @icon-color: inherit;
  124. @icon-color-hover: fade(@black, 75%);
  125. @heading-color: fade(@black, 85%);
  126. @text-color-dark: fade(@white, 85%);
  127. @text-color-secondary-dark: fade(@white, 65%);
  128. @text-selection-bg: @primary-color;
  129. @font-variant-base: tabular-nums;
  130. @font-feature-settings-base: 'tnum';
  131. @font-size-base: 14px;
  132. @font-size-lg: @font-size-base + 2px;
  133. @font-size-sm: 12px;
  134. @heading-1-size: ceil(@font-size-base * 2.71);
  135. @heading-2-size: ceil(@font-size-base * 2.14);
  136. @heading-3-size: ceil(@font-size-base * 1.71);
  137. @heading-4-size: ceil(@font-size-base * 1.42);
  138. @heading-5-size: ceil(@font-size-base * 1.14);
  139. // https://github.com/ant-design/ant-design/issues/20210
  140. @line-height-base: 1.5715;
  141. @border-radius-base: 2px;
  142. @border-radius-sm: 2px;
  143. // control border
  144. @control-border-radius: @border-radius-base;
  145. // arrow border
  146. @arrow-border-radius: @border-radius-sm;
  147. // vertical paddings
  148. @padding-lg: 24px; // containers
  149. @padding-md: 16px; // small containers and buttons
  150. @padding-sm: 12px; // Form controls and items
  151. @padding-xs: 8px; // small items
  152. @padding-xss: 4px; // more small
  153. // vertical padding for all form controls
  154. @control-padding-horizontal: @padding-sm;
  155. @control-padding-horizontal-sm: @padding-xs;
  156. // vertical margins
  157. @margin-lg: 24px; // containers
  158. @margin-md: 16px; // small containers and buttons
  159. @margin-sm: 12px; // Form controls and items
  160. @margin-xs: 8px; // small items
  161. @margin-xss: 4px; // more small
  162. // height rules
  163. @height-base: 32px;
  164. @height-lg: 40px;
  165. @height-sm: 24px;
  166. // The background colors for active and hover states for things like
  167. // list items or table cells.
  168. @item-active-bg: @primary-1;
  169. @item-hover-bg: #f5f5f5;
  170. @fill-color: rgba(0, 0, 0, 0.15);
  171. // ICONFONT
  172. @iconfont-css-prefix: anticon;
  173. // LINK
  174. @link-color: @primary-color;
  175. @link-hover-color: @primary-color-hover;
  176. @link-active-color: @primary-color-active;
  177. @link-decoration: none;
  178. @link-hover-decoration: none;
  179. @link-focus-decoration: none;
  180. @link-focus-outline: 0;
  181. // Animation
  182. @ease-base-out: cubic-bezier(0.7, 0.3, 0.1, 1);
  183. @ease-base-in: cubic-bezier(0.9, 0, 0.3, 0.7);
  184. @ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
  185. @ease-in: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  186. @ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
  187. @ease-out-back: cubic-bezier(0.12, 0.4, 0.29, 1.46);
  188. @ease-in-back: cubic-bezier(0.71, -0.46, 0.88, 0.6);
  189. @ease-in-out-back: cubic-bezier(0.71, -0.46, 0.29, 1.46);
  190. @ease-out-circ: cubic-bezier(0.08, 0.82, 0.17, 1);
  191. @ease-in-circ: cubic-bezier(0.6, 0.04, 0.98, 0.34);
  192. @ease-in-out-circ: cubic-bezier(0.78, 0.14, 0.15, 0.86);
  193. @ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
  194. @ease-in-quint: cubic-bezier(0.755, 0.05, 0.855, 0.06);
  195. @ease-in-out-quint: cubic-bezier(0.86, 0, 0.07, 1);
  196. // Border color
  197. @border-color-base: hsv(0, 0, 85%); // base border outline a component
  198. @border-color-split: rgba(0, 0, 0, 0.06); // split border inside a component
  199. @border-color-inverse: @white;
  200. @border-width-base: 1px; // width of the border for a component
  201. @border-style-base: solid; // style of a components border
  202. // Outline
  203. @outline-blur-size: 0;
  204. @outline-width: 2px;
  205. @outline-color: @primary-color; // No use anymore
  206. @outline-fade: 20%;
  207. @background-color-light: hsv(0, 0, 98%); // background of header and selected item
  208. @background-color-base: hsv(0, 0, 96%); // Default grey background color
  209. // Disabled states
  210. @disabled-color: fade(#000, 25%);
  211. @disabled-bg: @background-color-base;
  212. @disabled-active-bg: tint(@black, 90%);
  213. @disabled-color-dark: fade(#fff, 35%);
  214. // Shadow
  215. @shadow-color: rgba(0, 0, 0, 0.15);
  216. @shadow-color-inverse: @component-background;
  217. @box-shadow-base: @shadow-2;
  218. @shadow-1-up: 0 -6px 16px -8px rgba(0, 0, 0, 0.08), 0 -9px 28px 0 rgba(0, 0, 0, 0.05),
  219. 0 -12px 48px 16px rgba(0, 0, 0, 0.03);
  220. @shadow-1-down: 0 6px 16px -8px rgba(0, 0, 0, 0.08), 0 9px 28px 0 rgba(0, 0, 0, 0.05),
  221. 0 12px 48px 16px rgba(0, 0, 0, 0.03);
  222. @shadow-1-left: -6px 0 16px -8px rgba(0, 0, 0, 0.08), -9px 0 28px 0 rgba(0, 0, 0, 0.05),
  223. -12px 0 48px 16px rgba(0, 0, 0, 0.03);
  224. @shadow-1-right: 6px 0 16px -8px rgba(0, 0, 0, 0.08), 9px 0 28px 0 rgba(0, 0, 0, 0.05),
  225. 12px 0 48px 16px rgba(0, 0, 0, 0.03);
  226. @shadow-2: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08),
  227. 0 9px 28px 8px rgba(0, 0, 0, 0.05);
  228. // Buttons
  229. @btn-font-weight: 400;
  230. @btn-border-radius-base: @border-radius-base;
  231. @btn-border-radius-sm: @border-radius-base;
  232. @btn-border-width: @border-width-base;
  233. @btn-border-style: @border-style-base;
  234. @btn-shadow: 0 2px 0 rgba(0, 0, 0, 0.015);
  235. @btn-primary-shadow: 0 2px 0 rgba(0, 0, 0, 0.045);
  236. @btn-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12);
  237. @btn-primary-color: #fff;
  238. @btn-primary-bg: @primary-color;
  239. @btn-default-color: @text-color;
  240. @btn-default-bg: @component-background;
  241. @btn-default-border: @border-color-base;
  242. @btn-danger-color: #fff;
  243. @btn-danger-bg: @error-color;
  244. @btn-danger-border: @error-color;
  245. @btn-disable-color: @disabled-color;
  246. @btn-disable-bg: @disabled-bg;
  247. @btn-disable-border: @border-color-base;
  248. @btn-default-ghost-color: @component-background;
  249. @btn-default-ghost-bg: transparent;
  250. @btn-default-ghost-border: @component-background;
  251. @btn-font-size-lg: @font-size-lg;
  252. @btn-font-size-sm: @font-size-base;
  253. @btn-padding-horizontal-base: @padding-md - 1px;
  254. @btn-padding-horizontal-lg: @btn-padding-horizontal-base;
  255. @btn-padding-horizontal-sm: @padding-xs - 1px;
  256. @btn-height-base: @height-base;
  257. @btn-height-lg: @height-lg;
  258. @btn-height-sm: @height-sm;
  259. @btn-line-height: @line-height-base;
  260. @btn-circle-size: @btn-height-base;
  261. @btn-circle-size-lg: @btn-height-lg;
  262. @btn-circle-size-sm: @btn-height-sm;
  263. @btn-square-size: @btn-height-base;
  264. @btn-square-size-lg: @btn-height-lg;
  265. @btn-square-size-sm: @btn-height-sm;
  266. @btn-square-only-icon-size: @font-size-base + 2px;
  267. @btn-square-only-icon-size-sm: @font-size-base;
  268. @btn-square-only-icon-size-lg: @btn-font-size-lg + 2px;
  269. @btn-group-border: @primary-5;
  270. @btn-link-hover-bg: transparent;
  271. @btn-text-hover-bg: rgba(0, 0, 0, 0.018);
  272. // Checkbox
  273. @checkbox-size: 16px;
  274. @checkbox-color: @primary-color;
  275. @checkbox-check-color: #fff;
  276. @checkbox-check-bg: @checkbox-check-color;
  277. @checkbox-border-width: @border-width-base;
  278. @checkbox-border-radius: @border-radius-sm;
  279. @checkbox-group-item-margin-right: 8px;
  280. // Descriptions
  281. @descriptions-bg: #fafafa;
  282. @descriptions-title-margin-bottom: 20px;
  283. @descriptions-default-padding: @padding-md @padding-lg;
  284. @descriptions-middle-padding: @padding-sm @padding-lg;
  285. @descriptions-small-padding: @padding-xs @padding-md;
  286. @descriptions-item-padding-bottom: @padding-md;
  287. @descriptions-item-trailing-colon: true;
  288. @descriptions-item-label-colon-margin-right: 8px;
  289. @descriptions-item-label-colon-margin-left: 2px;
  290. @descriptions-extra-color: @text-color;
  291. // Divider
  292. @divider-text-padding: 1em;
  293. @divider-orientation-margin: 5%;
  294. @divider-color: rgba(0, 0, 0, 6%);
  295. @divider-vertical-gutter: 8px;
  296. // Dropdown
  297. @dropdown-selected-color: @primary-color;
  298. @dropdown-menu-submenu-disabled-bg: @component-background;
  299. @dropdown-selected-bg: @item-active-bg;
  300. // Empty
  301. @empty-font-size: @font-size-base;
  302. // Radio
  303. @radio-size: 16px;
  304. @radio-top: 0.2em;
  305. @radio-border-width: 1px;
  306. @radio-dot-size: @radio-size - 8px;
  307. @radio-dot-color: @primary-color;
  308. @radio-dot-disabled-color: fade(@black, 20%);
  309. @radio-solid-checked-color: @component-background;
  310. // Radio buttons
  311. @radio-button-bg: @btn-default-bg;
  312. @radio-button-checked-bg: @btn-default-bg;
  313. @radio-button-color: @btn-default-color;
  314. @radio-button-hover-color: @primary-5;
  315. @radio-button-active-color: @primary-7;
  316. @radio-button-padding-horizontal: @padding-md - 1px;
  317. @radio-disabled-button-checked-bg: @disabled-active-bg;
  318. @radio-disabled-button-checked-color: @disabled-color;
  319. @radio-wrapper-margin-right: 8px;
  320. // Media queries breakpoints
  321. // @screen-xs and @screen-xs-min is not used in Grid
  322. // smallest break point is @screen-md
  323. @screen-xs: 480px;
  324. @screen-xs-min: @screen-xs;
  325. // 👆 Extra small screen / phone
  326. // 👇 Small screen / tablet
  327. @screen-sm: 576px;
  328. @screen-sm-min: @screen-sm;
  329. // Medium screen / desktop
  330. @screen-md: 768px;
  331. @screen-md-min: @screen-md;
  332. // Large screen / wide desktop
  333. @screen-lg: 992px;
  334. @screen-lg-min: @screen-lg;
  335. // Extra large screen / full hd
  336. @screen-xl: 1200px;
  337. @screen-xl-min: @screen-xl;
  338. // Extra extra large screen / large desktop
  339. @screen-xxl: 1600px;
  340. @screen-xxl-min: @screen-xxl;
  341. // provide a maximum
  342. @screen-xs-max: (@screen-sm-min - 1px);
  343. @screen-sm-max: (@screen-md-min - 1px);
  344. @screen-md-max: (@screen-lg-min - 1px);
  345. @screen-lg-max: (@screen-xl-min - 1px);
  346. @screen-xl-max: (@screen-xxl-min - 1px);
  347. // Grid system
  348. @grid-columns: 24;
  349. // Layout
  350. @layout-body-background: #f0f2f5;
  351. @layout-header-background: #001529;
  352. @layout-header-height: 64px;
  353. @layout-header-padding: 0 50px;
  354. @layout-header-color: @text-color;
  355. @layout-footer-padding: 24px 50px;
  356. @layout-footer-background: @layout-body-background;
  357. @layout-sider-background: @layout-header-background;
  358. @layout-trigger-height: 48px;
  359. @layout-trigger-background: #002140;
  360. @layout-trigger-color: #fff;
  361. @layout-zero-trigger-width: 36px;
  362. @layout-zero-trigger-height: 42px;
  363. // Layout light theme
  364. @layout-sider-background-light: #fff;
  365. @layout-trigger-background-light: #fff;
  366. @layout-trigger-color-light: @text-color;
  367. // z-index list, order by `z-index`
  368. @zindex-badge: auto;
  369. @zindex-table-fixed: 2;
  370. @zindex-affix: 10;
  371. @zindex-back-top: 10;
  372. @zindex-picker-panel: 10;
  373. @zindex-popup-close: 10;
  374. @zindex-modal: 1000;
  375. @zindex-modal-mask: 1000;
  376. @zindex-message: 1010;
  377. @zindex-notification: 1010;
  378. @zindex-popover: 1030;
  379. @zindex-dropdown: 1050;
  380. @zindex-picker: 1050;
  381. @zindex-popoconfirm: 1060;
  382. @zindex-tooltip: 1070;
  383. @zindex-image: 1080;
  384. // Animation
  385. @animation-duration-slow: 0.3s; // Modal
  386. @animation-duration-base: 0.2s;
  387. @animation-duration-fast: 0.1s; // Tooltip
  388. //CollapsePanel
  389. @collapse-panel-border-radius: @border-radius-base;
  390. //Dropdown
  391. @dropdown-menu-bg: @component-background;
  392. @dropdown-vertical-padding: 5px;
  393. @dropdown-edge-child-vertical-padding: 4px;
  394. @dropdown-font-size: @font-size-base;
  395. @dropdown-line-height: 22px;
  396. // Form
  397. // ---
  398. @label-required-color: @highlight-color;
  399. @label-color: @heading-color;
  400. @form-warning-input-bg: @input-bg;
  401. @form-item-margin-bottom: 24px;
  402. @form-item-trailing-colon: true;
  403. @form-vertical-label-padding: 0 0 8px;
  404. @form-vertical-label-margin: 0;
  405. @form-item-label-font-size: @font-size-base;
  406. @form-item-label-height: @input-height-base;
  407. @form-item-label-colon-margin-right: 8px;
  408. @form-item-label-colon-margin-left: 2px;
  409. @form-error-input-bg: @input-bg;
  410. // Input
  411. // ---
  412. @input-height-base: @height-base;
  413. @input-height-lg: @height-lg;
  414. @input-height-sm: @height-sm;
  415. @input-padding-horizontal: @control-padding-horizontal - 1px;
  416. @input-padding-horizontal-base: @input-padding-horizontal;
  417. @input-padding-horizontal-sm: @control-padding-horizontal-sm - 1px;
  418. @input-padding-horizontal-lg: @input-padding-horizontal;
  419. @input-padding-vertical-base: max(
  420. (round(((@input-height-base - @font-size-base * @line-height-base) / 2) * 10) / 10) -
  421. @border-width-base,
  422. 3px
  423. );
  424. @input-padding-vertical-sm: max(
  425. (round(((@input-height-sm - @font-size-base * @line-height-base) / 2) * 10) / 10) -
  426. @border-width-base,
  427. 0
  428. );
  429. @input-padding-vertical-lg: (
  430. ceil(((@input-height-lg - @font-size-lg * @line-height-base) / 2) * 10) / 10
  431. ) - @border-width-base;
  432. @input-placeholder-color: hsv(0, 0, 75%);
  433. @input-color: @text-color;
  434. @input-icon-color: @input-color;
  435. @input-border-color: @border-color-base;
  436. @input-bg: @component-background;
  437. @input-number-hover-border-color: @input-hover-border-color;
  438. @input-number-handler-active-bg: #f4f4f4;
  439. @input-number-handler-hover-bg: @primary-5;
  440. @input-number-handler-bg: @component-background;
  441. @input-number-handler-border-color: @border-color-base;
  442. @input-addon-bg: @background-color-light;
  443. @input-hover-border-color: @primary-5;
  444. @input-disabled-bg: @disabled-bg;
  445. @input-outline-offset: 0 0;
  446. @input-icon-hover-color: fade(@black, 85%);
  447. @input-disabled-color: @disabled-color;
  448. // Mentions
  449. // ---
  450. @mentions-dropdown-bg: @component-background;
  451. @mentions-dropdown-menu-item-hover-bg: @mentions-dropdown-bg;
  452. // Select
  453. // ---
  454. @select-border-color: @border-color-base;
  455. @select-item-selected-color: @text-color;
  456. @select-item-selected-font-weight: 600;
  457. @select-dropdown-bg: @component-background;
  458. @select-item-selected-bg: @primary-1;
  459. @select-item-active-bg: @item-hover-bg;
  460. @select-dropdown-vertical-padding: @dropdown-vertical-padding;
  461. @select-dropdown-font-size: @dropdown-font-size;
  462. @select-dropdown-line-height: @dropdown-line-height;
  463. @select-dropdown-height: 32px;
  464. @select-background: @component-background;
  465. @select-clear-background: @select-background;
  466. @select-selection-item-bg: @background-color-base;
  467. @select-selection-item-border-color: @border-color-split;
  468. @select-single-item-height-lg: 40px;
  469. @select-multiple-item-height: @input-height-base - @input-padding-vertical-base * 2; // Normal 24px
  470. @select-multiple-item-height-lg: 32px;
  471. @select-multiple-item-spacing-half: ceil((@input-padding-vertical-base / 2));
  472. @select-multiple-disabled-background: @input-disabled-bg;
  473. @select-multiple-item-disabled-color: #bfbfbf;
  474. @select-multiple-item-disabled-border-color: @select-border-color;
  475. // Cascader
  476. // ---
  477. @cascader-bg: @component-background;
  478. @cascader-item-selected-bg: @primary-1;
  479. @cascader-menu-bg: @component-background;
  480. @cascader-menu-border-color-split: @border-color-split;
  481. // Cascader
  482. // ----
  483. @cascader-dropdown-vertical-padding: @dropdown-vertical-padding;
  484. @cascader-dropdown-edge-child-vertical-padding: @dropdown-edge-child-vertical-padding;
  485. @cascader-dropdown-font-size: @dropdown-font-size;
  486. @cascader-dropdown-line-height: @dropdown-line-height;
  487. // Anchor
  488. // ---
  489. @anchor-bg: transparent;
  490. @anchor-border-color: @border-color-split;
  491. @anchor-link-top: 4px;
  492. @anchor-link-left: 16px;
  493. @anchor-link-padding: @anchor-link-top 0 @anchor-link-top @anchor-link-left;
  494. // Tooltip
  495. // ---
  496. // Tooltip max width
  497. @tooltip-max-width: 250px;
  498. // Tooltip text color
  499. @tooltip-color: #fff;
  500. // Tooltip background color
  501. @tooltip-bg: rgba(0, 0, 0, 0.75);
  502. // Tooltip arrow width
  503. @tooltip-arrow-width: 8px * sqrt(2);
  504. // Tooltip distance with trigger
  505. @tooltip-distance: @tooltip-arrow-width - 1px + 4px;
  506. // Tooltip arrow color
  507. @tooltip-arrow-color: @tooltip-bg;
  508. @tooltip-border-radius: @border-radius-base;
  509. // Popover
  510. // ---
  511. // Popover body background color
  512. @popover-bg: @component-background;
  513. // Popover text color
  514. @popover-color: @text-color;
  515. // Popover maximum width
  516. @popover-min-width: 177px;
  517. @popover-min-height: 32px;
  518. // Popover arrow width
  519. @popover-arrow-width: @tooltip-arrow-width;
  520. // Popover arrow color
  521. @popover-arrow-color: @popover-bg;
  522. // Popover outer arrow width
  523. // Popover outer arrow color
  524. @popover-arrow-outer-color: @popover-bg;
  525. // Popover distance with trigger
  526. @popover-distance: @popover-arrow-width + 4px;
  527. @popover-padding-horizontal: @padding-md;
  528. // Modal
  529. // --
  530. @modal-header-padding-vertical: @padding-md;
  531. @modal-header-padding-horizontal: @padding-lg;
  532. @modal-body-padding: @padding-lg;
  533. @modal-header-bg: @component-background;
  534. @modal-header-padding: @modal-header-padding-vertical @modal-header-padding-horizontal;
  535. @modal-header-border-width: @border-width-base;
  536. @modal-header-border-style: @border-style-base;
  537. @modal-header-title-line-height: 22px;
  538. @modal-header-title-font-size: @font-size-lg;
  539. @modal-header-border-color-split: @border-color-split;
  540. @modal-header-close-size: @modal-header-title-line-height + 2 * @modal-header-padding-vertical;
  541. @modal-content-bg: @component-background;
  542. @modal-heading-color: @heading-color;
  543. @modal-close-color: @text-color-secondary;
  544. @modal-footer-bg: transparent;
  545. @modal-footer-border-color-split: @border-color-split;
  546. @modal-footer-border-style: @border-style-base;
  547. @modal-footer-padding-vertical: 10px;
  548. @modal-footer-padding-horizontal: 16px;
  549. @modal-footer-border-width: @border-width-base;
  550. @modal-mask-bg: fade(@black, 45%);
  551. @modal-confirm-body-padding: 32px 32px 24px;
  552. @modal-confirm-title-font-size: @font-size-lg;
  553. @modal-border-radius: @border-radius-base;
  554. // Progress
  555. // --
  556. @progress-default-color: @processing-color;
  557. @progress-remaining-color: rgba(0, 0, 0, 0.04);
  558. @progress-info-text-color: @progress-text-color;
  559. @progress-radius: 100px;
  560. @progress-steps-item-bg: #f3f3f3;
  561. @progress-text-font-size: 1em;
  562. @progress-text-color: @text-color; // This is for circle text color, should be renamed better
  563. @progress-circle-text-font-size: 1em;
  564. // Menu
  565. // ---
  566. @menu-inline-toplevel-item-height: 40px;
  567. @menu-item-height: 40px;
  568. @menu-item-group-height: @line-height-base;
  569. @menu-collapsed-width: 80px;
  570. @menu-bg: @component-background;
  571. @menu-popup-bg: @component-background;
  572. @menu-item-color: @text-color;
  573. @menu-inline-submenu-bg: @background-color-light;
  574. @menu-highlight-color: @primary-color;
  575. @menu-highlight-danger-color: @error-color;
  576. @menu-item-active-bg: @primary-1;
  577. @menu-item-active-danger-bg: @red-1;
  578. @menu-item-active-border-width: 3px;
  579. @menu-item-group-title-color: @text-color-secondary;
  580. @menu-item-vertical-margin: 4px;
  581. @menu-item-font-size: @font-size-base;
  582. @menu-item-boundary-margin: 8px;
  583. @menu-item-padding-horizontal: 20px;
  584. @menu-item-padding: 0 @menu-item-padding-horizontal;
  585. @menu-horizontal-line-height: 46px;
  586. @menu-icon-margin-right: 10px;
  587. @menu-icon-size: @menu-item-font-size;
  588. @menu-icon-size-lg: @font-size-lg;
  589. @menu-item-group-title-font-size: @menu-item-font-size;
  590. // dark theme
  591. @menu-dark-color: @text-color-secondary-dark;
  592. @menu-dark-danger-color: @error-color;
  593. @menu-dark-bg: @layout-header-background;
  594. @menu-dark-arrow-color: #fff;
  595. @menu-dark-inline-submenu-bg: #000c17;
  596. @menu-dark-highlight-color: #fff;
  597. @menu-dark-item-active-bg: @primary-color;
  598. @menu-dark-item-active-danger-bg: @error-color;
  599. @menu-dark-selected-item-icon-color: @white;
  600. @menu-dark-selected-item-text-color: @white;
  601. @menu-dark-item-hover-bg: transparent;
  602. // Spin
  603. // ---
  604. @spin-dot-size-sm: 14px;
  605. @spin-dot-size: 20px;
  606. @spin-dot-size-lg: 32px;
  607. // Splitter
  608. // ---
  609. @splitter-split-bar-size: 2px;
  610. @splitter-split-trigger-size: 6px;
  611. @splitter-split-bar-draggable-size: 20px;
  612. @splitter-split-bar-collapsible-size: 24px;
  613. @splitter-resize-spinner-size: 20px;
  614. @splitter-bar-bg: rgba(0, 0, 0, 0.04);
  615. @splitter-bar-hover-bg: #e6f4ff;
  616. @splitter-bar-active-bg: #bae0ff;
  617. // Table
  618. // --
  619. @table-bg: @component-background;
  620. @table-header-bg: @background-color-light;
  621. @table-header-color: @heading-color;
  622. @table-header-sort-bg: @background-color-base;
  623. @table-body-sort-bg: #fafafa;
  624. @table-row-hover-bg: @background-color-light;
  625. @table-selected-row-color: inherit;
  626. @table-selected-row-bg: @primary-1;
  627. @table-body-selected-sort-bg: @table-selected-row-bg;
  628. @table-selected-row-hover-bg: ~'var(--@{ant-prefix}-primary-color-active-deprecated-d-02)';
  629. @table-expanded-row-bg: #fbfbfb;
  630. @table-padding-vertical: 16px;
  631. @table-padding-horizontal: 16px;
  632. @table-padding-vertical-md: (@table-padding-vertical * 3 / 4);
  633. @table-padding-horizontal-md: (@table-padding-horizontal / 2);
  634. @table-padding-vertical-sm: (@table-padding-vertical / 2);
  635. @table-padding-horizontal-sm: (@table-padding-horizontal / 2);
  636. @table-border-color: @border-color-split;
  637. @table-border-radius-base: @border-radius-base;
  638. @table-footer-bg: @background-color-light;
  639. @table-footer-color: @heading-color;
  640. @table-header-bg-sm: @table-header-bg;
  641. @table-font-size: @font-size-base;
  642. @table-font-size-md: @table-font-size;
  643. @table-font-size-sm: @table-font-size;
  644. @table-header-cell-split-color: rgba(0, 0, 0, 0.06);
  645. // Sorter
  646. // Legacy: `table-header-sort-active-bg` is used for hover not real active
  647. @table-header-sort-active-bg: rgba(0, 0, 0, 0.04);
  648. @table-fixed-header-sort-active-bg: hsv(0, 0, 96%);
  649. // Filter
  650. @table-header-filter-active-bg: rgba(0, 0, 0, 0.04);
  651. @table-filter-btns-bg: inherit;
  652. @table-filter-dropdown-bg: @component-background;
  653. @table-expand-icon-bg: @component-background;
  654. @table-selection-column-width: 32px;
  655. // Sticky
  656. @table-sticky-scroll-bar-bg: fade(#000, 35%);
  657. @table-sticky-scroll-bar-radius: 4px;
  658. // Tag
  659. // --
  660. @tag-border-radius: @border-radius-base;
  661. @tag-default-bg: @background-color-light;
  662. @tag-default-color: @text-color;
  663. @tag-font-size: @font-size-sm;
  664. @tag-line-height: 20px;
  665. // TimePicker
  666. // ---
  667. @picker-bg: @component-background;
  668. @picker-basic-cell-hover-color: @item-hover-bg;
  669. @picker-basic-cell-active-with-range-color: @primary-1;
  670. @picker-basic-cell-hover-with-range-color: ~'var(--@{ant-prefix}-primary-color-deprecated-l-35)';
  671. @picker-basic-cell-disabled-bg: rgba(0, 0, 0, 0.04);
  672. @picker-border-color: @border-color-split;
  673. @picker-date-hover-range-border-color: ~'var(--@{ant-prefix}-primary-color-deprecated-l-20)';
  674. @picker-date-hover-range-color: @picker-basic-cell-hover-with-range-color;
  675. @picker-time-panel-column-width: 56px;
  676. @picker-time-panel-column-height: 224px;
  677. @picker-time-panel-cell-height: 28px;
  678. @picker-panel-cell-height: 24px;
  679. @picker-panel-cell-width: 36px;
  680. @picker-text-height: 40px;
  681. @picker-panel-without-time-cell-height: 66px;
  682. // Calendar
  683. // ---
  684. @calendar-bg: @component-background;
  685. @calendar-input-bg: @input-bg;
  686. @calendar-border-color: @border-color-inverse;
  687. @calendar-item-active-bg: @item-active-bg;
  688. @calendar-column-active-bg: ~'var(--@{ant-prefix}-primary-color-active-deprecated-f-30)';
  689. @calendar-full-bg: @calendar-bg;
  690. @calendar-full-panel-bg: @calendar-full-bg;
  691. // Carousel
  692. // ---
  693. @carousel-dot-width: 16px;
  694. @carousel-dot-height: 3px;
  695. @carousel-dot-active-width: 24px;
  696. // Badge
  697. // ---
  698. @badge-height: 20px;
  699. @badge-height-sm: 14px;
  700. @badge-dot-size: 6px;
  701. @badge-font-size: @font-size-sm;
  702. @badge-font-size-sm: @font-size-sm;
  703. @badge-font-weight: normal;
  704. @badge-status-size: 6px;
  705. @badge-text-color: @component-background;
  706. @badge-color: @highlight-color;
  707. // Rate
  708. // ---
  709. @rate-star-color: @yellow-6;
  710. @rate-star-bg: @border-color-split;
  711. @rate-star-size: 20px;
  712. @rate-star-hover-scale: scale(1.1);
  713. // Card
  714. // ---
  715. @card-head-color: @heading-color;
  716. @card-head-background: transparent;
  717. @card-head-font-size: @font-size-lg;
  718. @card-head-font-size-sm: @font-size-base;
  719. @card-head-padding: 16px;
  720. @card-head-padding-sm: (@card-head-padding / 2);
  721. @card-head-height: 48px;
  722. @card-head-height-sm: 36px;
  723. @card-inner-head-padding: 12px;
  724. @card-padding-base: 24px;
  725. @card-padding-base-sm: (@card-padding-base / 2);
  726. @card-actions-background: @component-background;
  727. @card-actions-li-margin: 12px 0;
  728. @card-skeleton-bg: #cfd8dc;
  729. @card-background: @component-background;
  730. @card-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12),
  731. 0 5px 12px 4px rgba(0, 0, 0, 0.09);
  732. @card-radius: @border-radius-base;
  733. @card-head-tabs-margin-bottom: -17px;
  734. @card-head-extra-color: @text-color;
  735. // Comment
  736. // ---
  737. @comment-bg: inherit;
  738. @comment-padding-base: @padding-md 0;
  739. @comment-nest-indent: 44px;
  740. @comment-font-size-base: @font-size-base;
  741. @comment-font-size-sm: @font-size-sm;
  742. @comment-author-name-color: @text-color-secondary;
  743. @comment-author-time-color: #ccc;
  744. @comment-action-color: @text-color-secondary;
  745. @comment-action-hover-color: #595959;
  746. @comment-actions-margin-bottom: inherit;
  747. @comment-actions-margin-top: @margin-sm;
  748. @comment-content-detail-p-margin-bottom: inherit;
  749. // Tabs
  750. // ---
  751. @tabs-card-head-background: @background-color-light;
  752. @tabs-card-height: 40px;
  753. @tabs-card-active-color: @primary-color;
  754. @tabs-card-horizontal-padding: (
  755. (@tabs-card-height - floor(@font-size-base * @line-height-base)) / 2
  756. ) - @border-width-base @padding-md;
  757. @tabs-card-horizontal-padding-sm: 6px @padding-md;
  758. @tabs-card-horizontal-padding-lg: 7px @padding-md 6px;
  759. @tabs-title-font-size: @font-size-base;
  760. @tabs-title-font-size-lg: @font-size-lg;
  761. @tabs-title-font-size-sm: @font-size-base;
  762. @tabs-ink-bar-color: @primary-color;
  763. @tabs-bar-margin: 0 0 @margin-md 0;
  764. @tabs-horizontal-gutter: 32px;
  765. @tabs-horizontal-margin: 0 0 0 @tabs-horizontal-gutter;
  766. @tabs-horizontal-margin-rtl: 0 0 0 32px;
  767. @tabs-horizontal-padding: @padding-sm 0;
  768. @tabs-horizontal-padding-lg: @padding-md 0;
  769. @tabs-horizontal-padding-sm: @padding-xs 0;
  770. @tabs-vertical-padding: @padding-xs @padding-lg;
  771. @tabs-vertical-margin: @margin-md 0 0 0;
  772. @tabs-scrolling-size: 32px;
  773. @tabs-highlight-color: @primary-color;
  774. @tabs-hover-color: @primary-5;
  775. @tabs-active-color: @primary-7;
  776. @tabs-card-gutter: 2px;
  777. @tabs-card-tab-active-border-top: 2px solid transparent;
  778. // BackTop
  779. // ---
  780. @back-top-color: #fff;
  781. @back-top-bg: @text-color-secondary;
  782. @back-top-hover-bg: @text-color;
  783. // Avatar
  784. // ---
  785. @avatar-size-base: 32px;
  786. @avatar-size-lg: 40px;
  787. @avatar-size-sm: 24px;
  788. @avatar-font-size-base: 18px;
  789. @avatar-font-size-lg: 24px;
  790. @avatar-font-size-sm: 14px;
  791. @avatar-bg: #ccc;
  792. @avatar-color: #fff;
  793. @avatar-border-radius: @border-radius-base;
  794. @avatar-group-overlapping: -8px;
  795. @avatar-group-space: 3px;
  796. @avatar-group-border-color: #fff;
  797. // Switch
  798. // ---
  799. @switch-height: 22px;
  800. @switch-sm-height: 16px;
  801. @switch-min-width: 44px;
  802. @switch-sm-min-width: 28px;
  803. @switch-disabled-opacity: 0.4;
  804. @switch-color: @primary-color;
  805. @switch-bg: @component-background;
  806. @switch-shadow-color: fade(#00230b, 20%);
  807. @switch-padding: 2px;
  808. @switch-inner-margin-min: ceil(@switch-height * 0.3);
  809. @switch-inner-margin-max: ceil(@switch-height * 1.1);
  810. @switch-sm-inner-margin-min: ceil(@switch-sm-height * 0.3);
  811. @switch-sm-inner-margin-max: ceil(@switch-sm-height * 1.1);
  812. // Pagination
  813. // ---
  814. @pagination-item-bg: @component-background;
  815. @pagination-item-size: @height-base;
  816. @pagination-item-size-sm: 24px;
  817. @pagination-font-family: @font-family;
  818. @pagination-font-weight-active: 500;
  819. @pagination-item-bg-active: @component-background;
  820. @pagination-item-link-bg: @component-background;
  821. @pagination-item-disabled-color-active: @disabled-color;
  822. @pagination-item-disabled-bg-active: @disabled-active-bg;
  823. @pagination-item-input-bg: @component-background;
  824. @pagination-mini-options-size-changer-top: 0px;
  825. // PageHeader
  826. // ---
  827. @page-header-padding: @padding-lg;
  828. @page-header-padding-vertical: @padding-md;
  829. @page-header-padding-breadcrumb: @padding-sm;
  830. @page-header-content-padding-vertical: @padding-sm;
  831. @page-header-back-color: #000;
  832. @page-header-ghost-bg: inherit;
  833. @page-header-heading-title: @heading-4-size;
  834. @page-header-heading-sub-title: 14px;
  835. @page-header-tabs-tab-font-size: 16px;
  836. // Breadcrumb
  837. // ---
  838. @breadcrumb-base-color: @text-color-secondary;
  839. @breadcrumb-last-item-color: @text-color;
  840. @breadcrumb-font-size: @font-size-base;
  841. @breadcrumb-icon-font-size: @font-size-base;
  842. @breadcrumb-link-color: @text-color-secondary;
  843. @breadcrumb-link-color-hover: @text-color;
  844. @breadcrumb-separator-color: @text-color-secondary;
  845. @breadcrumb-separator-margin: 0 @padding-xs;
  846. // Slider
  847. // ---
  848. @slider-margin: 10px 6px 10px;
  849. @slider-rail-background-color: @background-color-base;
  850. @slider-rail-background-color-hover: #e1e1e1;
  851. @slider-track-background-color: @primary-3;
  852. @slider-track-background-color-hover: @primary-4;
  853. @slider-handle-border-width: 2px;
  854. @slider-handle-background-color: @component-background;
  855. @slider-handle-color: @primary-3;
  856. @slider-handle-color-hover: @primary-4;
  857. @slider-handle-color-focus: ~'var(--@{ant-prefix}-primary-color-deprecated-t-20)';
  858. @slider-handle-color-focus-shadow: ~'var(--@{ant-prefix}-primary-color-deprecated-f-12)';
  859. @slider-handle-color-tooltip-open: @primary-color;
  860. @slider-handle-size: 14px;
  861. @slider-handle-margin-top: -5px;
  862. @slider-handle-margin-left: -5px;
  863. @slider-handle-shadow: 0;
  864. @slider-dot-border-color: @border-color-split;
  865. @slider-dot-border-color-active: ~'var(--@{ant-prefix}-primary-color-deprecated-t-50)';
  866. @slider-disabled-color: @disabled-color;
  867. @slider-disabled-background-color: @component-background;
  868. // Tree
  869. // ---
  870. @tree-bg: @component-background;
  871. @tree-title-height: 24px;
  872. @tree-child-padding: 18px;
  873. @tree-directory-selected-color: #fff;
  874. @tree-directory-selected-bg: @primary-color;
  875. @tree-node-hover-bg: @item-hover-bg;
  876. @tree-node-selected-bg: @primary-2;
  877. // Collapse
  878. // ---
  879. @collapse-header-padding: @padding-sm @padding-md;
  880. @collapse-header-padding-extra: 40px;
  881. @collapse-header-bg: @background-color-light;
  882. @collapse-content-padding: @padding-md;
  883. @collapse-content-bg: @component-background;
  884. @collapse-header-arrow-left: 16px;
  885. // Skeleton
  886. // ---
  887. @skeleton-color: rgba(190, 190, 190, 0.2);
  888. @skeleton-to-color: shade(@skeleton-color, 5%);
  889. @skeleton-paragraph-margin-top: 28px;
  890. @skeleton-paragraph-li-margin-top: @margin-md;
  891. @skeleton-paragraph-li-height: 16px;
  892. @skeleton-title-height: 16px;
  893. @skeleton-title-paragraph-margin-top: @margin-lg;
  894. // Transfer
  895. // ---
  896. @transfer-header-height: 40px;
  897. @transfer-item-height: @height-base;
  898. @transfer-disabled-bg: @disabled-bg;
  899. @transfer-list-height: 200px;
  900. @transfer-item-hover-bg: @item-hover-bg;
  901. @transfer-item-selected-hover-bg: ~'var(--@{ant-prefix}-primary-color-active-deprecated-d-02)';
  902. @transfer-item-padding-vertical: 6px;
  903. @transfer-list-search-icon-top: 12px;
  904. // Message
  905. // ---
  906. @message-notice-content-padding: 10px 16px;
  907. @message-notice-content-bg: @component-background;
  908. // Motion
  909. // ---
  910. @wave-animation-width: 6px;
  911. // Alert
  912. // ---
  913. @alert-success-border-color: @success-color-deprecated-border;
  914. @alert-success-bg-color: @success-color-deprecated-bg;
  915. @alert-success-icon-color: @success-color;
  916. @alert-info-border-color: @info-color-deprecated-border;
  917. @alert-info-bg-color: @info-color-deprecated-bg;
  918. @alert-info-icon-color: @info-color;
  919. @alert-warning-border-color: @warning-color-deprecated-border;
  920. @alert-warning-bg-color: @warning-color-deprecated-bg;
  921. @alert-warning-icon-color: @warning-color;
  922. @alert-error-border-color: @error-color-deprecated-border;
  923. @alert-error-bg-color: @error-color-deprecated-bg;
  924. @alert-error-icon-color: @error-color;
  925. @alert-message-color: @heading-color;
  926. @alert-text-color: @text-color;
  927. @alert-close-color: @text-color-secondary;
  928. @alert-close-hover-color: @icon-color-hover;
  929. @alert-padding-vertical: @padding-xs;
  930. @alert-padding-horizontal: @padding-md - 1px;
  931. @alert-no-icon-padding-vertical: @padding-xs;
  932. @alert-with-description-no-icon-padding-vertical: @padding-md - 1px;
  933. @alert-with-description-padding-vertical: @padding-md - 1px;
  934. @alert-with-description-padding: @alert-with-description-padding-vertical 15px
  935. @alert-with-description-no-icon-padding-vertical @alert-with-description-icon-size;
  936. @alert-icon-top: 8px + @font-size-base * (@line-height-base / 2) - (@font-size-base / 2);
  937. @alert-with-description-icon-size: 24px;
  938. // List
  939. // ---
  940. @list-header-background: transparent;
  941. @list-footer-background: transparent;
  942. @list-empty-text-padding: @padding-md;
  943. @list-item-padding: @padding-sm 0;
  944. @list-item-padding-sm: @padding-xs @padding-md;
  945. @list-item-padding-lg: 16px 24px;
  946. @list-item-meta-margin-bottom: @padding-md;
  947. @list-item-meta-avatar-margin-right: @padding-md;
  948. @list-item-meta-title-margin-bottom: @padding-sm;
  949. @list-customize-card-bg: @component-background;
  950. @list-item-meta-description-font-size: @font-size-base;
  951. // Statistic
  952. // ---
  953. @statistic-title-font-size: @font-size-base;
  954. @statistic-content-font-size: 24px;
  955. @statistic-unit-font-size: 24px;
  956. @statistic-font-family: @font-family;
  957. // Drawer
  958. // ---
  959. @drawer-header-padding: @padding-md @padding-lg;
  960. @drawer-body-padding: @padding-lg;
  961. @drawer-bg: @component-background;
  962. @drawer-footer-padding-vertical: @modal-footer-padding-vertical;
  963. @drawer-footer-padding-horizontal: @modal-footer-padding-horizontal;
  964. @drawer-header-close-size: 56px;
  965. @drawer-title-font-size: @font-size-lg;
  966. @drawer-title-line-height: 22px;
  967. // Timeline
  968. // ---
  969. @timeline-width: 2px;
  970. @timeline-color: @border-color-split;
  971. @timeline-dot-border-width: 2px;
  972. @timeline-dot-color: @primary-color;
  973. @timeline-dot-bg: @component-background;
  974. @timeline-item-padding-bottom: 20px;
  975. // Typography
  976. // ---
  977. @typography-title-font-weight: 600;
  978. @typography-title-margin-top: 1.2em;
  979. @typography-title-margin-bottom: 0.5em;
  980. // Upload
  981. // ---
  982. @upload-actions-color: @text-color-secondary;
  983. // Steps
  984. // ---
  985. @process-tail-color: @border-color-split;
  986. @steps-nav-arrow-color: fade(@black, 25%);
  987. @steps-background: @component-background;
  988. @steps-icon-size: 32px;
  989. @steps-icon-custom-size: @steps-icon-size;
  990. @steps-icon-custom-top: 0px;
  991. @steps-icon-custom-font-size: 24px;
  992. @steps-icon-top: -0.5px;
  993. @steps-icon-font-size: @font-size-lg;
  994. @steps-icon-margin: 0 8px 0 0;
  995. @steps-title-line-height: @height-base;
  996. @steps-small-icon-size: 24px;
  997. @steps-small-icon-margin: 0 8px 0 0;
  998. @steps-dot-size: 8px;
  999. @steps-dot-top: 2px;
  1000. @steps-current-dot-size: 10px;
  1001. @steps-description-max-width: 140px;
  1002. @steps-nav-content-max-width: auto;
  1003. @steps-vertical-icon-width: 16px;
  1004. @steps-vertical-tail-width: 16px;
  1005. @steps-vertical-tail-width-sm: 12px;
  1006. // Notification
  1007. // ---
  1008. @notification-bg: @component-background;
  1009. @notification-padding-vertical: 16px;
  1010. @notification-padding-horizontal: 24px;
  1011. // Result
  1012. // ---
  1013. @result-title-font-size: 24px;
  1014. @result-subtitle-font-size: @font-size-base;
  1015. @result-icon-font-size: 72px;
  1016. @result-extra-margin: 24px 0 0 0;
  1017. // Image
  1018. // ---
  1019. @image-size-base: 48px;
  1020. @image-font-size-base: 24px;
  1021. @image-bg: #f5f5f5;
  1022. @image-color: #fff;
  1023. @image-mask-font-size: 16px;
  1024. @image-preview-operation-size: 18px;
  1025. @image-preview-operation-color: @text-color-dark;
  1026. @image-preview-operation-disabled-color: fade(@image-preview-operation-color, 25%);
  1027. // Segmented
  1028. // ---
  1029. @segmented-bg: fade(@black, 4%);
  1030. @segmented-hover-bg: fade(@black, 6%);
  1031. @segmented-selected-bg: @white;
  1032. @segmented-label-color: fade(@black, 65%);
  1033. @segmented-label-hover-color: #262626;