dark.less 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449
  1. @import './default.less';
  2. @theme: dark;
  3. // color palettes
  4. @blue-1: mix(color(~`colorPalette('@{blue-base}', 8) `), @component-background, 15%);
  5. @blue-2: mix(color(~`colorPalette('@{blue-base}', 7) `), @component-background, 25%);
  6. @blue-3: mix(@blue-base, @component-background, 30%);
  7. @blue-4: mix(@blue-base, @component-background, 45%);
  8. @blue-5: mix(@blue-base, @component-background, 65%);
  9. @blue-6: mix(@blue-base, @component-background, 85%);
  10. @blue-7: mix(color(~`colorPalette('@{blue-base}', 5) `), @component-background, 90%);
  11. @blue-8: mix(color(~`colorPalette('@{blue-base}', 4) `), @component-background, 95%);
  12. @blue-9: mix(color(~`colorPalette('@{blue-base}', 3) `), @component-background, 97%);
  13. @blue-10: mix(color(~`colorPalette('@{blue-base}', 2) `), @component-background, 98%);
  14. @purple-1: mix(color(~`colorPalette('@{purple-base}', 8) `), @component-background, 15%);
  15. @purple-2: mix(color(~`colorPalette('@{purple-base}', 7) `), @component-background, 25%);
  16. @purple-3: mix(@purple-base, @component-background, 30%);
  17. @purple-4: mix(@purple-base, @component-background, 45%);
  18. @purple-5: mix(@purple-base, @component-background, 65%);
  19. @purple-6: mix(@purple-base, @component-background, 85%);
  20. @purple-7: mix(color(~`colorPalette('@{purple-base}', 5) `), @component-background, 90%);
  21. @purple-8: mix(color(~`colorPalette('@{purple-base}', 4) `), @component-background, 95%);
  22. @purple-9: mix(color(~`colorPalette('@{purple-base}', 3) `), @component-background, 97%);
  23. @purple-10: mix(color(~`colorPalette('@{purple-base}', 2) `), @component-background, 98%);
  24. @cyan-1: mix(color(~`colorPalette('@{cyan-base}', 8) `), @component-background, 15%);
  25. @cyan-2: mix(color(~`colorPalette('@{cyan-base}', 7) `), @component-background, 25%);
  26. @cyan-3: mix(@cyan-base, @component-background, 30%);
  27. @cyan-4: mix(@cyan-base, @component-background, 45%);
  28. @cyan-5: mix(@cyan-base, @component-background, 65%);
  29. @cyan-6: mix(@cyan-base, @component-background, 85%);
  30. @cyan-7: mix(color(~`colorPalette('@{cyan-base}', 5) `), @component-background, 90%);
  31. @cyan-8: mix(color(~`colorPalette('@{cyan-base}', 4) `), @component-background, 95%);
  32. @cyan-9: mix(color(~`colorPalette('@{cyan-base}', 3) `), @component-background, 97%);
  33. @cyan-10: mix(color(~`colorPalette('@{cyan-base}', 2) `), @component-background, 98%);
  34. @green-1: mix(color(~`colorPalette('@{green-base}', 8) `), @component-background, 15%);
  35. @green-2: mix(color(~`colorPalette('@{green-base}', 7) `), @component-background, 25%);
  36. @green-3: mix(@green-base, @component-background, 30%);
  37. @green-4: mix(@green-base, @component-background, 45%);
  38. @green-5: mix(@green-base, @component-background, 65%);
  39. @green-6: mix(@green-base, @component-background, 85%);
  40. @green-7: mix(color(~`colorPalette('@{green-base}', 5) `), @component-background, 90%);
  41. @green-8: mix(color(~`colorPalette('@{green-base}', 4) `), @component-background, 95%);
  42. @green-9: mix(color(~`colorPalette('@{green-base}', 3) `), @component-background, 97%);
  43. @green-10: mix(color(~`colorPalette('@{green-base}', 2) `), @component-background, 98%);
  44. @magenta-1: mix(color(~`colorPalette('@{magenta-base}', 8) `), @component-background, 15%);
  45. @magenta-2: mix(color(~`colorPalette('@{magenta-base}', 7) `), @component-background, 25%);
  46. @magenta-3: mix(@magenta-base, @component-background, 30%);
  47. @magenta-4: mix(@magenta-base, @component-background, 45%);
  48. @magenta-5: mix(@magenta-base, @component-background, 65%);
  49. @magenta-6: mix(@magenta-base, @component-background, 85%);
  50. @magenta-7: mix(color(~`colorPalette('@{magenta-base}', 5) `), @component-background, 90%);
  51. @magenta-8: mix(color(~`colorPalette('@{magenta-base}', 4) `), @component-background, 95%);
  52. @magenta-9: mix(color(~`colorPalette('@{magenta-base}', 3) `), @component-background, 97%);
  53. @magenta-10: mix(color(~`colorPalette('@{magenta-base}', 2) `), @component-background, 98%);
  54. @pink-1: mix(color(~`colorPalette('@{pink-base}', 8) `), @component-background, 15%);
  55. @pink-2: mix(color(~`colorPalette('@{pink-base}', 7) `), @component-background, 25%);
  56. @pink-3: mix(@pink-base, @component-background, 30%);
  57. @pink-4: mix(@pink-base, @component-background, 45%);
  58. @pink-5: mix(@pink-base, @component-background, 65%);
  59. @pink-6: mix(@pink-base, @component-background, 85%);
  60. @pink-7: mix(color(~`colorPalette('@{pink-base}', 5) `), @component-background, 90%);
  61. @pink-8: mix(color(~`colorPalette('@{pink-base}', 4) `), @component-background, 95%);
  62. @pink-9: mix(color(~`colorPalette('@{pink-base}', 3) `), @component-background, 97%);
  63. @pink-10: mix(color(~`colorPalette('@{pink-base}', 2) `), @component-background, 98%);
  64. @red-1: mix(color(~`colorPalette('@{red-base}', 8) `), @component-background, 15%);
  65. @red-2: mix(color(~`colorPalette('@{red-base}', 7) `), @component-background, 25%);
  66. @red-3: mix(@red-base, @component-background, 30%);
  67. @red-4: mix(@red-base, @component-background, 45%);
  68. @red-5: mix(@red-base, @component-background, 65%);
  69. @red-6: mix(@red-base, @component-background, 85%);
  70. @red-7: mix(color(~`colorPalette('@{red-base}', 5) `), @component-background, 90%);
  71. @red-8: mix(color(~`colorPalette('@{red-base}', 4) `), @component-background, 95%);
  72. @red-9: mix(color(~`colorPalette('@{red-base}', 3) `), @component-background, 97%);
  73. @red-10: mix(color(~`colorPalette('@{red-base}', 2) `), @component-background, 98%);
  74. @orange-1: mix(color(~`colorPalette('@{orange-base}', 8) `), @component-background, 15%);
  75. @orange-2: mix(color(~`colorPalette('@{orange-base}', 7) `), @component-background, 25%);
  76. @orange-3: mix(@orange-base, @component-background, 30%);
  77. @orange-4: mix(@orange-base, @component-background, 45%);
  78. @orange-5: mix(@orange-base, @component-background, 65%);
  79. @orange-6: mix(@orange-base, @component-background, 85%);
  80. @orange-7: mix(color(~`colorPalette('@{orange-base}', 5) `), @component-background, 90%);
  81. @orange-8: mix(color(~`colorPalette('@{orange-base}', 4) `), @component-background, 95%);
  82. @orange-9: mix(color(~`colorPalette('@{orange-base}', 3) `), @component-background, 97%);
  83. @orange-10: mix(color(~`colorPalette('@{orange-base}', 2) `), @component-background, 98%);
  84. @yellow-1: mix(color(~`colorPalette('@{yellow-base}', 8) `), @component-background, 15%);
  85. @yellow-2: mix(color(~`colorPalette('@{yellow-base}', 7) `), @component-background, 25%);
  86. @yellow-3: mix(@yellow-base, @component-background, 30%);
  87. @yellow-4: mix(@yellow-base, @component-background, 45%);
  88. @yellow-5: mix(@yellow-base, @component-background, 65%);
  89. @yellow-6: mix(@yellow-base, @component-background, 85%);
  90. @yellow-7: mix(color(~`colorPalette('@{yellow-base}', 5) `), @component-background, 90%);
  91. @yellow-8: mix(color(~`colorPalette('@{yellow-base}', 4) `), @component-background, 95%);
  92. @yellow-9: mix(color(~`colorPalette('@{yellow-base}', 3) `), @component-background, 97%);
  93. @yellow-10: mix(color(~`colorPalette('@{yellow-base}', 2) `), @component-background, 98%);
  94. @volcano-1: mix(color(~`colorPalette('@{volcano-base}', 8) `), @component-background, 15%);
  95. @volcano-2: mix(color(~`colorPalette('@{volcano-base}', 7) `), @component-background, 25%);
  96. @volcano-3: mix(@volcano-base, @component-background, 30%);
  97. @volcano-4: mix(@volcano-base, @component-background, 45%);
  98. @volcano-5: mix(@volcano-base, @component-background, 65%);
  99. @volcano-6: mix(@volcano-base, @component-background, 85%);
  100. @volcano-7: mix(color(~`colorPalette('@{volcano-base}', 5) `), @component-background, 90%);
  101. @volcano-8: mix(color(~`colorPalette('@{volcano-base}', 4) `), @component-background, 95%);
  102. @volcano-9: mix(color(~`colorPalette('@{volcano-base}', 3) `), @component-background, 97%);
  103. @volcano-10: mix(color(~`colorPalette('@{volcano-base}', 2) `), @component-background, 98%);
  104. @geekblue-1: mix(color(~`colorPalette('@{geekblue-base}', 8) `), @component-background, 15%);
  105. @geekblue-2: mix(color(~`colorPalette('@{geekblue-base}', 7) `), @component-background, 25%);
  106. @geekblue-3: mix(@geekblue-base, @component-background, 30%);
  107. @geekblue-4: mix(@geekblue-base, @component-background, 45%);
  108. @geekblue-5: mix(@geekblue-base, @component-background, 65%);
  109. @geekblue-6: mix(@geekblue-base, @component-background, 85%);
  110. @geekblue-7: mix(color(~`colorPalette('@{geekblue-base}', 5) `), @component-background, 90%);
  111. @geekblue-8: mix(color(~`colorPalette('@{geekblue-base}', 4) `), @component-background, 95%);
  112. @geekblue-9: mix(color(~`colorPalette('@{geekblue-base}', 3) `), @component-background, 97%);
  113. @geekblue-10: mix(color(~`colorPalette('@{geekblue-base}', 2) `), @component-background, 98%);
  114. @lime-1: mix(color(~`colorPalette('@{lime-base}', 8) `), @component-background, 15%);
  115. @lime-2: mix(color(~`colorPalette('@{lime-base}', 7) `), @component-background, 25%);
  116. @lime-3: mix(@lime-base, @component-background, 30%);
  117. @lime-4: mix(@lime-base, @component-background, 45%);
  118. @lime-5: mix(@lime-base, @component-background, 65%);
  119. @lime-6: mix(@lime-base, @component-background, 85%);
  120. @lime-7: mix(color(~`colorPalette('@{lime-base}', 5) `), @component-background, 90%);
  121. @lime-8: mix(color(~`colorPalette('@{lime-base}', 4) `), @component-background, 95%);
  122. @lime-9: mix(color(~`colorPalette('@{lime-base}', 3) `), @component-background, 97%);
  123. @lime-10: mix(color(~`colorPalette('@{lime-base}', 2) `), @component-background, 98%);
  124. @gold-1: mix(color(~`colorPalette('@{gold-base}', 8) `), @component-background, 15%);
  125. @gold-2: mix(color(~`colorPalette('@{gold-base}', 7) `), @component-background, 25%);
  126. @gold-3: mix(@gold-base, @component-background, 30%);
  127. @gold-4: mix(@gold-base, @component-background, 45%);
  128. @gold-5: mix(@gold-base, @component-background, 65%);
  129. @gold-6: mix(@gold-base, @component-background, 85%);
  130. @gold-7: mix(color(~`colorPalette('@{gold-base}', 5) `), @component-background, 90%);
  131. @gold-8: mix(color(~`colorPalette('@{gold-base}', 4) `), @component-background, 95%);
  132. @gold-9: mix(color(~`colorPalette('@{gold-base}', 3) `), @component-background, 97%);
  133. @gold-10: mix(color(~`colorPalette('@{gold-base}', 2) `), @component-background, 98%);
  134. // Color used by default to control hover and active backgrounds and for
  135. // alert info backgrounds.
  136. @primary-1: mix(color(~`colorPalette('@{primary-color}', 8) `), @component-background, 15%);
  137. @primary-2: mix(color(~`colorPalette('@{primary-color}', 7) `), @component-background, 25%);
  138. @primary-3: mix(@primary-color, @component-background, 30%);
  139. @primary-4: mix(@primary-color, @component-background, 45%);
  140. @primary-5: mix(@primary-color, @component-background, 65%);
  141. @primary-6: @primary-color;
  142. @primary-7: mix(color(~`colorPalette('@{primary-color}', 5) `), @component-background, 90%);
  143. @primary-8: mix(color(~`colorPalette('@{primary-color}', 4) `), @component-background, 95%);
  144. @primary-9: mix(color(~`colorPalette('@{primary-color}', 3) `), @component-background, 97%);
  145. @primary-10: mix(color(~`colorPalette('@{primary-color}', 2) `), @component-background, 98%);
  146. // Layer background
  147. @popover-background: #1f1f1f;
  148. @popover-customize-border-color: #3a3a3a;
  149. @body-background: @black;
  150. @component-background: #141414;
  151. @text-color: fade(@white, 85%);
  152. @text-color-secondary: fade(@white, 45%);
  153. @text-color-inverse: @white;
  154. @icon-color-hover: fade(@white, 75%);
  155. @heading-color: fade(@white, 85%);
  156. // The background colors for active and hover states for things like
  157. // list items or table cells.
  158. @item-active-bg: @primary-1;
  159. @item-hover-bg: fade(@white, 8%);
  160. // Border color
  161. @border-color-base: #434343; // base border outline a component
  162. @border-color-split: #303030; // split border inside a component
  163. @background-color-light: fade(@white, 4%); // background of header and selected item
  164. @background-color-base: fade(@white, 8%); // Default grey background color
  165. // Disabled states
  166. @disabled-color: fade(@white, 30%);
  167. @disabled-bg: @background-color-base;
  168. @disabled-color-dark: fade(@white, 30%);
  169. // Tree
  170. // ---
  171. @tree-bg: transparent;
  172. // List
  173. // ---
  174. @list-customize-card-bg: transparent;
  175. // Shadow
  176. // ---
  177. @shadow-color: rgba(0, 0, 0, 0.45);
  178. @shadow-color-inverse: @component-background;
  179. @box-shadow-base: @shadow-2;
  180. @shadow-1-up: 0 -6px 16px -8px rgba(0, 0, 0, 0.32), 0 -9px 28px 0 rgba(0, 0, 0, 0.2),
  181. 0 -12px 48px 16px rgba(0, 0, 0, 0.12);
  182. @shadow-1-down: 0 6px 16px -8px rgba(0, 0, 0, 0.32), 0 9px 28px 0 rgba(0, 0, 0, 0.2),
  183. 0 12px 48px 16px rgba(0, 0, 0, 0.12);
  184. @shadow-1-right: 6px 0 16px -8px rgba(0, 0, 0, 0.32), 9px 0 28px 0 rgba(0, 0, 0, 0.2),
  185. 12px 0 48px 16px rgba(0, 0, 0, 0.12);
  186. @shadow-2: 0 3px 6px -4px rgba(0, 0, 0, 0.48), 0 6px 16px 0 rgba(0, 0, 0, 0.32),
  187. 0 9px 28px 8px rgba(0, 0, 0, 0.2);
  188. // Buttons
  189. // ---
  190. @btn-shadow: 0 2px 0 rgba(0, 0, 0, 0.015);
  191. @btn-primary-shadow: 0 2px 0 rgba(0, 0, 0, 0.045);
  192. @btn-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12);
  193. @btn-default-bg: transparent;
  194. @btn-default-ghost-color: @text-color;
  195. @btn-default-ghost-border: fade(@white, 25%);
  196. @btn-text-hover-bg: rgba(255, 255, 255, 0.03);
  197. // Checkbox
  198. // ---
  199. @checkbox-check-bg: transparent;
  200. // Descriptions
  201. // ---
  202. @descriptions-bg: @background-color-light;
  203. // Divider
  204. // ---
  205. @divider-color: rgba(255, 255, 255, 12%);
  206. // Modal
  207. // ---
  208. @modal-header-bg: @popover-background;
  209. @modal-header-border-color-split: @border-color-split;
  210. @modal-content-bg: @popover-background;
  211. @modal-footer-border-color-split: @border-color-split;
  212. // Radio
  213. // ---
  214. @radio-solid-checked-color: @white;
  215. @radio-dot-disabled-color: fade(@white, 20%);
  216. // Radio buttons
  217. // ---
  218. @radio-disabled-button-checked-bg: fade(@white, 20%);
  219. @radio-disabled-button-checked-color: @disabled-color;
  220. // Layout
  221. // ---
  222. @layout-body-background: @body-background;
  223. @layout-header-background: @popover-background;
  224. @layout-trigger-background: #262626;
  225. // Input
  226. // ---
  227. @input-bg: transparent;
  228. @input-placeholder-color: fade(@white, 30%);
  229. @input-icon-color: fade(@white, 30%);
  230. @input-number-handler-active-bg: @item-hover-bg;
  231. @input-icon-hover-color: fade(@white, 85%);
  232. // Select
  233. // ---
  234. @select-background: transparent;
  235. @select-dropdown-bg: @popover-background;
  236. @select-clear-background: @component-background;
  237. @select-selection-item-bg: fade(@white, 8);
  238. @select-selection-item-border-color: @border-color-split;
  239. @select-multiple-disabled-background: @component-background;
  240. @select-multiple-item-disabled-color: #595959;
  241. @select-multiple-item-disabled-border-color: @popover-background;
  242. // Cascader
  243. // ---
  244. @cascader-bg: transparent;
  245. @cascader-menu-bg: @popover-background;
  246. @cascader-menu-border-color-split: @border-color-split;
  247. // Tooltip
  248. // ---
  249. // Tooltip background color
  250. @tooltip-bg: #434343;
  251. // Menu
  252. // ---
  253. // dark theme
  254. @menu-dark-inline-submenu-bg: @component-background;
  255. @menu-dark-bg: @popover-background;
  256. @menu-popup-bg: @popover-background;
  257. // Message
  258. // ---
  259. @message-notice-content-bg: @popover-background;
  260. // Notification
  261. @notification-bg: @popover-background;
  262. // LINK
  263. @link-hover-color: @primary-5;
  264. @link-active-color: @primary-7;
  265. // Table
  266. // --
  267. @table-header-bg: #1d1d1d;
  268. @table-body-sort-bg: fade(@white, 1%);
  269. @table-row-hover-bg: #262626;
  270. @table-header-cell-split-color: fade(@white, 8%);
  271. @table-header-sort-bg: #262626;
  272. @table-header-filter-active-bg: #434343;
  273. @table-header-sort-active-bg: #303030;
  274. @table-fixed-header-sort-active-bg: #222;
  275. @table-filter-btns-bg: @popover-background;
  276. @table-expanded-row-bg: @table-header-bg;
  277. @table-filter-dropdown-bg: @popover-background;
  278. @table-expand-icon-bg: transparent;
  279. // Tag
  280. // ---
  281. @info-color-deprecated-bg: @primary-1;
  282. @info-color-deprecated-border: @primary-3;
  283. @success-color-deprecated-bg: @green-1;
  284. @success-color-deprecated-border: @green-3;
  285. @warning-color-deprecated-bg: @orange-1;
  286. @warning-color-deprecated-border: @orange-3;
  287. @error-color-deprecated-bg: @red-1;
  288. @error-color-deprecated-border: @red-3;
  289. // TimePicker
  290. // ---
  291. @picker-basic-cell-hover-with-range-color: darken(@primary-color, 35%);
  292. @picker-basic-cell-disabled-bg: #303030;
  293. @picker-border-color: @border-color-split;
  294. @picker-bg: transparent;
  295. @picker-date-hover-range-border-color: darken(@primary-color, 20%);
  296. // Dropdown
  297. // ---
  298. @dropdown-menu-bg: @popover-background;
  299. @dropdown-menu-submenu-disabled-bg: transparent;
  300. // Steps
  301. // ---
  302. @steps-nav-arrow-color: fade(@white, 20%);
  303. @steps-background: transparent;
  304. // Avatar
  305. // ---
  306. @avatar-bg: fade(@white, 30%);
  307. // Progress
  308. // ---
  309. @progress-steps-item-bg: fade(@white, 8%);
  310. // Calendar
  311. // ---
  312. @calendar-bg: @popover-background;
  313. @calendar-input-bg: @calendar-bg;
  314. @calendar-border-color: transparent;
  315. @calendar-full-bg: @component-background;
  316. // Badge
  317. // ---
  318. @badge-text-color: @white;
  319. // Popover
  320. @popover-bg: @popover-background;
  321. // Drawer
  322. @drawer-bg: @popover-background;
  323. // Card
  324. // ---
  325. @card-actions-background: @component-background;
  326. @card-skeleton-bg: #303030;
  327. @card-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.64), 0 3px 6px 0 rgba(0, 0, 0, 0.48),
  328. 0 5px 12px 4px rgba(0, 0, 0, 0.36);
  329. // Transfer
  330. // ---
  331. @transfer-item-hover-bg: #262626;
  332. // Comment
  333. // ---
  334. @comment-bg: transparent;
  335. @comment-author-time-color: fade(@white, 30%);
  336. @comment-action-hover-color: fade(@white, 65%);
  337. // Rate
  338. // ---
  339. @rate-star-bg: fade(@white, 12%);
  340. // Switch
  341. // ---
  342. @switch-bg: @white;
  343. // Pagination
  344. // ---
  345. @pagination-item-bg: transparent;
  346. @pagination-item-bg-active: transparent;
  347. @pagination-item-link-bg: transparent;
  348. @pagination-item-disabled-bg-active: fade(@white, 25%);
  349. @pagination-item-disabled-color-active: @black;
  350. @pagination-item-input-bg: @pagination-item-bg;
  351. // PageHeader
  352. // ---
  353. @page-header-back-color: @icon-color;
  354. @page-header-ghost-bg: transparent;
  355. // Slider
  356. // ---
  357. @slider-rail-background-color: #262626;
  358. @slider-rail-background-color-hover: @border-color-base;
  359. @slider-dot-border-color: @border-color-split;
  360. @slider-dot-border-color-active: @primary-4;
  361. // Skeleton
  362. // ---
  363. @skeleton-to-color: fade(@white, 16%);
  364. // Alert
  365. // ---
  366. @alert-success-border-color: @green-3;
  367. @alert-success-bg-color: @green-1;
  368. @alert-success-icon-color: @success-color;
  369. @alert-info-border-color: @primary-3;
  370. @alert-info-bg-color: @primary-1;
  371. @alert-info-icon-color: @info-color;
  372. @alert-warning-border-color: @gold-3;
  373. @alert-warning-bg-color: @gold-1;
  374. @alert-warning-icon-color: @warning-color;
  375. @alert-error-border-color: @red-3;
  376. @alert-error-bg-color: @red-1;
  377. @alert-error-icon-color: @error-color;
  378. // Timeline
  379. // ---
  380. @timeline-color: @border-color-split;
  381. @timeline-dot-color: @primary-color;
  382. // Mentions
  383. // ---
  384. @mentions-dropdown-bg: @popover-background;