@tuya-sat/micro-dev-loader 2.2.6 → 2.2.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1418 @@
1
+ /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
2
+ @import '../color/colors';
3
+
4
+ @theme: variable;
5
+
6
+ // The prefix to use on all css classes from ant.
7
+ @ant-prefix: ant;
8
+
9
+ // An override for the html selector for theme prefixes
10
+ @html-selector: html;
11
+
12
+ html {
13
+ @base-primary: @blue-6;
14
+
15
+ // ========= Primary Color =========
16
+ --@{ant-prefix}-primary-color: @base-primary;
17
+ --@{ant-prefix}-primary-color-hover: color(~`colorPalette('@{base-primary}', 5) `);
18
+ --@{ant-prefix}-primary-color-active: color(~`colorPalette('@{base-primary}', 7) `);
19
+ --@{ant-prefix}-primary-color-outline: fade(@base-primary, @outline-fade);
20
+
21
+ // Legacy
22
+ @legacy-primary-1: color(~`colorPalette('@{base-primary}', 1) `);
23
+
24
+ --@{ant-prefix}-primary-1: @legacy-primary-1;
25
+ --@{ant-prefix}-primary-2: color(~`colorPalette('@{base-primary}', 2) `);
26
+ --@{ant-prefix}-primary-3: color(~`colorPalette('@{base-primary}', 3) `);
27
+ --@{ant-prefix}-primary-4: color(~`colorPalette('@{base-primary}', 4) `);
28
+ --@{ant-prefix}-primary-5: color(~`colorPalette('@{base-primary}', 5) `);
29
+ --@{ant-prefix}-primary-6: @base-primary;
30
+ --@{ant-prefix}-primary-7: color(~`colorPalette('@{base-primary}', 7) `);
31
+
32
+ // Deprecated
33
+ --@{ant-prefix}-primary-color-deprecated-pure: ~'';
34
+ --@{ant-prefix}-primary-color-deprecated-l-35: lighten(@base-primary, 35%);
35
+ --@{ant-prefix}-primary-color-deprecated-l-20: lighten(@base-primary, 20%);
36
+ --@{ant-prefix}-primary-color-deprecated-t-20: tint(@base-primary, 20%);
37
+ --@{ant-prefix}-primary-color-deprecated-t-50: tint(@base-primary, 50%);
38
+ --@{ant-prefix}-primary-color-deprecated-f-12: fade(@base-primary, 12%);
39
+ --@{ant-prefix}-primary-color-active-deprecated-f-30: fade(@legacy-primary-1, 30%);
40
+ --@{ant-prefix}-primary-color-active-deprecated-d-02: darken(@legacy-primary-1, 2%);
41
+
42
+ // ========= Success Color =========
43
+ --@{ant-prefix}-success-color: @green-6;
44
+ --@{ant-prefix}-success-color-hover: color(~`colorPalette('@{green-6}', 5) `);
45
+ --@{ant-prefix}-success-color-active: color(~`colorPalette('@{green-6}', 7) `);
46
+ --@{ant-prefix}-success-color-outline: fade(@green-6, @outline-fade);
47
+ --@{ant-prefix}-success-color-deprecated-bg: ~`colorPalette('@{green-6}', 1) `;
48
+ --@{ant-prefix}-success-color-deprecated-border: ~`colorPalette('@{green-6}', 3) `;
49
+
50
+ // ========== Error Color ==========
51
+ --@{ant-prefix}-error-color: @red-5;
52
+ --@{ant-prefix}-error-color-hover: color(~`colorPalette('@{red-5}', 5) `);
53
+ --@{ant-prefix}-error-color-active: color(~`colorPalette('@{red-5}', 7) `);
54
+ --@{ant-prefix}-error-color-outline: fade(@red-5, @outline-fade);
55
+ --@{ant-prefix}-error-color-deprecated-bg: ~`colorPalette('@{red-5}', 1) `;
56
+ --@{ant-prefix}-error-color-deprecated-border: ~`colorPalette('@{red-5}', 3) `;
57
+
58
+ // ========= Warning Color =========
59
+ --@{ant-prefix}-warning-color: @gold-6;
60
+ --@{ant-prefix}-warning-color-hover: color(~`colorPalette('@{gold-6}', 5) `);
61
+ --@{ant-prefix}-warning-color-active: color(~`colorPalette('@{gold-6}', 7) `);
62
+ --@{ant-prefix}-warning-color-outline: fade(@gold-6, @outline-fade);
63
+ --@{ant-prefix}-warning-color-deprecated-bg: ~`colorPalette('@{gold-6}', 1) `;
64
+ --@{ant-prefix}-warning-color-deprecated-border: ~`colorPalette('@{gold-6}', 3) `;
65
+
66
+ // ========== Info Color ===========
67
+ --@{ant-prefix}-info-color: @base-primary;
68
+ --@{ant-prefix}-info-color-deprecated-bg: ~`colorPalette('@{base-primary}', 1) `;
69
+ --@{ant-prefix}-info-color-deprecated-border: ~`colorPalette('@{base-primary}', 3) `;
70
+ }
71
+
72
+ // -------- Colors -----------
73
+ // >>> Primary
74
+ @primary-color: ~'var(--@{ant-prefix}-primary-color)';
75
+ @primary-color-hover: ~'var(--@{ant-prefix}-primary-color-hover)';
76
+ @primary-color-active: ~'var(--@{ant-prefix}-primary-color-active)';
77
+ @primary-color-outline: ~'var(--@{ant-prefix}-primary-color-outline)';
78
+
79
+ @processing-color: @primary-color;
80
+
81
+ // >>> Info
82
+ @info-color: ~'var(--@{ant-prefix}-info-color)';
83
+ @info-color-deprecated-bg: ~'var(--@{ant-prefix}-info-color-deprecated-bg)';
84
+ @info-color-deprecated-border: ~'var(--@{ant-prefix}-info-color-deprecated-border)';
85
+
86
+ // >>> Success
87
+ @success-color: ~'var(--@{ant-prefix}-success-color)';
88
+ @success-color-hover: ~'var(--@{ant-prefix}-success-color-hover)';
89
+ @success-color-active: ~'var(--@{ant-prefix}-success-color-active)';
90
+ @success-color-outline: ~'var(--@{ant-prefix}-success-color-outline)';
91
+ @success-color-deprecated-bg: ~'var(--@{ant-prefix}-success-color-deprecated-bg)';
92
+ @success-color-deprecated-border: ~'var(--@{ant-prefix}-success-color-deprecated-border)';
93
+
94
+ // >>> Warning
95
+ @warning-color: ~'var(--@{ant-prefix}-warning-color)';
96
+ @warning-color-hover: ~'var(--@{ant-prefix}-warning-color-hover)';
97
+ @warning-color-active: ~'var(--@{ant-prefix}-warning-color-active)';
98
+ @warning-color-outline: ~'var(--@{ant-prefix}-warning-color-outline)';
99
+ @warning-color-deprecated-bg: ~'var(--@{ant-prefix}-warning-color-deprecated-bg)';
100
+ @warning-color-deprecated-border: ~'var(--@{ant-prefix}-warning-color-deprecated-border)';
101
+
102
+ // >>> Error
103
+ @error-color: ~'var(--@{ant-prefix}-error-color)';
104
+ @error-color-hover: ~'var(--@{ant-prefix}-error-color-hover)';
105
+ @error-color-active: ~'var(--@{ant-prefix}-error-color-active)';
106
+ @error-color-outline: ~'var(--@{ant-prefix}-error-color-outline)';
107
+ @error-color-deprecated-bg: ~'var(--@{ant-prefix}-error-color-deprecated-bg)';
108
+ @error-color-deprecated-border: ~'var(--@{ant-prefix}-error-color-deprecated-border)';
109
+
110
+ @highlight-color: @red-5;
111
+ @normal-color: #d9d9d9;
112
+ @white: #fff;
113
+ @black: #000;
114
+
115
+ // Color used by default to control hover and active backgrounds and for
116
+ // alert info backgrounds.
117
+ @primary-1: ~'var(--@{ant-prefix}-primary-1)'; // replace tint(@primary-color, 90%)
118
+ @primary-2: ~'var(--@{ant-prefix}-primary-2)'; // replace tint(@primary-color, 80%)
119
+ @primary-3: ~'var(--@{ant-prefix}-primary-3)'; // unused
120
+ @primary-4: ~'var(--@{ant-prefix}-primary-4)'; // unused
121
+ @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%)
122
+ @primary-6: ~'var(--@{ant-prefix}-primary-6)'; // color used to control the text color of active buttons, don't use, use @primary-color
123
+ @primary-7: ~'var(--@{ant-prefix}-primary-7)'; // replace shade(@primary-color, 5%)
124
+ @primary-8: color(~`colorPalette('@{primary-color}', 8) `); // unused
125
+ @primary-9: color(~`colorPalette('@{primary-color}', 9) `); // unused
126
+ @primary-10: color(~`colorPalette('@{primary-color}', 10) `); // unused
127
+
128
+ // Base Scaffolding Variables
129
+ // ---
130
+
131
+ // Background color for `<body>`
132
+ @body-background: #fff;
133
+ // Base background color for most components
134
+ @component-background: #fff;
135
+ // Popover background color
136
+ @popover-background: @component-background;
137
+ @popover-customize-border-color: @border-color-split;
138
+ @font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
139
+ 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
140
+ 'Noto Color Emoji';
141
+ @code-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
142
+ @text-color: fade(@black, 85%);
143
+ @text-color-secondary: fade(@black, 45%);
144
+ @text-color-inverse: @white;
145
+ @icon-color: inherit;
146
+ @icon-color-hover: fade(@black, 75%);
147
+ @heading-color: fade(@black, 85%);
148
+ @text-color-dark: fade(@white, 85%);
149
+ @text-color-secondary-dark: fade(@white, 65%);
150
+ @text-selection-bg: @primary-color;
151
+ @font-variant-base: tabular-nums;
152
+ @font-feature-settings-base: 'tnum';
153
+ @font-size-base: 14px;
154
+ @font-size-lg: @font-size-base + 2px;
155
+ @font-size-sm: 12px;
156
+ @heading-1-size: ceil(@font-size-base * 2.71);
157
+ @heading-2-size: ceil(@font-size-base * 2.14);
158
+ @heading-3-size: ceil(@font-size-base * 1.71);
159
+ @heading-4-size: ceil(@font-size-base * 1.42);
160
+ @heading-5-size: ceil(@font-size-base * 1.14);
161
+ // https://github.com/ant-design/ant-design/issues/20210
162
+ @line-height-base: 1.5715;
163
+ @border-radius-base: 2px;
164
+ @border-radius-sm: @border-radius-base;
165
+
166
+ // control border
167
+ @control-border-radius: @border-radius-base;
168
+
169
+ // arrow border
170
+ @arrow-border-radius: @border-radius-sm;
171
+
172
+ // vertical paddings
173
+ @padding-lg: 24px; // containers
174
+ @padding-md: 16px; // small containers and buttons
175
+ @padding-sm: 12px; // Form controls and items
176
+ @padding-xs: 8px; // small items
177
+ @padding-xss: 4px; // more small
178
+
179
+ // vertical padding for all form controls
180
+ @control-padding-horizontal: @padding-sm;
181
+ @control-padding-horizontal-sm: @padding-xs;
182
+
183
+ // vertical margins
184
+ @margin-lg: 24px; // containers
185
+ @margin-md: 16px; // small containers and buttons
186
+ @margin-sm: 12px; // Form controls and items
187
+ @margin-xs: 8px; // small items
188
+ @margin-xss: 4px; // more small
189
+
190
+ // height rules
191
+ @height-base: 32px;
192
+ @height-lg: 40px;
193
+ @height-sm: 24px;
194
+
195
+ // The background colors for active and hover states for things like
196
+ // list items or table cells.
197
+ @item-active-bg: @primary-1;
198
+ @item-hover-bg: #f5f5f5;
199
+
200
+ // ICONFONT
201
+ @iconfont-css-prefix: anticon;
202
+
203
+ // LINK
204
+ @link-color: @primary-color;
205
+ @link-hover-color: @primary-color-hover;
206
+ @link-active-color: @primary-color-active;
207
+ @link-decoration: none;
208
+ @link-hover-decoration: none;
209
+ @link-focus-decoration: none;
210
+ @link-focus-outline: 0;
211
+
212
+ // Animation
213
+ @ease-base-out: cubic-bezier(0.7, 0.3, 0.1, 1);
214
+ @ease-base-in: cubic-bezier(0.9, 0, 0.3, 0.7);
215
+ @ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
216
+ @ease-in: cubic-bezier(0.55, 0.055, 0.675, 0.19);
217
+ @ease-in-out: cubic-bezier(0.645, 0.045, 0.355, 1);
218
+ @ease-out-back: cubic-bezier(0.12, 0.4, 0.29, 1.46);
219
+ @ease-in-back: cubic-bezier(0.71, -0.46, 0.88, 0.6);
220
+ @ease-in-out-back: cubic-bezier(0.71, -0.46, 0.29, 1.46);
221
+ @ease-out-circ: cubic-bezier(0.08, 0.82, 0.17, 1);
222
+ @ease-in-circ: cubic-bezier(0.6, 0.04, 0.98, 0.34);
223
+ @ease-in-out-circ: cubic-bezier(0.78, 0.14, 0.15, 0.86);
224
+ @ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
225
+ @ease-in-quint: cubic-bezier(0.755, 0.05, 0.855, 0.06);
226
+ @ease-in-out-quint: cubic-bezier(0.86, 0, 0.07, 1);
227
+
228
+ // Border color
229
+ @border-color-base: hsv(0, 0, 85%); // base border outline a component
230
+ @border-color-split: rgba(0, 0, 0, 0.06); // split border inside a component
231
+ @border-color-inverse: @white;
232
+ @border-width-base: 1px; // width of the border for a component
233
+ @border-style-base: solid; // style of a components border
234
+
235
+ // Outline
236
+ @outline-blur-size: 0;
237
+ @outline-width: 2px;
238
+ @outline-color: @primary-color; // No use anymore
239
+ @outline-fade: 20%;
240
+
241
+ @background-color-light: hsv(0, 0, 98%); // background of header and selected item
242
+ @background-color-base: hsv(0, 0, 96%); // Default grey background color
243
+
244
+ // Disabled states
245
+ @disabled-color: fade(#000, 25%);
246
+ @disabled-bg: @background-color-base;
247
+ @disabled-active-bg: tint(@black, 90%);
248
+ @disabled-color-dark: fade(#fff, 35%);
249
+
250
+ // Shadow
251
+ @shadow-color: rgba(0, 0, 0, 0.15);
252
+ @shadow-color-inverse: @component-background;
253
+ @box-shadow-base: @shadow-2;
254
+ @shadow-1-up: 0 -6px 16px -8px rgba(0, 0, 0, 0.08), 0 -9px 28px 0 rgba(0, 0, 0, 0.05),
255
+ 0 -12px 48px 16px rgba(0, 0, 0, 0.03);
256
+ @shadow-1-down: 0 6px 16px -8px rgba(0, 0, 0, 0.08), 0 9px 28px 0 rgba(0, 0, 0, 0.05),
257
+ 0 12px 48px 16px rgba(0, 0, 0, 0.03);
258
+ @shadow-1-left: -6px 0 16px -8px rgba(0, 0, 0, 0.08), -9px 0 28px 0 rgba(0, 0, 0, 0.05),
259
+ -12px 0 48px 16px rgba(0, 0, 0, 0.03);
260
+ @shadow-1-right: 6px 0 16px -8px rgba(0, 0, 0, 0.08), 9px 0 28px 0 rgba(0, 0, 0, 0.05),
261
+ 12px 0 48px 16px rgba(0, 0, 0, 0.03);
262
+ @shadow-2: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08),
263
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05);
264
+
265
+ // Buttons
266
+ @btn-font-weight: 400;
267
+ @btn-border-radius-base: @border-radius-base;
268
+ @btn-border-radius-sm: @border-radius-base;
269
+ @btn-border-width: @border-width-base;
270
+ @btn-border-style: @border-style-base;
271
+ @btn-shadow: 0 2px 0 rgba(0, 0, 0, 0.015);
272
+ @btn-primary-shadow: 0 2px 0 rgba(0, 0, 0, 0.045);
273
+ @btn-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12);
274
+
275
+ @btn-primary-color: #fff;
276
+ @btn-primary-bg: @primary-color;
277
+
278
+ @btn-default-color: @text-color;
279
+ @btn-default-bg: @component-background;
280
+ @btn-default-border: @border-color-base;
281
+
282
+ @btn-danger-color: #fff;
283
+ @btn-danger-bg: @error-color;
284
+ @btn-danger-border: @error-color;
285
+
286
+ @btn-disable-color: @disabled-color;
287
+ @btn-disable-bg: @disabled-bg;
288
+ @btn-disable-border: @border-color-base;
289
+
290
+ @btn-default-ghost-color: @component-background;
291
+ @btn-default-ghost-bg: transparent;
292
+ @btn-default-ghost-border: @component-background;
293
+
294
+ @btn-font-size-lg: @font-size-lg;
295
+ @btn-font-size-sm: @font-size-base;
296
+ @btn-padding-horizontal-base: @padding-md - 1px;
297
+ @btn-padding-horizontal-lg: @btn-padding-horizontal-base;
298
+ @btn-padding-horizontal-sm: @padding-xs - 1px;
299
+
300
+ @btn-height-base: @height-base;
301
+ @btn-height-lg: @height-lg;
302
+ @btn-height-sm: @height-sm;
303
+
304
+ @btn-line-height: @line-height-base;
305
+
306
+ @btn-circle-size: @btn-height-base;
307
+ @btn-circle-size-lg: @btn-height-lg;
308
+ @btn-circle-size-sm: @btn-height-sm;
309
+
310
+ @btn-square-size: @btn-height-base;
311
+ @btn-square-size-lg: @btn-height-lg;
312
+ @btn-square-size-sm: @btn-height-sm;
313
+ @btn-square-only-icon-size: @font-size-base + 2px;
314
+ @btn-square-only-icon-size-sm: @font-size-base;
315
+ @btn-square-only-icon-size-lg: @btn-font-size-lg + 2px;
316
+
317
+ @btn-group-border: @primary-5;
318
+
319
+ @btn-link-hover-bg: transparent;
320
+ @btn-text-hover-bg: rgba(0, 0, 0, 0.018);
321
+
322
+ // Checkbox
323
+ @checkbox-size: 16px;
324
+ @checkbox-color: @primary-color;
325
+ @checkbox-check-color: #fff;
326
+ @checkbox-check-bg: @checkbox-check-color;
327
+ @checkbox-border-width: @border-width-base;
328
+ @checkbox-border-radius: @border-radius-base;
329
+ @checkbox-group-item-margin-right: 8px;
330
+
331
+ // Descriptions
332
+ @descriptions-bg: #fafafa;
333
+ @descriptions-title-margin-bottom: 20px;
334
+ @descriptions-default-padding: @padding-md @padding-lg;
335
+ @descriptions-middle-padding: @padding-sm @padding-lg;
336
+ @descriptions-small-padding: @padding-xs @padding-md;
337
+ @descriptions-item-padding-bottom: @padding-md;
338
+ @descriptions-item-trailing-colon: true;
339
+ @descriptions-item-label-colon-margin-right: 8px;
340
+ @descriptions-item-label-colon-margin-left: 2px;
341
+ @descriptions-extra-color: @text-color;
342
+
343
+ // Divider
344
+ @divider-text-padding: 1em;
345
+ @divider-orientation-margin: 5%;
346
+ @divider-color: rgba(0, 0, 0, 6%);
347
+ @divider-vertical-gutter: 8px;
348
+
349
+ // Dropdown
350
+ @dropdown-selected-color: @primary-color;
351
+ @dropdown-menu-submenu-disabled-bg: @component-background;
352
+ @dropdown-selected-bg: @item-active-bg;
353
+
354
+ // Empty
355
+ @empty-font-size: @font-size-base;
356
+
357
+ // Radio
358
+ @radio-size: 16px;
359
+ @radio-top: 0.2em;
360
+ @radio-border-width: 1px;
361
+ @radio-dot-size: @radio-size - 8px;
362
+ @radio-dot-color: @primary-color;
363
+ @radio-dot-disabled-color: fade(@black, 20%);
364
+ @radio-solid-checked-color: @component-background;
365
+
366
+ // Radio buttons
367
+ @radio-button-bg: @btn-default-bg;
368
+ @radio-button-checked-bg: @btn-default-bg;
369
+ @radio-button-color: @btn-default-color;
370
+ @radio-button-hover-color: @primary-5;
371
+ @radio-button-active-color: @primary-7;
372
+ @radio-button-padding-horizontal: @padding-md - 1px;
373
+ @radio-disabled-button-checked-bg: @disabled-active-bg;
374
+ @radio-disabled-button-checked-color: @disabled-color;
375
+ @radio-wrapper-margin-right: 8px;
376
+
377
+ // Media queries breakpoints
378
+ // @screen-xs and @screen-xs-min is not used in Grid
379
+ // smallest break point is @screen-md
380
+ @screen-xs: 480px;
381
+ @screen-xs-min: @screen-xs;
382
+ // 👆 Extra small screen / phone
383
+
384
+ // 👇 Small screen / tablet
385
+ @screen-sm: 576px;
386
+ @screen-sm-min: @screen-sm;
387
+
388
+ // Medium screen / desktop
389
+ @screen-md: 768px;
390
+ @screen-md-min: @screen-md;
391
+
392
+ // Large screen / wide desktop
393
+ @screen-lg: 992px;
394
+ @screen-lg-min: @screen-lg;
395
+
396
+ // Extra large screen / full hd
397
+ @screen-xl: 1200px;
398
+ @screen-xl-min: @screen-xl;
399
+
400
+ // Extra extra large screen / large desktop
401
+ @screen-xxl: 1600px;
402
+ @screen-xxl-min: @screen-xxl;
403
+
404
+ // provide a maximum
405
+ @screen-xs-max: (@screen-sm-min - 1px);
406
+ @screen-sm-max: (@screen-md-min - 1px);
407
+ @screen-md-max: (@screen-lg-min - 1px);
408
+ @screen-lg-max: (@screen-xl-min - 1px);
409
+ @screen-xl-max: (@screen-xxl-min - 1px);
410
+
411
+ // Grid system
412
+ @grid-columns: 24;
413
+
414
+ // Layout
415
+ @layout-body-background: #f0f2f5;
416
+ @layout-header-background: #001529;
417
+ @layout-header-height: 64px;
418
+ @layout-header-padding: 0 50px;
419
+ @layout-header-color: @text-color;
420
+ @layout-footer-padding: 24px 50px;
421
+ @layout-footer-background: @layout-body-background;
422
+ @layout-sider-background: @layout-header-background;
423
+ @layout-trigger-height: 48px;
424
+ @layout-trigger-background: #002140;
425
+ @layout-trigger-color: #fff;
426
+ @layout-zero-trigger-width: 36px;
427
+ @layout-zero-trigger-height: 42px;
428
+ // Layout light theme
429
+ @layout-sider-background-light: #fff;
430
+ @layout-trigger-background-light: #fff;
431
+ @layout-trigger-color-light: @text-color;
432
+
433
+ // z-index list, order by `z-index`
434
+ @zindex-badge: auto;
435
+ @zindex-table-fixed: 2;
436
+ @zindex-affix: 10;
437
+ @zindex-back-top: 10;
438
+ @zindex-picker-panel: 10;
439
+ @zindex-popup-close: 10;
440
+ @zindex-modal: 1000;
441
+ @zindex-modal-mask: 1000;
442
+ @zindex-message: 1010;
443
+ @zindex-notification: 1010;
444
+ @zindex-popover: 1030;
445
+ @zindex-dropdown: 1050;
446
+ @zindex-picker: 1050;
447
+ @zindex-popoconfirm: 1060;
448
+ @zindex-tooltip: 1070;
449
+ @zindex-image: 1080;
450
+
451
+ // Animation
452
+ @animation-duration-slow: 0.3s; // Modal
453
+ @animation-duration-base: 0.2s;
454
+ @animation-duration-fast: 0.1s; // Tooltip
455
+
456
+ //CollapsePanel
457
+ @collapse-panel-border-radius: @border-radius-base;
458
+
459
+ //Dropdown
460
+ @dropdown-menu-bg: @component-background;
461
+ @dropdown-vertical-padding: 5px;
462
+ @dropdown-edge-child-vertical-padding: 4px;
463
+ @dropdown-font-size: @font-size-base;
464
+ @dropdown-line-height: 22px;
465
+
466
+ // Form
467
+ // ---
468
+ @label-required-color: @highlight-color;
469
+ @label-color: @heading-color;
470
+ @form-warning-input-bg: @input-bg;
471
+ @form-item-margin-bottom: 24px;
472
+ @form-item-trailing-colon: true;
473
+ @form-vertical-label-padding: 0 0 8px;
474
+ @form-vertical-label-margin: 0;
475
+ @form-item-label-font-size: @font-size-base;
476
+ @form-item-label-height: @input-height-base;
477
+ @form-item-label-colon-margin-right: 8px;
478
+ @form-item-label-colon-margin-left: 2px;
479
+ @form-error-input-bg: @input-bg;
480
+
481
+ // Input
482
+ // ---
483
+ @input-height-base: @height-base;
484
+ @input-height-lg: @height-lg;
485
+ @input-height-sm: @height-sm;
486
+ @input-padding-horizontal: @control-padding-horizontal - 1px;
487
+ @input-padding-horizontal-base: @input-padding-horizontal;
488
+ @input-padding-horizontal-sm: @control-padding-horizontal-sm - 1px;
489
+ @input-padding-horizontal-lg: @input-padding-horizontal;
490
+ @input-padding-vertical-base: max(
491
+ (round(((@input-height-base - @font-size-base * @line-height-base) / 2) * 10) / 10) -
492
+ @border-width-base,
493
+ 3px
494
+ );
495
+ @input-padding-vertical-sm: max(
496
+ (round(((@input-height-sm - @font-size-base * @line-height-base) / 2) * 10) / 10) -
497
+ @border-width-base,
498
+ 0
499
+ );
500
+ @input-padding-vertical-lg: (
501
+ ceil(((@input-height-lg - @font-size-lg * @line-height-base) / 2) * 10) / 10
502
+ ) - @border-width-base;
503
+ @input-placeholder-color: hsv(0, 0, 75%);
504
+ @input-color: @text-color;
505
+ @input-icon-color: @input-color;
506
+ @input-border-color: @border-color-base;
507
+ @input-bg: @component-background;
508
+ @input-number-hover-border-color: @input-hover-border-color;
509
+ @input-number-handler-active-bg: #f4f4f4;
510
+ @input-number-handler-hover-bg: @primary-5;
511
+ @input-number-handler-bg: @component-background;
512
+ @input-number-handler-border-color: @border-color-base;
513
+ @input-addon-bg: @background-color-light;
514
+ @input-hover-border-color: @primary-5;
515
+ @input-disabled-bg: @disabled-bg;
516
+ @input-outline-offset: 0 0;
517
+ @input-icon-hover-color: fade(@black, 85%);
518
+ @input-disabled-color: @disabled-color;
519
+
520
+ // Mentions
521
+ // ---
522
+ @mentions-dropdown-bg: @component-background;
523
+ @mentions-dropdown-menu-item-hover-bg: @mentions-dropdown-bg;
524
+
525
+ // Select
526
+ // ---
527
+ @select-border-color: @border-color-base;
528
+ @select-item-selected-color: @text-color;
529
+ @select-item-selected-font-weight: 600;
530
+ @select-dropdown-bg: @component-background;
531
+ @select-item-selected-bg: @primary-1;
532
+ @select-item-active-bg: @item-hover-bg;
533
+ @select-dropdown-vertical-padding: @dropdown-vertical-padding;
534
+ @select-dropdown-font-size: @dropdown-font-size;
535
+ @select-dropdown-line-height: @dropdown-line-height;
536
+ @select-dropdown-height: 32px;
537
+ @select-background: @component-background;
538
+ @select-clear-background: @select-background;
539
+ @select-selection-item-bg: @background-color-base;
540
+ @select-selection-item-border-color: @border-color-split;
541
+ @select-single-item-height-lg: 40px;
542
+ @select-multiple-item-height: @input-height-base - @input-padding-vertical-base * 2; // Normal 24px
543
+ @select-multiple-item-height-lg: 32px;
544
+ @select-multiple-item-spacing-half: ceil((@input-padding-vertical-base / 2));
545
+ @select-multiple-disabled-background: @input-disabled-bg;
546
+ @select-multiple-item-disabled-color: #bfbfbf;
547
+ @select-multiple-item-disabled-border-color: @select-border-color;
548
+
549
+ // Cascader
550
+ // ---
551
+ @cascader-bg: @component-background;
552
+ @cascader-item-selected-bg: @primary-1;
553
+ @cascader-menu-bg: @component-background;
554
+ @cascader-menu-border-color-split: @border-color-split;
555
+
556
+ // Cascader
557
+ // ----
558
+ @cascader-dropdown-vertical-padding: @dropdown-vertical-padding;
559
+ @cascader-dropdown-edge-child-vertical-padding: @dropdown-edge-child-vertical-padding;
560
+ @cascader-dropdown-font-size: @dropdown-font-size;
561
+ @cascader-dropdown-line-height: @dropdown-line-height;
562
+
563
+ // Anchor
564
+ // ---
565
+ @anchor-bg: transparent;
566
+ @anchor-border-color: @border-color-split;
567
+ @anchor-link-top: 7px;
568
+ @anchor-link-left: 16px;
569
+ @anchor-link-padding: @anchor-link-top 0 @anchor-link-top @anchor-link-left;
570
+
571
+ // Tooltip
572
+ // ---
573
+ // Tooltip max width
574
+ @tooltip-max-width: 250px;
575
+ // Tooltip text color
576
+ @tooltip-color: #fff;
577
+ // Tooltip background color
578
+ @tooltip-bg: rgba(0, 0, 0, 0.75);
579
+ // Tooltip arrow width
580
+ @tooltip-arrow-width: 8px * sqrt(2);
581
+ // Tooltip distance with trigger
582
+ @tooltip-distance: @tooltip-arrow-width - 1px + 4px;
583
+ // Tooltip arrow color
584
+ @tooltip-arrow-color: @tooltip-bg;
585
+ @tooltip-border-radius: @border-radius-base;
586
+
587
+ // Popover
588
+ // ---
589
+ // Popover body background color
590
+ @popover-bg: @component-background;
591
+ // Popover text color
592
+ @popover-color: @text-color;
593
+ // Popover maximum width
594
+ @popover-min-width: 177px;
595
+ @popover-min-height: 32px;
596
+ // Popover arrow width
597
+ @popover-arrow-width: @tooltip-arrow-width;
598
+ // Popover arrow color
599
+ @popover-arrow-color: @popover-bg;
600
+ // Popover outer arrow width
601
+ // Popover outer arrow color
602
+ @popover-arrow-outer-color: @popover-bg;
603
+ // Popover distance with trigger
604
+ @popover-distance: @popover-arrow-width + 4px;
605
+ @popover-padding-horizontal: @padding-md;
606
+
607
+ // Modal
608
+ // --
609
+ @modal-header-padding-vertical: @padding-md;
610
+ @modal-header-padding-horizontal: @padding-lg;
611
+ @modal-body-padding: @padding-lg;
612
+ @modal-header-bg: @component-background;
613
+ @modal-header-padding: @modal-header-padding-vertical @modal-header-padding-horizontal;
614
+ @modal-header-border-width: @border-width-base;
615
+ @modal-header-border-style: @border-style-base;
616
+ @modal-header-title-line-height: 22px;
617
+ @modal-header-title-font-size: @font-size-lg;
618
+ @modal-header-border-color-split: @border-color-split;
619
+ @modal-header-close-size: 56px;
620
+ @modal-content-bg: @component-background;
621
+ @modal-heading-color: @heading-color;
622
+ @modal-close-color: @text-color-secondary;
623
+ @modal-footer-bg: transparent;
624
+ @modal-footer-border-color-split: @border-color-split;
625
+ @modal-footer-border-style: @border-style-base;
626
+ @modal-footer-padding-vertical: 10px;
627
+ @modal-footer-padding-horizontal: 16px;
628
+ @modal-footer-border-width: @border-width-base;
629
+ @modal-mask-bg: fade(@black, 45%);
630
+ @modal-confirm-body-padding: 32px 32px 24px;
631
+ @modal-confirm-title-font-size: @font-size-lg;
632
+
633
+ // Progress
634
+ // --
635
+ @progress-default-color: @processing-color;
636
+ @progress-remaining-color: rgba(0, 0, 0, 0.04);
637
+ @progress-info-text-color: @progress-text-color;
638
+ @progress-radius: 100px;
639
+ @progress-steps-item-bg: #f3f3f3;
640
+ @progress-text-font-size: 1em;
641
+ @progress-text-color: @text-color; // This is for circle text color, should be renamed better
642
+ @progress-circle-text-font-size: 1em;
643
+ // Menu
644
+ // ---
645
+ @menu-inline-toplevel-item-height: 40px;
646
+ @menu-item-height: 40px;
647
+ @menu-item-group-height: @line-height-base;
648
+ @menu-collapsed-width: 80px;
649
+ @menu-bg: @component-background;
650
+ @menu-popup-bg: @component-background;
651
+ @menu-item-color: @text-color;
652
+ @menu-inline-submenu-bg: @background-color-light;
653
+ @menu-highlight-color: @primary-color;
654
+ @menu-highlight-danger-color: @error-color;
655
+ @menu-item-active-bg: @primary-1;
656
+ @menu-item-active-danger-bg: @red-1;
657
+ @menu-item-active-border-width: 3px;
658
+ @menu-item-group-title-color: @text-color-secondary;
659
+ @menu-item-vertical-margin: 4px;
660
+ @menu-item-font-size: @font-size-base;
661
+ @menu-item-boundary-margin: 8px;
662
+ @menu-item-padding-horizontal: 20px;
663
+ @menu-item-padding: 0 @menu-item-padding-horizontal;
664
+ @menu-horizontal-line-height: 46px;
665
+ @menu-icon-margin-right: 10px;
666
+ @menu-icon-size: @menu-item-font-size;
667
+ @menu-icon-size-lg: @font-size-lg;
668
+ @menu-item-group-title-font-size: @menu-item-font-size;
669
+
670
+ // dark theme
671
+ @menu-dark-color: @text-color-secondary-dark;
672
+ @menu-dark-danger-color: @error-color;
673
+ @menu-dark-bg: @layout-header-background;
674
+ @menu-dark-arrow-color: #fff;
675
+ @menu-dark-inline-submenu-bg: #000c17;
676
+ @menu-dark-highlight-color: #fff;
677
+ @menu-dark-item-active-bg: @primary-color;
678
+ @menu-dark-item-active-danger-bg: @error-color;
679
+ @menu-dark-selected-item-icon-color: @white;
680
+ @menu-dark-selected-item-text-color: @white;
681
+ @menu-dark-item-hover-bg: transparent;
682
+ // Spin
683
+ // ---
684
+ @spin-dot-size-sm: 14px;
685
+ @spin-dot-size: 20px;
686
+ @spin-dot-size-lg: 32px;
687
+
688
+ // Table
689
+ // --
690
+ @table-bg: @component-background;
691
+ @table-header-bg: @background-color-light;
692
+ @table-header-color: @heading-color;
693
+ @table-header-sort-bg: @background-color-base;
694
+ @table-body-sort-bg: #fafafa;
695
+ @table-row-hover-bg: @background-color-light;
696
+ @table-selected-row-color: inherit;
697
+ @table-selected-row-bg: @primary-1;
698
+ @table-body-selected-sort-bg: @table-selected-row-bg;
699
+ @table-selected-row-hover-bg: ~'var(--@{ant-prefix}-primary-color-active-deprecated-d-02)';
700
+ @table-expanded-row-bg: #fbfbfb;
701
+ @table-padding-vertical: 16px;
702
+ @table-padding-horizontal: 16px;
703
+ @table-padding-vertical-md: (@table-padding-vertical * 3 / 4);
704
+ @table-padding-horizontal-md: (@table-padding-horizontal / 2);
705
+ @table-padding-vertical-sm: (@table-padding-vertical / 2);
706
+ @table-padding-horizontal-sm: (@table-padding-horizontal / 2);
707
+ @table-border-color: @border-color-split;
708
+ @table-border-radius-base: @border-radius-base;
709
+ @table-footer-bg: @background-color-light;
710
+ @table-footer-color: @heading-color;
711
+ @table-header-bg-sm: @table-header-bg;
712
+ @table-font-size: @font-size-base;
713
+ @table-font-size-md: @table-font-size;
714
+ @table-font-size-sm: @table-font-size;
715
+ @table-header-cell-split-color: rgba(0, 0, 0, 0.06);
716
+ // Sorter
717
+ // Legacy: `table-header-sort-active-bg` is used for hover not real active
718
+ @table-header-sort-active-bg: rgba(0, 0, 0, 0.04);
719
+ @table-fixed-header-sort-active-bg: hsv(0, 0, 96%);
720
+
721
+ // Filter
722
+ @table-header-filter-active-bg: rgba(0, 0, 0, 0.04);
723
+ @table-filter-btns-bg: inherit;
724
+ @table-filter-dropdown-bg: @component-background;
725
+ @table-expand-icon-bg: @component-background;
726
+ @table-selection-column-width: 32px;
727
+ // Sticky
728
+ @table-sticky-scroll-bar-bg: fade(#000, 35%);
729
+ @table-sticky-scroll-bar-radius: 4px;
730
+
731
+ // Tag
732
+ // --
733
+ @tag-border-radius: @border-radius-base;
734
+ @tag-default-bg: @background-color-light;
735
+ @tag-default-color: @text-color;
736
+ @tag-font-size: @font-size-sm;
737
+ @tag-line-height: 20px;
738
+
739
+ // TimePicker
740
+ // ---
741
+ @picker-bg: @component-background;
742
+ @picker-basic-cell-hover-color: @item-hover-bg;
743
+ @picker-basic-cell-active-with-range-color: @primary-1;
744
+ @picker-basic-cell-hover-with-range-color: ~'var(--@{ant-prefix}-primary-color-deprecated-l-35)';
745
+ @picker-basic-cell-disabled-bg: rgba(0, 0, 0, 0.04);
746
+ @picker-border-color: @border-color-split;
747
+ @picker-date-hover-range-border-color: ~'var(--@{ant-prefix}-primary-color-deprecated-l-20)';
748
+ @picker-date-hover-range-color: @picker-basic-cell-hover-with-range-color;
749
+ @picker-time-panel-column-width: 56px;
750
+ @picker-time-panel-column-height: 224px;
751
+ @picker-time-panel-cell-height: 28px;
752
+ @picker-panel-cell-height: 24px;
753
+ @picker-panel-cell-width: 36px;
754
+ @picker-text-height: 40px;
755
+ @picker-panel-without-time-cell-height: 66px;
756
+
757
+ // Calendar
758
+ // ---
759
+ @calendar-bg: @component-background;
760
+ @calendar-input-bg: @input-bg;
761
+ @calendar-border-color: @border-color-inverse;
762
+ @calendar-item-active-bg: @item-active-bg;
763
+ @calendar-column-active-bg: ~'var(--@{ant-prefix}-primary-color-active-deprecated-f-30)';
764
+ @calendar-full-bg: @calendar-bg;
765
+ @calendar-full-panel-bg: @calendar-full-bg;
766
+
767
+ // Carousel
768
+ // ---
769
+ @carousel-dot-width: 16px;
770
+ @carousel-dot-height: 3px;
771
+ @carousel-dot-active-width: 24px;
772
+
773
+ // Badge
774
+ // ---
775
+ @badge-height: 20px;
776
+ @badge-height-sm: 14px;
777
+ @badge-dot-size: 6px;
778
+ @badge-font-size: @font-size-sm;
779
+ @badge-font-size-sm: @font-size-sm;
780
+ @badge-font-weight: normal;
781
+ @badge-status-size: 6px;
782
+ @badge-text-color: @component-background;
783
+ @badge-color: @highlight-color;
784
+
785
+ // Rate
786
+ // ---
787
+ @rate-star-color: @yellow-6;
788
+ @rate-star-bg: @border-color-split;
789
+ @rate-star-size: 20px;
790
+ @rate-star-hover-scale: scale(1.1);
791
+
792
+ // Card
793
+ // ---
794
+ @card-head-color: @heading-color;
795
+ @card-head-background: transparent;
796
+ @card-head-font-size: @font-size-lg;
797
+ @card-head-font-size-sm: @font-size-base;
798
+ @card-head-padding: 16px;
799
+ @card-head-padding-sm: (@card-head-padding / 2);
800
+ @card-head-height: 48px;
801
+ @card-head-height-sm: 36px;
802
+ @card-inner-head-padding: 12px;
803
+ @card-padding-base: 24px;
804
+ @card-padding-base-sm: (@card-padding-base / 2);
805
+ @card-actions-background: @component-background;
806
+ @card-actions-li-margin: 12px 0;
807
+ @card-skeleton-bg: #cfd8dc;
808
+ @card-background: @component-background;
809
+ @card-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12),
810
+ 0 5px 12px 4px rgba(0, 0, 0, 0.09);
811
+ @card-radius: @border-radius-base;
812
+ @card-head-tabs-margin-bottom: -17px;
813
+ @card-head-extra-color: @text-color;
814
+
815
+ // Comment
816
+ // ---
817
+ @comment-bg: inherit;
818
+ @comment-padding-base: @padding-md 0;
819
+ @comment-nest-indent: 44px;
820
+ @comment-font-size-base: @font-size-base;
821
+ @comment-font-size-sm: @font-size-sm;
822
+ @comment-author-name-color: @text-color-secondary;
823
+ @comment-author-time-color: #ccc;
824
+ @comment-action-color: @text-color-secondary;
825
+ @comment-action-hover-color: #595959;
826
+ @comment-actions-margin-bottom: inherit;
827
+ @comment-actions-margin-top: @margin-sm;
828
+ @comment-content-detail-p-margin-bottom: inherit;
829
+
830
+ // Tabs
831
+ // ---
832
+ @tabs-card-head-background: @background-color-light;
833
+ @tabs-card-height: 40px;
834
+ @tabs-card-active-color: @primary-color;
835
+ @tabs-card-horizontal-padding: (
836
+ (@tabs-card-height - floor(@font-size-base * @line-height-base)) / 2
837
+ ) - @border-width-base @padding-md;
838
+ @tabs-card-horizontal-padding-sm: 6px @padding-md;
839
+ @tabs-card-horizontal-padding-lg: 7px @padding-md 6px;
840
+ @tabs-title-font-size: @font-size-base;
841
+ @tabs-title-font-size-lg: @font-size-lg;
842
+ @tabs-title-font-size-sm: @font-size-base;
843
+ @tabs-ink-bar-color: @primary-color;
844
+ @tabs-bar-margin: 0 0 @margin-md 0;
845
+ @tabs-horizontal-gutter: 32px;
846
+ @tabs-horizontal-margin: 0 0 0 @tabs-horizontal-gutter;
847
+ @tabs-horizontal-margin-rtl: 0 0 0 32px;
848
+ @tabs-horizontal-padding: @padding-sm 0;
849
+ @tabs-horizontal-padding-lg: @padding-md 0;
850
+ @tabs-horizontal-padding-sm: @padding-xs 0;
851
+ @tabs-vertical-padding: @padding-xs @padding-lg;
852
+ @tabs-vertical-margin: @margin-md 0 0 0;
853
+ @tabs-scrolling-size: 32px;
854
+ @tabs-highlight-color: @primary-color;
855
+ @tabs-hover-color: @primary-5;
856
+ @tabs-active-color: @primary-7;
857
+ @tabs-card-gutter: 2px;
858
+ @tabs-card-tab-active-border-top: 2px solid transparent;
859
+
860
+ // BackTop
861
+ // ---
862
+ @back-top-color: #fff;
863
+ @back-top-bg: @text-color-secondary;
864
+ @back-top-hover-bg: @text-color;
865
+
866
+ // Avatar
867
+ // ---
868
+ @avatar-size-base: 32px;
869
+ @avatar-size-lg: 40px;
870
+ @avatar-size-sm: 24px;
871
+ @avatar-font-size-base: 18px;
872
+ @avatar-font-size-lg: 24px;
873
+ @avatar-font-size-sm: 14px;
874
+ @avatar-bg: #ccc;
875
+ @avatar-color: #fff;
876
+ @avatar-border-radius: @border-radius-base;
877
+ @avatar-group-overlapping: -8px;
878
+ @avatar-group-space: 3px;
879
+ @avatar-group-border-color: #fff;
880
+
881
+ // Switch
882
+ // ---
883
+ @switch-height: 22px;
884
+ @switch-sm-height: 16px;
885
+ @switch-min-width: 44px;
886
+ @switch-sm-min-width: 28px;
887
+ @switch-disabled-opacity: 0.4;
888
+ @switch-color: @primary-color;
889
+ @switch-bg: @component-background;
890
+ @switch-shadow-color: fade(#00230b, 20%);
891
+ @switch-padding: 2px;
892
+ @switch-inner-margin-min: ceil(@switch-height * 0.3);
893
+ @switch-inner-margin-max: ceil(@switch-height * 1.1);
894
+ @switch-sm-inner-margin-min: ceil(@switch-sm-height * 0.3);
895
+ @switch-sm-inner-margin-max: ceil(@switch-sm-height * 1.1);
896
+
897
+ // Pagination
898
+ // ---
899
+ @pagination-item-bg: @component-background;
900
+ @pagination-item-size: @height-base;
901
+ @pagination-item-size-sm: 24px;
902
+ @pagination-font-family: @font-family;
903
+ @pagination-font-weight-active: 500;
904
+ @pagination-item-bg-active: @component-background;
905
+ @pagination-item-link-bg: @component-background;
906
+ @pagination-item-disabled-color-active: @disabled-color;
907
+ @pagination-item-disabled-bg-active: @disabled-active-bg;
908
+ @pagination-item-input-bg: @component-background;
909
+ @pagination-mini-options-size-changer-top: 0px;
910
+
911
+ // PageHeader
912
+ // ---
913
+ @page-header-padding: @padding-lg;
914
+ @page-header-padding-vertical: @padding-md;
915
+ @page-header-padding-breadcrumb: @padding-sm;
916
+ @page-header-content-padding-vertical: @padding-sm;
917
+ @page-header-back-color: #000;
918
+ @page-header-ghost-bg: inherit;
919
+ @page-header-heading-title: @heading-4-size;
920
+ @page-header-heading-sub-title: 14px;
921
+ @page-header-tabs-tab-font-size: 16px;
922
+
923
+ // Breadcrumb
924
+ // ---
925
+ @breadcrumb-base-color: @text-color-secondary;
926
+ @breadcrumb-last-item-color: @text-color;
927
+ @breadcrumb-font-size: @font-size-base;
928
+ @breadcrumb-icon-font-size: @font-size-base;
929
+ @breadcrumb-link-color: @text-color-secondary;
930
+ @breadcrumb-link-color-hover: @primary-5;
931
+ @breadcrumb-separator-color: @text-color-secondary;
932
+ @breadcrumb-separator-margin: 0 @padding-xs;
933
+
934
+ // Slider
935
+ // ---
936
+ @slider-margin: 10px 6px 10px;
937
+ @slider-rail-background-color: @background-color-base;
938
+ @slider-rail-background-color-hover: #e1e1e1;
939
+ @slider-track-background-color: @primary-3;
940
+ @slider-track-background-color-hover: @primary-4;
941
+ @slider-handle-border-width: 2px;
942
+ @slider-handle-background-color: @component-background;
943
+ @slider-handle-color: @primary-3;
944
+ @slider-handle-color-hover: @primary-4;
945
+ @slider-handle-color-focus: ~'var(--@{ant-prefix}-primary-color-deprecated-t-20)';
946
+ @slider-handle-color-focus-shadow: ~'var(--@{ant-prefix}-primary-color-deprecated-f-12)';
947
+ @slider-handle-color-tooltip-open: @primary-color;
948
+ @slider-handle-size: 14px;
949
+ @slider-handle-margin-top: -5px;
950
+ @slider-handle-shadow: 0;
951
+ @slider-dot-border-color: @border-color-split;
952
+ @slider-dot-border-color-active: ~'var(--@{ant-prefix}-primary-color-deprecated-t-50)';
953
+ @slider-disabled-color: @disabled-color;
954
+ @slider-disabled-background-color: @component-background;
955
+
956
+ // Tree
957
+ // ---
958
+ @tree-bg: @component-background;
959
+ @tree-title-height: 24px;
960
+ @tree-child-padding: 18px;
961
+ @tree-directory-selected-color: #fff;
962
+ @tree-directory-selected-bg: @primary-color;
963
+ @tree-node-hover-bg: @item-hover-bg;
964
+ @tree-node-selected-bg: @primary-2;
965
+
966
+ // Collapse
967
+ // ---
968
+ @collapse-header-padding: @padding-sm @padding-md;
969
+ @collapse-header-padding-extra: 40px;
970
+ @collapse-header-bg: @background-color-light;
971
+ @collapse-content-padding: @padding-md;
972
+ @collapse-content-bg: @component-background;
973
+ @collapse-header-arrow-left: 16px;
974
+
975
+ // Skeleton
976
+ // ---
977
+ @skeleton-color: rgba(190, 190, 190, 0.2);
978
+ @skeleton-to-color: shade(@skeleton-color, 5%);
979
+ @skeleton-paragraph-margin-top: 28px;
980
+ @skeleton-paragraph-li-margin-top: @margin-md;
981
+ @skeleton-paragraph-li-height: 16px;
982
+ @skeleton-title-height: 16px;
983
+ @skeleton-title-paragraph-margin-top: @margin-lg;
984
+
985
+ // Transfer
986
+ // ---
987
+ @transfer-header-height: 40px;
988
+ @transfer-item-height: @height-base;
989
+ @transfer-disabled-bg: @disabled-bg;
990
+ @transfer-list-height: 200px;
991
+ @transfer-item-hover-bg: @item-hover-bg;
992
+ @transfer-item-selected-hover-bg: ~'var(--@{ant-prefix}-primary-color-active-deprecated-d-02)';
993
+ @transfer-item-padding-vertical: 6px;
994
+ @transfer-list-search-icon-top: 12px;
995
+
996
+ // Message
997
+ // ---
998
+ @message-notice-content-padding: 10px 16px;
999
+ @message-notice-content-bg: @component-background;
1000
+ // Motion
1001
+ // ---
1002
+ @wave-animation-width: 6px;
1003
+
1004
+ // Alert
1005
+ // ---
1006
+ @alert-success-border-color: @success-color-deprecated-border;
1007
+ @alert-success-bg-color: @success-color-deprecated-bg;
1008
+ @alert-success-icon-color: @success-color;
1009
+ @alert-info-border-color: @info-color-deprecated-border;
1010
+ @alert-info-bg-color: @info-color-deprecated-bg;
1011
+ @alert-info-icon-color: @info-color;
1012
+ @alert-warning-border-color: @warning-color-deprecated-border;
1013
+ @alert-warning-bg-color: @warning-color-deprecated-bg;
1014
+ @alert-warning-icon-color: @warning-color;
1015
+ @alert-error-border-color: @error-color-deprecated-border;
1016
+ @alert-error-bg-color: @error-color-deprecated-bg;
1017
+ @alert-error-icon-color: @error-color;
1018
+ @alert-message-color: @heading-color;
1019
+ @alert-text-color: @text-color;
1020
+ @alert-close-color: @text-color-secondary;
1021
+ @alert-close-hover-color: @icon-color-hover;
1022
+ @alert-no-icon-padding-vertical: @padding-xs;
1023
+ @alert-with-description-no-icon-padding-vertical: @padding-md - 1px;
1024
+ @alert-with-description-padding-vertical: @padding-md - 1px;
1025
+ @alert-with-description-padding: @alert-with-description-padding-vertical 15px
1026
+ @alert-with-description-no-icon-padding-vertical @alert-with-description-icon-size;
1027
+ @alert-icon-top: 8px + @font-size-base * (@line-height-base / 2) - (@font-size-base / 2);
1028
+ @alert-with-description-icon-size: 24px;
1029
+
1030
+ // List
1031
+ // ---
1032
+ @list-header-background: transparent;
1033
+ @list-footer-background: transparent;
1034
+ @list-empty-text-padding: @padding-md;
1035
+ @list-item-padding: @padding-sm 0;
1036
+ @list-item-padding-sm: @padding-xs @padding-md;
1037
+ @list-item-padding-lg: 16px 24px;
1038
+ @list-item-meta-margin-bottom: @padding-md;
1039
+ @list-item-meta-avatar-margin-right: @padding-md;
1040
+ @list-item-meta-title-margin-bottom: @padding-sm;
1041
+ @list-customize-card-bg: @component-background;
1042
+ @list-item-meta-description-font-size: @font-size-base;
1043
+
1044
+ // Statistic
1045
+ // ---
1046
+ @statistic-title-font-size: @font-size-base;
1047
+ @statistic-content-font-size: 24px;
1048
+ @statistic-unit-font-size: 24px;
1049
+ @statistic-font-family: @font-family;
1050
+
1051
+ // Drawer
1052
+ // ---
1053
+ @drawer-header-padding: @padding-md @padding-lg;
1054
+ @drawer-body-padding: @padding-lg;
1055
+ @drawer-bg: @component-background;
1056
+ @drawer-footer-padding-vertical: @modal-footer-padding-vertical;
1057
+ @drawer-footer-padding-horizontal: @modal-footer-padding-horizontal;
1058
+ @drawer-header-close-size: 56px;
1059
+ @drawer-title-font-size: @font-size-lg;
1060
+ @drawer-title-line-height: 22px;
1061
+
1062
+ // Timeline
1063
+ // ---
1064
+ @timeline-width: 2px;
1065
+ @timeline-color: @border-color-split;
1066
+ @timeline-dot-border-width: 2px;
1067
+ @timeline-dot-color: @primary-color;
1068
+ @timeline-dot-bg: @component-background;
1069
+ @timeline-item-padding-bottom: 20px;
1070
+
1071
+ // Typography
1072
+ // ---
1073
+ @typography-title-font-weight: 600;
1074
+ @typography-title-margin-top: 1.2em;
1075
+ @typography-title-margin-bottom: 0.5em;
1076
+
1077
+ // Upload
1078
+ // ---
1079
+ @upload-actions-color: @text-color-secondary;
1080
+
1081
+ // Steps
1082
+ // ---
1083
+ @process-tail-color: @border-color-split;
1084
+ @steps-nav-arrow-color: fade(@black, 25%);
1085
+ @steps-background: @component-background;
1086
+ @steps-icon-size: 32px;
1087
+ @steps-icon-custom-size: @steps-icon-size;
1088
+ @steps-icon-custom-top: 0px;
1089
+ @steps-icon-custom-font-size: 24px;
1090
+ @steps-icon-top: -0.5px;
1091
+ @steps-icon-font-size: @font-size-lg;
1092
+ @steps-icon-margin: 0 8px 0 0;
1093
+ @steps-title-line-height: @height-base;
1094
+ @steps-small-icon-size: 24px;
1095
+ @steps-small-icon-margin: 0 8px 0 0;
1096
+ @steps-dot-size: 8px;
1097
+ @steps-dot-top: 2px;
1098
+ @steps-current-dot-size: 10px;
1099
+ @steps-description-max-width: 140px;
1100
+ @steps-nav-content-max-width: auto;
1101
+ @steps-vertical-icon-width: 16px;
1102
+ @steps-vertical-tail-width: 16px;
1103
+ @steps-vertical-tail-width-sm: 12px;
1104
+
1105
+ // Notification
1106
+ // ---
1107
+ @notification-bg: @component-background;
1108
+ @notification-padding-vertical: 16px;
1109
+ @notification-padding-horizontal: 24px;
1110
+
1111
+ // Result
1112
+ // ---
1113
+ @result-title-font-size: 24px;
1114
+ @result-subtitle-font-size: @font-size-base;
1115
+ @result-icon-font-size: 72px;
1116
+ @result-extra-margin: 24px 0 0 0;
1117
+
1118
+ // Image
1119
+ // ---
1120
+ @image-size-base: 48px;
1121
+ @image-font-size-base: 24px;
1122
+ @image-bg: #f5f5f5;
1123
+ @image-color: #fff;
1124
+ @image-mask-font-size: 16px;
1125
+ @image-preview-operation-size: 18px;
1126
+ @image-preview-operation-color: @text-color-dark;
1127
+ @image-preview-operation-disabled-color: fade(@image-preview-operation-color, 25%);
1128
+
1129
+ //---------dark
1130
+ // Layer background
1131
+ @popover-background: #1f1f1f;
1132
+ @popover-customize-border-color: #3a3a3a;
1133
+ @body-background: @black;
1134
+ @component-background: #141414;
1135
+
1136
+ @text-color: fade(@white, 85%);
1137
+ @text-color-secondary: fade(@white, 45%);
1138
+ @text-color-inverse: @white;
1139
+ @icon-color-hover: fade(@white, 75%);
1140
+ @heading-color: fade(@white, 85%);
1141
+
1142
+ // The background colors for active and hover states for things like
1143
+ // list items or table cells.
1144
+ @item-active-bg: @primary-1;
1145
+ @item-hover-bg: fade(@white, 8%);
1146
+
1147
+ // Border color
1148
+ @border-color-base: #434343; // base border outline a component
1149
+ @border-color-split: #303030; // split border inside a component
1150
+
1151
+ @background-color-light: fade(@white, 4%); // background of header and selected item
1152
+ @background-color-base: fade(@white, 8%); // Default grey background color
1153
+
1154
+ // Disabled states
1155
+ @disabled-color: fade(@white, 30%);
1156
+ @disabled-bg: @background-color-base;
1157
+ @disabled-color-dark: fade(@white, 30%);
1158
+
1159
+ // Tree
1160
+ // ---
1161
+ @tree-bg: transparent;
1162
+
1163
+ // List
1164
+ // ---
1165
+ @list-customize-card-bg: transparent;
1166
+
1167
+ // Shadow
1168
+ // ---
1169
+ @shadow-color: rgba(0, 0, 0, 0.45);
1170
+ @shadow-color-inverse: @component-background;
1171
+ @box-shadow-base: @shadow-2;
1172
+ @shadow-1-up: 0 -6px 16px -8px rgba(0, 0, 0, 0.32), 0 -9px 28px 0 rgba(0, 0, 0, 0.2),
1173
+ 0 -12px 48px 16px rgba(0, 0, 0, 0.12);
1174
+ @shadow-1-down: 0 6px 16px -8px rgba(0, 0, 0, 0.32), 0 9px 28px 0 rgba(0, 0, 0, 0.2),
1175
+ 0 12px 48px 16px rgba(0, 0, 0, 0.12);
1176
+ @shadow-1-right: 6px 0 16px -8px rgba(0, 0, 0, 0.32), 9px 0 28px 0 rgba(0, 0, 0, 0.2),
1177
+ 12px 0 48px 16px rgba(0, 0, 0, 0.12);
1178
+ @shadow-2: 0 3px 6px -4px rgba(0, 0, 0, 0.48), 0 6px 16px 0 rgba(0, 0, 0, 0.32),
1179
+ 0 9px 28px 8px rgba(0, 0, 0, 0.2);
1180
+
1181
+ // Buttons
1182
+ // ---
1183
+ @btn-shadow: 0 2px 0 rgba(0, 0, 0, 0.015);
1184
+ @btn-primary-shadow: 0 2px 0 rgba(0, 0, 0, 0.045);
1185
+ @btn-text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.12);
1186
+
1187
+ @btn-default-bg: transparent;
1188
+
1189
+ @btn-default-ghost-color: @text-color;
1190
+ @btn-default-ghost-border: fade(@white, 25%);
1191
+
1192
+ @btn-text-hover-bg: rgba(255, 255, 255, 0.03);
1193
+
1194
+ // Checkbox
1195
+ // ---
1196
+ @checkbox-check-bg: transparent;
1197
+
1198
+ // Descriptions
1199
+ // ---
1200
+ @descriptions-bg: @background-color-light;
1201
+
1202
+ // Divider
1203
+ // ---
1204
+ @divider-color: rgba(255, 255, 255, 12%);
1205
+
1206
+ // Modal
1207
+ // ---
1208
+ @modal-header-bg: @popover-background;
1209
+ @modal-header-border-color-split: @border-color-split;
1210
+ @modal-content-bg: @popover-background;
1211
+ @modal-footer-border-color-split: @border-color-split;
1212
+
1213
+ // Radio
1214
+ // ---
1215
+ @radio-solid-checked-color: @white;
1216
+ @radio-dot-disabled-color: fade(@white, 20%);
1217
+
1218
+ // Radio buttons
1219
+ // ---
1220
+ @radio-disabled-button-checked-bg: fade(@white, 20%);
1221
+ @radio-disabled-button-checked-color: @disabled-color;
1222
+
1223
+ // Layout
1224
+ // ---
1225
+ @layout-body-background: @body-background;
1226
+ @layout-header-background: @popover-background;
1227
+ @layout-trigger-background: #262626;
1228
+
1229
+ // Input
1230
+ // ---
1231
+ @input-bg: transparent;
1232
+ @input-placeholder-color: fade(@white, 30%);
1233
+ @input-icon-color: fade(@white, 30%);
1234
+ @input-number-handler-active-bg: @item-hover-bg;
1235
+ @input-icon-hover-color: fade(@white, 85%);
1236
+
1237
+ // Select
1238
+ // ---
1239
+ @select-background: transparent;
1240
+ @select-dropdown-bg: @popover-background;
1241
+ @select-clear-background: @component-background;
1242
+ @select-selection-item-bg: fade(@white, 8);
1243
+ @select-selection-item-border-color: @border-color-split;
1244
+ @select-multiple-disabled-background: @component-background;
1245
+ @select-multiple-item-disabled-color: #595959;
1246
+ @select-multiple-item-disabled-border-color: @popover-background;
1247
+
1248
+ // Cascader
1249
+ // ---
1250
+ @cascader-bg: transparent;
1251
+ @cascader-menu-bg: @popover-background;
1252
+ @cascader-menu-border-color-split: @border-color-split;
1253
+
1254
+ // Tooltip
1255
+ // ---
1256
+ // Tooltip background color
1257
+ @tooltip-bg: #434343;
1258
+
1259
+ // Menu
1260
+ // ---
1261
+ // dark theme
1262
+ @menu-dark-inline-submenu-bg: @component-background;
1263
+ @menu-dark-bg: @popover-background;
1264
+ @menu-popup-bg: @popover-background;
1265
+
1266
+ // Message
1267
+ // ---
1268
+ @message-notice-content-bg: @popover-background;
1269
+
1270
+ // Notification
1271
+ @notification-bg: @popover-background;
1272
+
1273
+ // LINK
1274
+ @link-hover-color: @primary-5;
1275
+ @link-active-color: @primary-7;
1276
+
1277
+ // Table
1278
+ // --
1279
+ @table-header-bg: #1d1d1d;
1280
+ @table-body-sort-bg: fade(@white, 1%);
1281
+ @table-row-hover-bg: #262626;
1282
+ @table-header-cell-split-color: fade(@white, 8%);
1283
+ @table-header-sort-bg: #262626;
1284
+ @table-header-filter-active-bg: #434343;
1285
+ @table-header-sort-active-bg: #303030;
1286
+ @table-fixed-header-sort-active-bg: #222;
1287
+ @table-filter-btns-bg: @popover-background;
1288
+ @table-expanded-row-bg: @table-header-bg;
1289
+ @table-filter-dropdown-bg: @popover-background;
1290
+ @table-expand-icon-bg: transparent;
1291
+
1292
+ // Tag
1293
+ // ---
1294
+ @info-color-deprecated-bg: @primary-1;
1295
+ @info-color-deprecated-border: @primary-3;
1296
+ @success-color-deprecated-bg: @green-1;
1297
+ @success-color-deprecated-border: @green-3;
1298
+ @warning-color-deprecated-bg: @orange-1;
1299
+ @warning-color-deprecated-border: @orange-3;
1300
+ @error-color-deprecated-bg: @red-1;
1301
+ @error-color-deprecated-border: @red-3;
1302
+
1303
+ // TimePicker
1304
+ // ---
1305
+ @picker-basic-cell-hover-with-range-color: @primary-color;
1306
+ @picker-basic-cell-disabled-bg: #303030;
1307
+ @picker-border-color: @border-color-split;
1308
+ @picker-bg: transparent;
1309
+ @picker-date-hover-range-border-color: @primary-color;
1310
+
1311
+ // Dropdown
1312
+ // ---
1313
+ @dropdown-menu-bg: @popover-background;
1314
+ @dropdown-menu-submenu-disabled-bg: transparent;
1315
+
1316
+ // Steps
1317
+ // ---
1318
+ @steps-nav-arrow-color: fade(@white, 20%);
1319
+ @steps-background: transparent;
1320
+
1321
+ // Avatar
1322
+ // ---
1323
+ @avatar-bg: fade(@white, 30%);
1324
+
1325
+ // Progress
1326
+ // ---
1327
+ @progress-steps-item-bg: fade(@white, 8%);
1328
+
1329
+ // Calendar
1330
+ // ---
1331
+ @calendar-bg: @popover-background;
1332
+ @calendar-input-bg: @calendar-bg;
1333
+ @calendar-border-color: transparent;
1334
+ @calendar-full-bg: @component-background;
1335
+
1336
+ // Badge
1337
+ // ---
1338
+ @badge-text-color: @white;
1339
+
1340
+ // Popover
1341
+ @popover-bg: @popover-background;
1342
+
1343
+ // Drawer
1344
+ @drawer-bg: @popover-background;
1345
+
1346
+ // Card
1347
+ // ---
1348
+ @card-actions-background: @component-background;
1349
+ @card-skeleton-bg: #303030;
1350
+ @card-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.64), 0 3px 6px 0 rgba(0, 0, 0, 0.48),
1351
+ 0 5px 12px 4px rgba(0, 0, 0, 0.36);
1352
+
1353
+ // Transfer
1354
+ // ---
1355
+ @transfer-item-hover-bg: #262626;
1356
+
1357
+ // Comment
1358
+ // ---
1359
+ @comment-bg: transparent;
1360
+ @comment-author-time-color: fade(@white, 30%);
1361
+ @comment-action-hover-color: fade(@white, 65%);
1362
+
1363
+ // Rate
1364
+ // ---
1365
+ @rate-star-bg: fade(@white, 12%);
1366
+
1367
+ // Switch
1368
+ // ---
1369
+ @switch-bg: @white;
1370
+
1371
+ // Pagination
1372
+ // ---
1373
+ @pagination-item-bg: transparent;
1374
+ @pagination-item-bg-active: transparent;
1375
+ @pagination-item-link-bg: transparent;
1376
+ @pagination-item-disabled-bg-active: fade(@white, 25%);
1377
+ @pagination-item-disabled-color-active: @black;
1378
+ @pagination-item-input-bg: @pagination-item-bg;
1379
+
1380
+ // PageHeader
1381
+ // ---
1382
+ @page-header-back-color: @icon-color;
1383
+ @page-header-ghost-bg: transparent;
1384
+
1385
+ // Slider
1386
+ // ---
1387
+ @slider-rail-background-color: #262626;
1388
+ @slider-rail-background-color-hover: @border-color-base;
1389
+ @slider-dot-border-color: @border-color-split;
1390
+ @slider-dot-border-color-active: @primary-4;
1391
+
1392
+ // Skeleton
1393
+ // ---
1394
+ @skeleton-to-color: fade(@white, 16%);
1395
+
1396
+ // Alert
1397
+ // ---
1398
+ @alert-success-border-color: @green-3;
1399
+ @alert-success-bg-color: @green-1;
1400
+ @alert-success-icon-color: @success-color;
1401
+ @alert-info-border-color: @primary-3;
1402
+ @alert-info-bg-color: @primary-1;
1403
+ @alert-info-icon-color: @info-color;
1404
+ @alert-warning-border-color: @gold-3;
1405
+ @alert-warning-bg-color: @gold-1;
1406
+ @alert-warning-icon-color: @warning-color;
1407
+ @alert-error-border-color: @red-3;
1408
+ @alert-error-bg-color: @red-1;
1409
+ @alert-error-icon-color: @error-color;
1410
+
1411
+ // Timeline
1412
+ // ---
1413
+ @timeline-color: @border-color-split;
1414
+ @timeline-dot-color: @primary-color;
1415
+
1416
+ // Mentions
1417
+ // ---
1418
+ @mentions-dropdown-bg: @popover-background;