variable.less 38 KB

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