advance-semi-theme 1.0.0

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.
Files changed (169) hide show
  1. package/README.md +214 -0
  2. package/dist/antd/index.d.ts +159 -0
  3. package/dist/antd/index.js +1378 -0
  4. package/dist/antd/plugin.d.ts +34 -0
  5. package/dist/antd/plugin.js +12 -0
  6. package/dist/antd/styles/all.css +83 -0
  7. package/dist/antd/styles/base.css +202 -0
  8. package/dist/antd/styles/components/affix.css +7 -0
  9. package/dist/antd/styles/components/ai.css +242 -0
  10. package/dist/antd/styles/components/alert.css +149 -0
  11. package/dist/antd/styles/components/anchor.css +40 -0
  12. package/dist/antd/styles/components/app.css +9 -0
  13. package/dist/antd/styles/components/autocomplete.css +56 -0
  14. package/dist/antd/styles/components/avatar.css +37 -0
  15. package/dist/antd/styles/components/backtop.css +106 -0
  16. package/dist/antd/styles/components/badge.css +76 -0
  17. package/dist/antd/styles/components/breadcrumb.css +37 -0
  18. package/dist/antd/styles/components/button.css +528 -0
  19. package/dist/antd/styles/components/calendar.css +55 -0
  20. package/dist/antd/styles/components/card.css +113 -0
  21. package/dist/antd/styles/components/carousel.css +57 -0
  22. package/dist/antd/styles/components/cascader.css +99 -0
  23. package/dist/antd/styles/components/checkableTag.css +26 -0
  24. package/dist/antd/styles/components/checkbox.css +119 -0
  25. package/dist/antd/styles/components/collapse.css +74 -0
  26. package/dist/antd/styles/components/colorpicker.css +94 -0
  27. package/dist/antd/styles/components/configprovider.css +6 -0
  28. package/dist/antd/styles/components/datepicker.css +346 -0
  29. package/dist/antd/styles/components/descriptions.css +63 -0
  30. package/dist/antd/styles/components/divider.css +34 -0
  31. package/dist/antd/styles/components/drawer.css +71 -0
  32. package/dist/antd/styles/components/dropdown.css +94 -0
  33. package/dist/antd/styles/components/empty.css +40 -0
  34. package/dist/antd/styles/components/flex.css +19 -0
  35. package/dist/antd/styles/components/floatbutton.css +65 -0
  36. package/dist/antd/styles/components/form.css +90 -0
  37. package/dist/antd/styles/components/grid.css +11 -0
  38. package/dist/antd/styles/components/icon.css +18 -0
  39. package/dist/antd/styles/components/image.css +125 -0
  40. package/dist/antd/styles/components/input.css +459 -0
  41. package/dist/antd/styles/components/inputnumber.css +102 -0
  42. package/dist/antd/styles/components/layout.css +63 -0
  43. package/dist/antd/styles/components/list.css +109 -0
  44. package/dist/antd/styles/components/mentions.css +84 -0
  45. package/dist/antd/styles/components/menu.css +190 -0
  46. package/dist/antd/styles/components/message.css +68 -0
  47. package/dist/antd/styles/components/modal.css +124 -0
  48. package/dist/antd/styles/components/notification.css +89 -0
  49. package/dist/antd/styles/components/pageheader.css +62 -0
  50. package/dist/antd/styles/components/pagination.css +139 -0
  51. package/dist/antd/styles/components/popconfirm.css +64 -0
  52. package/dist/antd/styles/components/popover.css +40 -0
  53. package/dist/antd/styles/components/progress.css +105 -0
  54. package/dist/antd/styles/components/qrcode.css +43 -0
  55. package/dist/antd/styles/components/radio.css +166 -0
  56. package/dist/antd/styles/components/rate.css +47 -0
  57. package/dist/antd/styles/components/result.css +63 -0
  58. package/dist/antd/styles/components/scrollbar.css +22 -0
  59. package/dist/antd/styles/components/segmented.css +75 -0
  60. package/dist/antd/styles/components/select.css +282 -0
  61. package/dist/antd/styles/components/skeleton.css +96 -0
  62. package/dist/antd/styles/components/slider.css +119 -0
  63. package/dist/antd/styles/components/space.css +59 -0
  64. package/dist/antd/styles/components/spin.css +91 -0
  65. package/dist/antd/styles/components/statistic.css +48 -0
  66. package/dist/antd/styles/components/steps.css +176 -0
  67. package/dist/antd/styles/components/switch.css +128 -0
  68. package/dist/antd/styles/components/table.css +197 -0
  69. package/dist/antd/styles/components/tabs.css +212 -0
  70. package/dist/antd/styles/components/tag.css +286 -0
  71. package/dist/antd/styles/components/textArea.css +40 -0
  72. package/dist/antd/styles/components/timeline.css +106 -0
  73. package/dist/antd/styles/components/timepicker.css +105 -0
  74. package/dist/antd/styles/components/tooltip.css +37 -0
  75. package/dist/antd/styles/components/tour.css +114 -0
  76. package/dist/antd/styles/components/transfer.css +232 -0
  77. package/dist/antd/styles/components/tree.css +143 -0
  78. package/dist/antd/styles/components/treeselect.css +46 -0
  79. package/dist/antd/styles/components/typography.css +184 -0
  80. package/dist/antd/styles/components/upload.css +181 -0
  81. package/dist/antd/styles/components/watermark.css +16 -0
  82. package/dist/antd/styles/dark.css +533 -0
  83. package/dist/antd/styles/index.css +115 -0
  84. package/dist/antd/styles/overrides.css +147 -0
  85. package/dist/antd/styles/variables.css +259 -0
  86. package/dist/chunk-FMQWBDDZ.js +207 -0
  87. package/dist/chunk-NGAVTDQ2.js +200 -0
  88. package/dist/chunk-QQOB6AOA.js +213 -0
  89. package/dist/core/index.d.ts +179 -0
  90. package/dist/core/index.js +10 -0
  91. package/dist/core/variables.css +258 -0
  92. package/dist/element/index.d.ts +3 -0
  93. package/dist/element/index.js +17 -0
  94. package/dist/element/plugin.d.ts +34 -0
  95. package/dist/element/plugin.js +12 -0
  96. package/dist/element/styles/base.css +277 -0
  97. package/dist/element/styles/components/affix.css +7 -0
  98. package/dist/element/styles/components/alert.css +44 -0
  99. package/dist/element/styles/components/anchor.css +34 -0
  100. package/dist/element/styles/components/autocomplete.css +61 -0
  101. package/dist/element/styles/components/avatar.css +31 -0
  102. package/dist/element/styles/components/backtop.css +22 -0
  103. package/dist/element/styles/components/badge.css +48 -0
  104. package/dist/element/styles/components/breadcrumb.css +38 -0
  105. package/dist/element/styles/components/button.css +193 -0
  106. package/dist/element/styles/components/calendar.css +58 -0
  107. package/dist/element/styles/components/card.css +29 -0
  108. package/dist/element/styles/components/carousel.css +78 -0
  109. package/dist/element/styles/components/cascader.css +120 -0
  110. package/dist/element/styles/components/check-tag.css +35 -0
  111. package/dist/element/styles/components/checkbox.css +39 -0
  112. package/dist/element/styles/components/collapse.css +58 -0
  113. package/dist/element/styles/components/color-picker.css +82 -0
  114. package/dist/element/styles/components/config-provider.css +6 -0
  115. package/dist/element/styles/components/container.css +26 -0
  116. package/dist/element/styles/components/datepicker.css +165 -0
  117. package/dist/element/styles/components/descriptions-item.css +6 -0
  118. package/dist/element/styles/components/descriptions.css +51 -0
  119. package/dist/element/styles/components/dialog.css +91 -0
  120. package/dist/element/styles/components/divider.css +37 -0
  121. package/dist/element/styles/components/drawer.css +33 -0
  122. package/dist/element/styles/components/dropdown.css +30 -0
  123. package/dist/element/styles/components/empty.css +28 -0
  124. package/dist/element/styles/components/form.css +106 -0
  125. package/dist/element/styles/components/image.css +59 -0
  126. package/dist/element/styles/components/infinite-scroll.css +24 -0
  127. package/dist/element/styles/components/input-number.css +95 -0
  128. package/dist/element/styles/components/input.css +170 -0
  129. package/dist/element/styles/components/link.css +73 -0
  130. package/dist/element/styles/components/loading.css +50 -0
  131. package/dist/element/styles/components/mention.css +49 -0
  132. package/dist/element/styles/components/menu.css +140 -0
  133. package/dist/element/styles/components/message.css +88 -0
  134. package/dist/element/styles/components/notification.css +81 -0
  135. package/dist/element/styles/components/page-header.css +41 -0
  136. package/dist/element/styles/components/pagination.css +135 -0
  137. package/dist/element/styles/components/popconfirm.css +35 -0
  138. package/dist/element/styles/components/popover.css +22 -0
  139. package/dist/element/styles/components/progress.css +28 -0
  140. package/dist/element/styles/components/radio.css +64 -0
  141. package/dist/element/styles/components/rate.css +33 -0
  142. package/dist/element/styles/components/result.css +51 -0
  143. package/dist/element/styles/components/row.css +11 -0
  144. package/dist/element/styles/components/scrollbar.css +33 -0
  145. package/dist/element/styles/components/segmented.css +59 -0
  146. package/dist/element/styles/components/select.css +226 -0
  147. package/dist/element/styles/components/skeleton.css +65 -0
  148. package/dist/element/styles/components/slider.css +93 -0
  149. package/dist/element/styles/components/space.css +19 -0
  150. package/dist/element/styles/components/statistic.css +33 -0
  151. package/dist/element/styles/components/steps.css +122 -0
  152. package/dist/element/styles/components/switch.css +32 -0
  153. package/dist/element/styles/components/table.css +144 -0
  154. package/dist/element/styles/components/tabs.css +125 -0
  155. package/dist/element/styles/components/tag.css +150 -0
  156. package/dist/element/styles/components/text.css +50 -0
  157. package/dist/element/styles/components/time-picker.css +106 -0
  158. package/dist/element/styles/components/timeline.css +58 -0
  159. package/dist/element/styles/components/tooltip.css +22 -0
  160. package/dist/element/styles/components/tour.css +58 -0
  161. package/dist/element/styles/components/transfer.css +181 -0
  162. package/dist/element/styles/components/tree-select.css +28 -0
  163. package/dist/element/styles/components/tree.css +66 -0
  164. package/dist/element/styles/components/upload.css +96 -0
  165. package/dist/element/styles/components/virtualized.css +75 -0
  166. package/dist/element/styles/components/watermark.css +20 -0
  167. package/dist/element/styles/dark.css +82 -0
  168. package/dist/element/styles/index.css +107 -0
  169. package/package.json +78 -0
@@ -0,0 +1,1378 @@
1
+ import {
2
+ SUPPORTED_COMPONENTS,
3
+ SemiThemePlugin,
4
+ createSemiTheme
5
+ } from "../chunk-FMQWBDDZ.js";
6
+ import {
7
+ semiColors,
8
+ semiColorsRGB
9
+ } from "../chunk-QQOB6AOA.js";
10
+
11
+ // src/antd/theme/tokens.ts
12
+ var semiColors2 = {
13
+ // Brand Colors - Blue
14
+ blue: {
15
+ 0: "#EAF5FF",
16
+ 1: "#CBE7FE",
17
+ 2: "#98CDFD",
18
+ 3: "#65B2FC",
19
+ 4: "#3295FB",
20
+ 5: "#0064FA",
21
+ 6: "#0062D6",
22
+ 7: "#004FB3",
23
+ 8: "#003D8F",
24
+ 9: "#002C6B"
25
+ },
26
+ // Secondary - Light Blue
27
+ lightBlue: {
28
+ 0: "#E9F7FD",
29
+ 1: "#C9ECFC",
30
+ 2: "#95D8F8",
31
+ 3: "#62C3F5",
32
+ 4: "#30ACF1",
33
+ 5: "#0095EE",
34
+ 6: "#007BCA",
35
+ 7: "#0063A7",
36
+ 8: "#004B83",
37
+ 9: "#00355F"
38
+ },
39
+ // Success - Green
40
+ green: {
41
+ 0: "#ECF7EC",
42
+ 1: "#D0F0D1",
43
+ 2: "#A4E0A7",
44
+ 3: "#7DD182",
45
+ 4: "#5AC262",
46
+ 5: "#3BB346",
47
+ 6: "#30953B",
48
+ 7: "#25772F",
49
+ 8: "#1B5924",
50
+ 9: "#113C18"
51
+ },
52
+ // Danger - Red
53
+ red: {
54
+ 0: "#FEF2ED",
55
+ 1: "#FEDDD2",
56
+ 2: "#FDB7A5",
57
+ 3: "#FB9078",
58
+ 4: "#FA664C",
59
+ 5: "#F93920",
60
+ 6: "#D52515",
61
+ 7: "#B2140C",
62
+ 8: "#8E0805",
63
+ 9: "#6A0103"
64
+ },
65
+ // Warning - Orange
66
+ orange: {
67
+ 0: "#FFF8EA",
68
+ 1: "#FEEECC",
69
+ 2: "#FED998",
70
+ 3: "#FDC165",
71
+ 4: "#FDA633",
72
+ 5: "#FC8800",
73
+ 6: "#D26700",
74
+ 7: "#A84A00",
75
+ 8: "#7E3100",
76
+ 9: "#541D00"
77
+ },
78
+ // Yellow
79
+ yellow: {
80
+ 0: "#FFFDEA",
81
+ 1: "#FEFBCB",
82
+ 2: "#FDF398",
83
+ 3: "#FCE865",
84
+ 4: "#FBDA32",
85
+ 5: "#FAC800",
86
+ 6: "#D0AA00",
87
+ 7: "#A78B00",
88
+ 8: "#7D6A00",
89
+ 9: "#534800"
90
+ },
91
+ // Tertiary - Grey
92
+ grey: {
93
+ 0: "#F9F9F9",
94
+ 1: "#E6E8EA",
95
+ 2: "#C6CACD",
96
+ 3: "#A7ABB0",
97
+ 4: "#888D92",
98
+ 5: "#6B7075",
99
+ 6: "#555B61",
100
+ 7: "#41464C",
101
+ 8: "#2E3238",
102
+ 9: "#1C1F23"
103
+ },
104
+ // AI Colors - Purple
105
+ aiPurple: {
106
+ 0: "#F8EDFF",
107
+ 1: "#F2DAFF",
108
+ 2: "#E3B5FF",
109
+ 3: "#D191FF",
110
+ 4: "#BD6CFF",
111
+ 5: "#A647FF",
112
+ 6: "#8636DB",
113
+ 7: "#6928B8",
114
+ 8: "#4E1C94",
115
+ 9: "#361270"
116
+ },
117
+ // Cyan
118
+ cyan: {
119
+ 5: "#0095EE",
120
+ 6: "#007BCA",
121
+ 7: "#0063A7"
122
+ },
123
+ // Teal
124
+ teal: {
125
+ 5: "#02A783",
126
+ 6: "#018B6D",
127
+ 7: "#006F56"
128
+ },
129
+ // Pink
130
+ pink: {
131
+ 5: "#F5319D",
132
+ 6: "#CF2682",
133
+ 7: "#A91D69"
134
+ },
135
+ // Indigo
136
+ indigo: {
137
+ 5: "#4F46E5",
138
+ 6: "#4037C2",
139
+ 7: "#322B9E"
140
+ }
141
+ };
142
+ var semiTokens = {
143
+ // ========== Color System ==========
144
+ // Primary
145
+ colorPrimary: semiColors2.blue[5],
146
+ colorPrimaryHover: semiColors2.blue[6],
147
+ colorPrimaryActive: semiColors2.blue[7],
148
+ colorPrimaryBg: semiColors2.blue[0],
149
+ colorPrimaryBgHover: semiColors2.blue[1],
150
+ colorPrimaryBorder: semiColors2.blue[2],
151
+ colorPrimaryBorderHover: semiColors2.blue[3],
152
+ colorPrimaryText: semiColors2.blue[5],
153
+ colorPrimaryTextHover: semiColors2.blue[6],
154
+ colorPrimaryTextActive: semiColors2.blue[7],
155
+ // Info (same as primary)
156
+ colorInfo: semiColors2.blue[5],
157
+ colorInfoHover: semiColors2.blue[6],
158
+ colorInfoActive: semiColors2.blue[7],
159
+ colorInfoBg: semiColors2.blue[0],
160
+ colorInfoBgHover: semiColors2.blue[1],
161
+ colorInfoBorder: semiColors2.blue[2],
162
+ colorInfoBorderHover: semiColors2.blue[3],
163
+ colorInfoText: semiColors2.blue[5],
164
+ colorInfoTextHover: semiColors2.blue[6],
165
+ colorInfoTextActive: semiColors2.blue[7],
166
+ // Success
167
+ colorSuccess: semiColors2.green[5],
168
+ colorSuccessHover: semiColors2.green[6],
169
+ colorSuccessActive: semiColors2.green[7],
170
+ colorSuccessBg: semiColors2.green[0],
171
+ colorSuccessBgHover: semiColors2.green[1],
172
+ colorSuccessBorder: semiColors2.green[2],
173
+ colorSuccessBorderHover: semiColors2.green[3],
174
+ colorSuccessText: semiColors2.green[5],
175
+ colorSuccessTextHover: semiColors2.green[6],
176
+ colorSuccessTextActive: semiColors2.green[7],
177
+ // Warning
178
+ colorWarning: semiColors2.orange[5],
179
+ colorWarningHover: semiColors2.orange[6],
180
+ colorWarningActive: semiColors2.orange[7],
181
+ colorWarningBg: semiColors2.orange[0],
182
+ colorWarningBgHover: semiColors2.orange[1],
183
+ colorWarningBorder: semiColors2.orange[2],
184
+ colorWarningBorderHover: semiColors2.orange[3],
185
+ colorWarningText: semiColors2.orange[5],
186
+ colorWarningTextHover: semiColors2.orange[6],
187
+ colorWarningTextActive: semiColors2.orange[7],
188
+ // Error
189
+ colorError: semiColors2.red[5],
190
+ colorErrorHover: semiColors2.red[6],
191
+ colorErrorActive: semiColors2.red[7],
192
+ colorErrorBg: semiColors2.red[0],
193
+ colorErrorBgHover: semiColors2.red[1],
194
+ colorErrorBorder: semiColors2.red[2],
195
+ colorErrorBorderHover: semiColors2.red[3],
196
+ colorErrorText: semiColors2.red[5],
197
+ colorErrorTextHover: semiColors2.red[6],
198
+ colorErrorTextActive: semiColors2.red[7],
199
+ // Link
200
+ colorLink: semiColors2.blue[5],
201
+ colorLinkHover: semiColors2.blue[6],
202
+ colorLinkActive: semiColors2.blue[7],
203
+ // Text Colors (based on grey-9 with opacity)
204
+ colorText: "rgba(28, 31, 35, 1)",
205
+ // text-0: 100%
206
+ colorTextSecondary: "rgba(28, 31, 35, 0.8)",
207
+ // text-1: 80%
208
+ colorTextTertiary: "rgba(28, 31, 35, 0.62)",
209
+ // text-2: 62%
210
+ colorTextQuaternary: "rgba(28, 31, 35, 0.35)",
211
+ // text-3: 35%
212
+ colorTextDescription: "rgba(28, 31, 35, 0.62)",
213
+ colorTextDisabled: "rgba(28, 31, 35, 0.35)",
214
+ colorTextHeading: "rgba(28, 31, 35, 1)",
215
+ colorTextLabel: "rgba(28, 31, 35, 0.8)",
216
+ colorTextPlaceholder: "rgba(28, 31, 35, 0.35)",
217
+ colorTextLightSolid: "#ffffff",
218
+ // Background Colors
219
+ colorBgContainer: "#ffffff",
220
+ colorBgElevated: "#ffffff",
221
+ colorBgLayout: semiColors2.grey[0],
222
+ colorBgSpotlight: semiColors2.grey[7],
223
+ colorBgMask: "rgba(22, 22, 26, 0.6)",
224
+ // Fill Colors (Semi's fill-0/1/2)
225
+ colorFill: "rgba(46, 50, 56, 0.05)",
226
+ // fill-0
227
+ colorFillSecondary: "rgba(46, 50, 56, 0.09)",
228
+ // fill-1
229
+ colorFillTertiary: "rgba(46, 50, 56, 0.13)",
230
+ // fill-2
231
+ colorFillQuaternary: "rgba(46, 50, 56, 0.02)",
232
+ // Border Colors
233
+ colorBorder: "rgba(28, 31, 35, 0.08)",
234
+ colorBorderSecondary: "rgba(28, 31, 35, 0.06)",
235
+ // ========== Border Radius ==========
236
+ borderRadius: 3,
237
+ borderRadiusXS: 3,
238
+ borderRadiusSM: 3,
239
+ borderRadiusLG: 6,
240
+ borderRadiusOuter: 6,
241
+ // ========== Box Shadow ==========
242
+ boxShadow: "0 0 1px rgba(0, 0, 0, 0.3), 0 4px 14px rgba(0, 0, 0, 0.1)",
243
+ boxShadowSecondary: "0 0 1px rgba(0, 0, 0, 0.3), 0 4px 14px rgba(0, 0, 0, 0.1)",
244
+ boxShadowTertiary: "0 0 1px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.08)",
245
+ // ========== Typography ==========
246
+ fontFamily: "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif",
247
+ fontSize: 14,
248
+ fontSizeSM: 12,
249
+ fontSizeLG: 16,
250
+ fontSizeXL: 20,
251
+ fontSizeHeading1: 32,
252
+ fontSizeHeading2: 28,
253
+ fontSizeHeading3: 24,
254
+ fontSizeHeading4: 20,
255
+ fontSizeHeading5: 18,
256
+ fontWeightStrong: 600,
257
+ // ========== Line Height ==========
258
+ lineHeight: 1.5714285714285714,
259
+ lineHeightSM: 1.6666666666666667,
260
+ lineHeightLG: 1.5,
261
+ lineHeightHeading1: 1.25,
262
+ lineHeightHeading2: 1.2857142857142858,
263
+ lineHeightHeading3: 1.3333333333333333,
264
+ lineHeightHeading4: 1.4,
265
+ lineHeightHeading5: 1.3333333333333333,
266
+ // ========== Size ==========
267
+ controlHeight: 32,
268
+ controlHeightXS: 16,
269
+ controlHeightSM: 24,
270
+ controlHeightLG: 40,
271
+ // ========== Spacing ==========
272
+ padding: 16,
273
+ paddingXS: 8,
274
+ paddingXXS: 4,
275
+ paddingSM: 12,
276
+ paddingLG: 24,
277
+ paddingXL: 32,
278
+ paddingContentHorizontal: 16,
279
+ paddingContentHorizontalSM: 12,
280
+ paddingContentHorizontalLG: 24,
281
+ paddingContentVertical: 12,
282
+ paddingContentVerticalSM: 8,
283
+ paddingContentVerticalLG: 16,
284
+ margin: 16,
285
+ marginXS: 8,
286
+ marginXXS: 4,
287
+ marginSM: 12,
288
+ marginLG: 24,
289
+ marginXL: 32,
290
+ // ========== Motion ==========
291
+ motionDurationFast: "0.1s",
292
+ motionDurationMid: "0.2s",
293
+ motionDurationSlow: "0.3s",
294
+ motionEaseInOut: "cubic-bezier(0.4, 0, 0.2, 1)",
295
+ motionEaseOut: "cubic-bezier(0.0, 0, 0.2, 1)",
296
+ motionEaseIn: "cubic-bezier(0.4, 0, 1, 1)",
297
+ motionEaseOutBack: "cubic-bezier(0.12, 0.4, 0.29, 1.46)",
298
+ motionEaseInBack: "cubic-bezier(0.71, -0.46, 0.88, 0.6)",
299
+ motionEaseInQuint: "cubic-bezier(0.755, 0.05, 0.855, 0.06)",
300
+ motionEaseOutQuint: "cubic-bezier(0.23, 1, 0.32, 1)",
301
+ // ========== Z-Index ==========
302
+ zIndexPopupBase: 1e3,
303
+ zIndexBase: 0,
304
+ // ========== Wire Frame ==========
305
+ wireframe: false
306
+ };
307
+ var semiTokensDark = {
308
+ ...semiTokens,
309
+ // Override colors for dark mode
310
+ colorText: "rgba(249, 249, 249, 1)",
311
+ colorTextSecondary: "rgba(249, 249, 249, 0.8)",
312
+ colorTextTertiary: "rgba(249, 249, 249, 0.6)",
313
+ colorTextQuaternary: "rgba(249, 249, 249, 0.35)",
314
+ colorTextDescription: "rgba(249, 249, 249, 0.6)",
315
+ colorTextDisabled: "rgba(249, 249, 249, 0.35)",
316
+ colorTextHeading: "rgba(249, 249, 249, 1)",
317
+ colorTextLabel: "rgba(249, 249, 249, 0.8)",
318
+ colorTextPlaceholder: "rgba(249, 249, 249, 0.35)",
319
+ // Dark background hierarchy
320
+ colorBgContainer: "#232429",
321
+ colorBgElevated: "#35363C",
322
+ colorBgLayout: "#16161A",
323
+ colorBgSpotlight: "#4F5159",
324
+ colorBgMask: "rgba(22, 22, 26, 0.6)",
325
+ // Dark fill colors
326
+ colorFill: "rgba(255, 255, 255, 0.12)",
327
+ colorFillSecondary: "rgba(255, 255, 255, 0.16)",
328
+ colorFillTertiary: "rgba(255, 255, 255, 0.20)",
329
+ colorFillQuaternary: "rgba(255, 255, 255, 0.04)",
330
+ // Dark border colors
331
+ colorBorder: "rgba(255, 255, 255, 0.08)",
332
+ colorBorderSecondary: "rgba(255, 255, 255, 0.06)",
333
+ // Dark shadow
334
+ boxShadow: "inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 4px 14px rgba(0, 0, 0, 0.25)",
335
+ boxShadowSecondary: "inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 4px 14px rgba(0, 0, 0, 0.25)"
336
+ };
337
+
338
+ // src/antd/theme/components/index.ts
339
+ var componentTokens = {
340
+ // ========== Button ==========
341
+ // 按钮样式完全由 CSS 控制(src/styles/components/button.css)
342
+ // Token 配置已移除,避免维护两份配置
343
+ Button: {},
344
+ // ========== Input ==========
345
+ Input: {
346
+ borderRadius: 3,
347
+ borderRadiusLG: 3,
348
+ borderRadiusSM: 3,
349
+ colorBgContainer: "rgba(46, 50, 56, 0.05)",
350
+ colorBorder: "transparent",
351
+ hoverBorderColor: "transparent",
352
+ activeBorderColor: "#0064FA",
353
+ activeShadow: "none",
354
+ hoverBg: "rgba(46, 50, 56, 0.09)",
355
+ activeBg: "rgba(46, 50, 56, 0.05)",
356
+ addonBg: "rgba(46, 50, 56, 0.02)",
357
+ paddingInline: 12,
358
+ paddingInlineLG: 12,
359
+ paddingInlineSM: 8,
360
+ paddingBlock: 4,
361
+ paddingBlockLG: 7,
362
+ paddingBlockSM: 0,
363
+ inputFontSize: 14,
364
+ inputFontSizeLG: 14,
365
+ inputFontSizeSM: 12
366
+ },
367
+ // ========== InputNumber ==========
368
+ InputNumber: {
369
+ borderRadius: 3,
370
+ borderRadiusLG: 3,
371
+ borderRadiusSM: 3,
372
+ colorBgContainer: "rgba(46, 50, 56, 0.05)",
373
+ colorBorder: "transparent",
374
+ hoverBorderColor: "transparent",
375
+ activeBorderColor: "#0064FA",
376
+ activeShadow: "none",
377
+ handleBg: "transparent",
378
+ handleBorderColor: "transparent",
379
+ handleHoverColor: "#0064FA",
380
+ paddingInline: 12
381
+ },
382
+ // ========== Select ==========
383
+ Select: {
384
+ borderRadius: 3,
385
+ borderRadiusLG: 3,
386
+ borderRadiusSM: 3,
387
+ colorBgContainer: "rgba(46, 50, 56, 0.05)",
388
+ colorBorder: "transparent",
389
+ selectorBg: "rgba(46, 50, 56, 0.05)",
390
+ optionSelectedBg: "rgba(0, 100, 250, 0.1)",
391
+ optionSelectedColor: "#0064FA",
392
+ optionActiveBg: "rgba(46, 50, 56, 0.05)",
393
+ optionSelectedFontWeight: 400,
394
+ optionPadding: "8px 12px",
395
+ multipleItemBg: "rgba(46, 50, 56, 0.09)",
396
+ multipleItemBorderColor: "transparent",
397
+ singleItemHeightLG: 40
398
+ },
399
+ // ========== Cascader ==========
400
+ Cascader: {
401
+ borderRadius: 3,
402
+ colorBgContainer: "rgba(46, 50, 56, 0.05)",
403
+ colorBorder: "transparent",
404
+ optionSelectedBg: "rgba(0, 100, 250, 0.1)",
405
+ optionPadding: "8px 12px",
406
+ dropdownHeight: 180,
407
+ controlItemWidth: 120
408
+ },
409
+ // ========== TreeSelect ==========
410
+ TreeSelect: {
411
+ borderRadius: 3,
412
+ colorBgContainer: "rgba(46, 50, 56, 0.05)",
413
+ colorBorder: "transparent",
414
+ nodeSelectedBg: "rgba(0, 100, 250, 0.1)",
415
+ nodeHoverBg: "rgba(46, 50, 56, 0.05)"
416
+ },
417
+ // ========== DatePicker ==========
418
+ DatePicker: {
419
+ borderRadius: 3,
420
+ borderRadiusSM: 3,
421
+ borderRadiusLG: 3,
422
+ colorBgContainer: "rgba(46, 50, 56, 0.05)",
423
+ colorBorder: "transparent",
424
+ hoverBorderColor: "transparent",
425
+ activeBorderColor: "#0064FA",
426
+ activeShadow: "none",
427
+ cellWidth: 36,
428
+ cellHeight: 36,
429
+ cellActiveWithRangeBg: "rgba(0, 100, 250, 0.1)",
430
+ cellHoverBg: "rgba(46, 50, 56, 0.05)",
431
+ cellHoverWithRangeBg: "rgba(0, 100, 250, 0.1)",
432
+ cellRangeBorderColor: "#0064FA",
433
+ withoutTimeCellHeight: 56,
434
+ presetsWidth: 120
435
+ },
436
+ // ========== TimePicker ==========
437
+ TimePicker: {
438
+ borderRadius: 3,
439
+ colorBgContainer: "rgba(46, 50, 56, 0.05)",
440
+ colorBorder: "transparent",
441
+ itemActiveBg: "rgba(0, 100, 250, 0.1)"
442
+ },
443
+ // ========== Checkbox ==========
444
+ Checkbox: {
445
+ borderRadiusSM: 3,
446
+ colorBgContainer: "transparent",
447
+ colorBorder: "rgba(28, 31, 35, 0.35)",
448
+ colorPrimary: "#0064FA",
449
+ colorPrimaryHover: "#0062D6",
450
+ colorPrimaryBorder: "#0064FA"
451
+ },
452
+ // ========== Radio ==========
453
+ Radio: {
454
+ buttonSolidCheckedBg: "#0064FA",
455
+ buttonSolidCheckedColor: "#ffffff",
456
+ buttonSolidCheckedHoverBg: "#0062D6",
457
+ buttonSolidCheckedActiveBg: "#004FB3",
458
+ buttonBg: "transparent",
459
+ buttonCheckedBg: "transparent",
460
+ buttonColor: "rgba(28, 31, 35, 1)",
461
+ buttonCheckedBgDisabled: "rgba(46, 50, 56, 0.05)",
462
+ buttonCheckedColorDisabled: "rgba(28, 31, 35, 0.35)",
463
+ buttonPaddingInline: 16,
464
+ dotColorDisabled: "rgba(28, 31, 35, 0.35)",
465
+ dotSize: 8,
466
+ radioSize: 16,
467
+ wrapperMarginInlineEnd: 8
468
+ },
469
+ // ========== Switch ==========
470
+ Switch: {
471
+ colorPrimary: "#3BB346",
472
+ colorPrimaryHover: "#30953B",
473
+ handleBg: "#ffffff",
474
+ handleSize: 18,
475
+ handleSizeSM: 12,
476
+ trackHeight: 24,
477
+ trackHeightSM: 16,
478
+ trackMinWidth: 40,
479
+ trackMinWidthSM: 26,
480
+ trackPadding: 3,
481
+ innerMaxMargin: 24,
482
+ innerMinMargin: 6,
483
+ innerMaxMarginSM: 18,
484
+ innerMinMarginSM: 4
485
+ },
486
+ // ========== Slider ==========
487
+ Slider: {
488
+ borderRadiusXS: 3,
489
+ trackBg: "rgba(46, 50, 56, 0.2)",
490
+ trackBgDisabled: "rgba(46, 50, 56, 0.1)",
491
+ trackHoverBg: "rgba(46, 50, 56, 0.3)",
492
+ railBg: "rgba(46, 50, 56, 0.1)",
493
+ railHoverBg: "rgba(46, 50, 56, 0.15)",
494
+ handleColor: "#0064FA",
495
+ handleActiveColor: "#0064FA",
496
+ handleActiveOutlineColor: "rgba(0, 100, 250, 0.2)",
497
+ handleSize: 14,
498
+ handleSizeHover: 16,
499
+ handleLineWidth: 2,
500
+ handleLineWidthHover: 4,
501
+ dotSize: 8,
502
+ dotBorderColor: "rgba(46, 50, 56, 0.2)",
503
+ dotActiveBorderColor: "#0064FA",
504
+ railSize: 4
505
+ },
506
+ // ========== Rate ==========
507
+ Rate: {
508
+ starBg: "rgba(46, 50, 56, 0.05)",
509
+ starColor: "#FAC800",
510
+ starHoverScale: "scale(1.1)",
511
+ starSize: 20
512
+ },
513
+ // ========== Upload ==========
514
+ Upload: {
515
+ borderRadiusLG: 6,
516
+ colorBorder: "rgba(28, 31, 35, 0.08)",
517
+ colorFillAlter: "rgba(46, 50, 56, 0.02)"
518
+ },
519
+ // ========== Form ==========
520
+ Form: {
521
+ labelColor: "rgba(28, 31, 35, 1)",
522
+ labelFontSize: 14,
523
+ labelColonMarginInlineStart: 2,
524
+ labelColonMarginInlineEnd: 8,
525
+ labelRequiredMarkColor: "#F93920",
526
+ itemMarginBottom: 24,
527
+ verticalLabelMargin: "0 0 8px",
528
+ verticalLabelPadding: "0"
529
+ },
530
+ // ========== Table ==========
531
+ Table: {
532
+ borderRadius: 6,
533
+ borderRadiusLG: 6,
534
+ headerBg: "rgba(46, 50, 56, 0.02)",
535
+ headerColor: "rgba(28, 31, 35, 0.62)",
536
+ headerSortActiveBg: "rgba(46, 50, 56, 0.04)",
537
+ headerSortHoverBg: "rgba(46, 50, 56, 0.04)",
538
+ headerFilterHoverBg: "rgba(46, 50, 56, 0.05)",
539
+ headerSplitColor: "rgba(28, 31, 35, 0.08)",
540
+ bodySortBg: "rgba(46, 50, 56, 0.02)",
541
+ rowHoverBg: "rgba(46, 50, 56, 0.03)",
542
+ rowSelectedBg: "rgba(0, 100, 250, 0.08)",
543
+ rowSelectedHoverBg: "rgba(0, 100, 250, 0.12)",
544
+ rowExpandedBg: "rgba(46, 50, 56, 0.01)",
545
+ cellPaddingBlock: 16,
546
+ cellPaddingBlockMD: 12,
547
+ cellPaddingBlockSM: 8,
548
+ cellPaddingInline: 16,
549
+ cellPaddingInlineMD: 8,
550
+ cellPaddingInlineSM: 8,
551
+ cellFontSize: 14,
552
+ cellFontSizeMD: 14,
553
+ cellFontSizeSM: 12,
554
+ footerBg: "rgba(46, 50, 56, 0.02)",
555
+ footerColor: "rgba(28, 31, 35, 0.62)",
556
+ filterDropdownBg: "#ffffff",
557
+ filterDropdownMenuBg: "#ffffff",
558
+ fixedHeaderSortActiveBg: "rgba(46, 50, 56, 0.04)",
559
+ stickyScrollBarBg: "rgba(46, 50, 56, 0.35)",
560
+ stickyScrollBarBorderRadius: 4
561
+ },
562
+ // ========== Pagination ==========
563
+ Pagination: {
564
+ borderRadius: 3,
565
+ itemActiveBg: "rgba(0, 100, 250, 0.1)",
566
+ itemActiveColorDisabled: "rgba(28, 31, 35, 0.35)",
567
+ itemBg: "transparent",
568
+ itemInputBg: "rgba(46, 50, 56, 0.05)",
569
+ itemLinkBg: "transparent",
570
+ itemSize: 32,
571
+ itemSizeSM: 24,
572
+ miniOptionsSizeChangerTop: 0
573
+ },
574
+ // ========== Menu ==========
575
+ Menu: {
576
+ borderRadius: 3,
577
+ borderRadiusLG: 6,
578
+ itemBorderRadius: 3,
579
+ subMenuItemBorderRadius: 3,
580
+ colorItemBg: "transparent",
581
+ colorSubItemBg: "transparent",
582
+ colorItemBgActive: "transparent",
583
+ colorItemBgHover: "rgba(46, 50, 56, 0.05)",
584
+ colorItemBgSelected: "rgba(0, 100, 250, 0.1)",
585
+ colorActiveBarBorderSize: 0,
586
+ colorItemText: "rgba(28, 31, 35, 0.8)",
587
+ colorItemTextHover: "rgba(28, 31, 35, 1)",
588
+ colorItemTextSelected: "#0064FA",
589
+ colorItemTextDisabled: "rgba(28, 31, 35, 0.35)",
590
+ colorItemTextSelectedHorizontal: "#0064FA",
591
+ colorItemBgSelectedHorizontal: "transparent",
592
+ horizontalItemSelectedBg: "transparent",
593
+ horizontalItemSelectedColor: "#0064FA",
594
+ horizontalLineHeight: "48px",
595
+ itemHeight: 40,
596
+ itemMarginBlock: 4,
597
+ itemMarginInline: 4,
598
+ itemPaddingInline: 16,
599
+ iconSize: 16,
600
+ iconMarginInlineEnd: 10,
601
+ collapsedWidth: 80,
602
+ collapsedIconSize: 16,
603
+ popupBg: "#ffffff",
604
+ darkItemBg: "#16161A",
605
+ darkSubMenuItemBg: "#232429",
606
+ darkItemColor: "rgba(249, 249, 249, 0.8)",
607
+ darkItemHoverBg: "rgba(255, 255, 255, 0.12)",
608
+ darkItemHoverColor: "rgba(249, 249, 249, 1)",
609
+ darkItemSelectedBg: "rgba(0, 100, 250, 0.2)",
610
+ darkItemSelectedColor: "#84A9FF",
611
+ darkItemDisabledColor: "rgba(249, 249, 249, 0.35)",
612
+ darkPopupBg: "#35363C"
613
+ },
614
+ // ========== Dropdown ==========
615
+ Dropdown: {
616
+ borderRadiusLG: 6,
617
+ borderRadiusSM: 3,
618
+ controlItemBgHover: "rgba(46, 50, 56, 0.05)",
619
+ controlItemBgActive: "rgba(0, 100, 250, 0.1)",
620
+ controlItemBgActiveHover: "rgba(0, 100, 250, 0.15)",
621
+ colorBgElevated: "#ffffff",
622
+ colorText: "rgba(28, 31, 35, 1)",
623
+ colorTextDisabled: "rgba(28, 31, 35, 0.35)",
624
+ paddingBlock: 5
625
+ },
626
+ // ========== Tabs ==========
627
+ Tabs: {
628
+ borderRadius: 3,
629
+ borderRadiusLG: 6,
630
+ inkBarColor: "#0064FA",
631
+ itemActiveColor: "#0064FA",
632
+ itemSelectedColor: "#0064FA",
633
+ itemHoverColor: "#0062D6",
634
+ itemColor: "rgba(28, 31, 35, 0.8)",
635
+ titleFontSize: 14,
636
+ titleFontSizeLG: 16,
637
+ titleFontSizeSM: 12,
638
+ horizontalMargin: "0 0 16px 0",
639
+ horizontalItemMargin: "0 24px 0 0",
640
+ horizontalItemMarginRTL: "0 0 0 24px",
641
+ horizontalItemPadding: "12px 0",
642
+ horizontalItemPaddingLG: "16px 0",
643
+ horizontalItemPaddingSM: "8px 0",
644
+ verticalItemMargin: "0 0 16px 0",
645
+ verticalItemPadding: "8px 24px",
646
+ cardBg: "rgba(46, 50, 56, 0.02)",
647
+ cardHeight: 40,
648
+ cardPadding: "8px 16px",
649
+ cardGutter: 2
650
+ },
651
+ // ========== Breadcrumb ==========
652
+ Breadcrumb: {
653
+ itemColor: "rgba(28, 31, 35, 0.62)",
654
+ lastItemColor: "rgba(28, 31, 35, 1)",
655
+ linkColor: "rgba(28, 31, 35, 0.62)",
656
+ linkHoverColor: "#0064FA",
657
+ separatorColor: "rgba(28, 31, 35, 0.35)",
658
+ separatorMargin: 8,
659
+ iconFontSize: 14
660
+ },
661
+ // ========== Steps ==========
662
+ Steps: {
663
+ dotSize: 8,
664
+ dotCurrentSize: 10,
665
+ iconSize: 32,
666
+ iconSizeSM: 24,
667
+ iconFontSize: 16,
668
+ iconTop: 0,
669
+ navArrowColor: "rgba(28, 31, 35, 0.35)",
670
+ navContentMaxWidth: "auto",
671
+ titleLineHeight: 32,
672
+ descriptionMaxWidth: 140,
673
+ finishIconBorderColor: "#0064FA",
674
+ customIconFontSize: 24,
675
+ customIconSize: 32,
676
+ customIconTop: 0
677
+ },
678
+ // ========== Card ==========
679
+ Card: {
680
+ borderRadius: 6,
681
+ borderRadiusLG: 6,
682
+ colorBgContainer: "#ffffff",
683
+ colorBorderSecondary: "rgba(28, 31, 35, 0.08)",
684
+ headerBg: "transparent",
685
+ headerFontSize: 16,
686
+ headerFontSizeSM: 14,
687
+ headerHeight: 56,
688
+ headerHeightSM: 40,
689
+ actionsBg: "rgba(46, 50, 56, 0.02)",
690
+ actionsLiMargin: "12px 0",
691
+ tabsMarginBottom: -17,
692
+ extraColor: "rgba(28, 31, 35, 0.62)"
693
+ },
694
+ // ========== Collapse ==========
695
+ Collapse: {
696
+ borderRadiusLG: 6,
697
+ headerBg: "rgba(46, 50, 56, 0.02)",
698
+ headerPadding: "12px 16px",
699
+ contentBg: "#ffffff",
700
+ contentPadding: "16px",
701
+ colorBorder: "rgba(28, 31, 35, 0.08)"
702
+ },
703
+ // ========== Descriptions ==========
704
+ Descriptions: {
705
+ borderRadiusLG: 6,
706
+ titleMarginBottom: 20,
707
+ itemPaddingBottom: 16,
708
+ colonMarginRight: 8,
709
+ colonMarginLeft: 2,
710
+ contentColor: "rgba(28, 31, 35, 1)",
711
+ labelBg: "rgba(46, 50, 56, 0.02)",
712
+ titleColor: "rgba(28, 31, 35, 1)",
713
+ colorTextSecondary: "rgba(28, 31, 35, 0.62)",
714
+ colorSplit: "rgba(28, 31, 35, 0.08)",
715
+ extraColor: "rgba(28, 31, 35, 0.62)"
716
+ },
717
+ // ========== List ==========
718
+ List: {
719
+ borderRadiusLG: 6,
720
+ contentWidth: 220,
721
+ descriptionFontSize: 14,
722
+ emptyTextPadding: 16,
723
+ footerBg: "transparent",
724
+ headerBg: "transparent",
725
+ itemPadding: "12px 0",
726
+ itemPaddingLG: "16px 24px",
727
+ itemPaddingSM: "8px 16px",
728
+ metaMarginBottom: 16,
729
+ titleMarginBottom: 12,
730
+ avatarMarginRight: 16,
731
+ colorBorder: "rgba(28, 31, 35, 0.08)",
732
+ colorText: "rgba(28, 31, 35, 1)",
733
+ colorTextDescription: "rgba(28, 31, 35, 0.62)"
734
+ },
735
+ // ========== Tag ==========
736
+ Tag: {
737
+ borderRadiusSM: 3,
738
+ defaultBg: "rgba(46, 50, 56, 0.05)",
739
+ defaultColor: "rgba(28, 31, 35, 0.8)"
740
+ },
741
+ // ========== Badge ==========
742
+ Badge: {
743
+ dotSize: 8,
744
+ textFontSize: 12,
745
+ textFontSizeSM: 12,
746
+ textFontWeight: 400,
747
+ indicatorHeight: 20,
748
+ indicatorHeightSM: 14
749
+ },
750
+ // ========== Avatar ==========
751
+ Avatar: {
752
+ borderRadius: 3,
753
+ groupBorderColor: "#ffffff",
754
+ groupOverlapping: -8,
755
+ groupSpace: 4,
756
+ containerSize: 32,
757
+ containerSizeLG: 40,
758
+ containerSizeSM: 24,
759
+ textFontSize: 18,
760
+ textFontSizeLG: 24,
761
+ textFontSizeSM: 14
762
+ },
763
+ // ========== Tooltip ==========
764
+ Tooltip: {
765
+ borderRadius: 6,
766
+ colorBgSpotlight: "rgba(65, 70, 76, 1)",
767
+ colorTextLightSolid: "#ffffff"
768
+ },
769
+ // ========== Popover ==========
770
+ Popover: {
771
+ borderRadiusLG: 6,
772
+ colorBgElevated: "#ffffff",
773
+ titleMinWidth: 160
774
+ },
775
+ // ========== Popconfirm ==========
776
+ Popconfirm: {
777
+ colorWarning: "#FC8800"
778
+ },
779
+ // ========== Modal ==========
780
+ Modal: {
781
+ borderRadiusLG: 12,
782
+ borderRadiusSM: 6,
783
+ colorBgMask: "rgba(22, 22, 26, 0.6)",
784
+ contentBg: "#ffffff",
785
+ footerBg: "transparent",
786
+ headerBg: "#ffffff",
787
+ titleColor: "rgba(28, 31, 35, 1)",
788
+ titleFontSize: 16,
789
+ titleLineHeight: 1.5
790
+ },
791
+ // ========== Drawer ==========
792
+ Drawer: {
793
+ borderRadiusLG: 0,
794
+ colorBgElevated: "#ffffff",
795
+ colorBgMask: "rgba(22, 22, 26, 0.6)",
796
+ footerPaddingBlock: 16,
797
+ footerPaddingInline: 24
798
+ },
799
+ // ========== Message ==========
800
+ Message: {
801
+ borderRadiusLG: 6,
802
+ contentBg: "#ffffff",
803
+ contentPadding: "10px 16px"
804
+ },
805
+ // ========== Notification ==========
806
+ Notification: {
807
+ borderRadiusLG: 6,
808
+ width: 384
809
+ },
810
+ // ========== Progress ==========
811
+ Progress: {
812
+ circleTextFontSize: "1em",
813
+ defaultColor: "#0064FA",
814
+ lineBorderRadius: 100,
815
+ remainingColor: "rgba(46, 50, 56, 0.1)"
816
+ },
817
+ // ========== Alert ==========
818
+ Alert: {
819
+ borderRadiusLG: 6,
820
+ defaultPadding: "12px 16px",
821
+ withDescriptionPadding: "16px",
822
+ withDescriptionIconSize: 24
823
+ },
824
+ // ========== Spin ==========
825
+ Spin: {
826
+ dotSize: 20,
827
+ dotSizeLG: 32,
828
+ dotSizeSM: 14,
829
+ contentHeight: 400
830
+ },
831
+ // ========== Skeleton ==========
832
+ Skeleton: {
833
+ borderRadiusSM: 3,
834
+ color: "rgba(46, 50, 56, 0.11)",
835
+ colorGradientEnd: "rgba(46, 50, 56, 0.11)",
836
+ gradientFromColor: "rgba(46, 50, 56, 0.11)",
837
+ gradientToColor: "rgba(46, 50, 56, 0.05)",
838
+ titleHeight: 16,
839
+ blockRadius: 3,
840
+ paragraphLiHeight: 16,
841
+ paragraphMarginTop: 28
842
+ },
843
+ // ========== Result ==========
844
+ Result: {
845
+ titleFontSize: 24,
846
+ subtitleFontSize: 14,
847
+ iconFontSize: 72,
848
+ extraMargin: "24px 0 0 0"
849
+ },
850
+ // ========== Empty ==========
851
+ Empty: {
852
+ colorText: "rgba(28, 31, 35, 0.35)",
853
+ colorTextDisabled: "rgba(28, 31, 35, 0.35)"
854
+ },
855
+ // ========== Timeline ==========
856
+ Timeline: {
857
+ dotBg: "#ffffff",
858
+ dotBorderWidth: 2,
859
+ itemHeadSize: 10,
860
+ itemPaddingBottom: 20,
861
+ tailColor: "rgba(28, 31, 35, 0.15)",
862
+ tailWidth: 2
863
+ },
864
+ // ========== Tree ==========
865
+ Tree: {
866
+ borderRadius: 3,
867
+ directoryNodeSelectedBg: "rgba(0, 100, 250, 0.1)",
868
+ directoryNodeSelectedColor: "#0064FA",
869
+ nodeHoverBg: "rgba(46, 50, 56, 0.05)",
870
+ nodeSelectedBg: "rgba(0, 100, 250, 0.1)",
871
+ titleHeight: 24
872
+ },
873
+ // ========== Transfer ==========
874
+ Transfer: {
875
+ listHeight: 200,
876
+ listWidth: 180,
877
+ listWidthLG: 250,
878
+ headerHeight: 40,
879
+ itemHeight: 32,
880
+ itemPaddingBlock: 5
881
+ },
882
+ // ========== Divider ==========
883
+ Divider: {
884
+ colorSplit: "rgba(28, 31, 35, 0.08)",
885
+ textPaddingInline: "1em",
886
+ orientationMargin: 0.05
887
+ },
888
+ // ========== Space ==========
889
+ Space: {},
890
+ // ========== Anchor ==========
891
+ Anchor: {
892
+ borderRadius: 3,
893
+ linkPaddingBlock: 4,
894
+ linkPaddingInlineStart: 16
895
+ },
896
+ // ========== Affix ==========
897
+ Affix: {},
898
+ // ========== BackTop ==========
899
+ BackTop: {
900
+ zIndexPopup: 10
901
+ },
902
+ // ========== ColorPicker ==========
903
+ ColorPicker: {
904
+ borderRadius: 3,
905
+ borderRadiusSM: 3,
906
+ borderRadiusXS: 3
907
+ },
908
+ // ========== Segmented ==========
909
+ Segmented: {
910
+ borderRadius: 3,
911
+ borderRadiusSM: 3,
912
+ borderRadiusXS: 2,
913
+ itemActiveBg: "rgba(46, 50, 56, 0.13)",
914
+ itemColor: "rgba(28, 31, 35, 0.8)",
915
+ itemHoverBg: "rgba(46, 50, 56, 0.09)",
916
+ itemHoverColor: "rgba(28, 31, 35, 1)",
917
+ itemSelectedBg: "#ffffff",
918
+ itemSelectedColor: "rgba(28, 31, 35, 1)",
919
+ trackBg: "rgba(46, 50, 56, 0.05)",
920
+ trackPadding: 2
921
+ },
922
+ // ========== Tour ==========
923
+ Tour: {
924
+ borderRadiusLG: 12,
925
+ colorBgElevated: "#ffffff",
926
+ primaryNextBtnHoverBg: "#0062D6",
927
+ primaryPrevBtnBg: "#ffffff",
928
+ closeBtnSize: 22
929
+ },
930
+ // ========== QRCode ==========
931
+ QRCode: {
932
+ borderRadiusLG: 6
933
+ },
934
+ // ========== Image ==========
935
+ Image: {
936
+ previewOperationColor: "rgba(255, 255, 255, 0.65)",
937
+ previewOperationColorDisabled: "rgba(255, 255, 255, 0.25)",
938
+ previewOperationHoverColor: "rgba(255, 255, 255, 0.85)",
939
+ previewOperationSize: 18
940
+ },
941
+ // ========== Watermark ==========
942
+ Watermark: {},
943
+ // ========== FloatButton ==========
944
+ FloatButton: {
945
+ borderRadiusLG: 50
946
+ },
947
+ // ========== Mentions ==========
948
+ Mentions: {
949
+ borderRadius: 3,
950
+ colorBgContainer: "rgba(46, 50, 56, 0.05)",
951
+ colorBorder: "transparent",
952
+ dropdownHeight: 250,
953
+ zIndexPopup: 1050,
954
+ controlItemBgHover: "rgba(46, 50, 56, 0.05)"
955
+ },
956
+ // ========== AutoComplete ==========
957
+ AutoComplete: {
958
+ borderRadius: 3,
959
+ colorBgContainer: "rgba(46, 50, 56, 0.05)",
960
+ colorBorder: "transparent"
961
+ },
962
+ // ========== Calendar ==========
963
+ Calendar: {
964
+ fullBg: "#ffffff",
965
+ fullPanelBg: "#ffffff",
966
+ itemActiveBg: "rgba(0, 100, 250, 0.1)",
967
+ miniContentHeight: 256,
968
+ monthControlWidth: 80,
969
+ yearControlWidth: 80
970
+ },
971
+ // ========== Carousel ==========
972
+ Carousel: {
973
+ dotWidth: 16,
974
+ dotHeight: 3,
975
+ dotActiveWidth: 24,
976
+ dotOffset: 12
977
+ },
978
+ // ========== Statistic ==========
979
+ Statistic: {
980
+ contentFontSize: 24,
981
+ titleFontSize: 14
982
+ },
983
+ // ========== Typography ==========
984
+ Typography: {
985
+ titleMarginBottom: "0.5em",
986
+ titleMarginTop: "1.2em"
987
+ },
988
+ // ========== Layout ==========
989
+ Layout: {
990
+ bodyBg: "#F9F9F9",
991
+ headerBg: "#ffffff",
992
+ headerColor: "rgba(28, 31, 35, 1)",
993
+ headerHeight: 64,
994
+ headerPadding: "0 24px",
995
+ footerBg: "#ffffff",
996
+ footerPadding: "24px 50px",
997
+ siderBg: "#ffffff",
998
+ triggerBg: "rgba(46, 50, 56, 0.05)",
999
+ triggerColor: "rgba(28, 31, 35, 0.8)",
1000
+ triggerHeight: 48,
1001
+ lightTriggerBg: "#ffffff",
1002
+ lightTriggerColor: "rgba(28, 31, 35, 0.8)",
1003
+ lightSiderBg: "#ffffff",
1004
+ zeroTriggerHeight: 42,
1005
+ zeroTriggerWidth: 36
1006
+ },
1007
+ // ========== Grid ==========
1008
+ Grid: {}
1009
+ // ========== Typography Link ==========
1010
+ // 链接样式在 Typography 中处理
1011
+ // ========== InputTextArea ==========
1012
+ // TextArea 继承 Input 样式
1013
+ // ========== Banner (Alert 变体) ==========
1014
+ // Banner 在 Alert 中处理
1015
+ // ========== SideSheet (Drawer 变体) ==========
1016
+ // SideSheet = Drawer,已在 Drawer 中配置
1017
+ // ========== Toast (Message 变体) ==========
1018
+ // Toast = Message,已在 Message 中配置
1019
+ // ========== Navigation (Menu 变体) ==========
1020
+ // Navigation = Menu,已在 Menu 中配置
1021
+ // ========== Rating (Rate 别名) ==========
1022
+ // Rating = Rate,已在 Rate 中配置
1023
+ // ========== TagInput ==========
1024
+ // Ant Design Vue 中对应 Select mode="tags"
1025
+ // ========== ScrollList ==========
1026
+ // 使用 List 配置
1027
+ // ========== Highlight ==========
1028
+ // 使用 Typography 配置
1029
+ // ========== Collapsible ==========
1030
+ // 使用 Collapse 配置
1031
+ // ========== ConfigProvider ==========
1032
+ // 逻辑组件,无样式
1033
+ // ========== LocaleProvider ==========
1034
+ // 逻辑组件,无样式
1035
+ };
1036
+ var componentTokensDark = {
1037
+ ...componentTokens,
1038
+ // Override specific components for dark mode
1039
+ Button: {
1040
+ ...componentTokens.Button,
1041
+ // Dark 模式: 深色填充
1042
+ defaultBg: "rgba(255, 255, 255, 0.12)",
1043
+ // dark fill-0
1044
+ defaultBorderColor: "transparent",
1045
+ defaultColor: "rgba(249, 249, 249, 0.8)",
1046
+ // dark text-1
1047
+ defaultHoverBg: "rgba(255, 255, 255, 0.16)",
1048
+ // dark fill-1
1049
+ defaultHoverBorderColor: "transparent",
1050
+ defaultHoverColor: "rgba(249, 249, 249, 1)",
1051
+ // dark text-0
1052
+ defaultActiveBg: "rgba(255, 255, 255, 0.20)",
1053
+ // dark fill-2
1054
+ defaultActiveColor: "rgba(249, 249, 249, 1)",
1055
+ // Ghost 按钮
1056
+ defaultGhostColor: "rgba(249, 249, 249, 0.8)",
1057
+ defaultGhostBorderColor: "rgba(255, 255, 255, 0.08)",
1058
+ // Text 按钮
1059
+ textHoverBg: "rgba(255, 255, 255, 0.12)"
1060
+ },
1061
+ Input: {
1062
+ ...componentTokens.Input,
1063
+ colorBgContainer: "rgba(255, 255, 255, 0.12)",
1064
+ hoverBg: "rgba(255, 255, 255, 0.16)",
1065
+ activeBg: "rgba(255, 255, 255, 0.12)",
1066
+ addonBg: "rgba(255, 255, 255, 0.04)"
1067
+ },
1068
+ Select: {
1069
+ ...componentTokens.Select,
1070
+ colorBgContainer: "rgba(255, 255, 255, 0.12)",
1071
+ selectorBg: "rgba(255, 255, 255, 0.12)",
1072
+ optionActiveBg: "rgba(255, 255, 255, 0.12)",
1073
+ optionSelectedBg: "rgba(0, 100, 250, 0.2)",
1074
+ multipleItemBg: "rgba(255, 255, 255, 0.16)"
1075
+ },
1076
+ Table: {
1077
+ ...componentTokens.Table,
1078
+ headerBg: "rgba(255, 255, 255, 0.04)",
1079
+ headerColor: "rgba(249, 249, 249, 0.6)",
1080
+ headerSortActiveBg: "rgba(255, 255, 255, 0.08)",
1081
+ headerSortHoverBg: "rgba(255, 255, 255, 0.08)",
1082
+ bodySortBg: "rgba(255, 255, 255, 0.04)",
1083
+ rowHoverBg: "rgba(255, 255, 255, 0.06)",
1084
+ rowSelectedBg: "rgba(0, 100, 250, 0.16)",
1085
+ rowSelectedHoverBg: "rgba(0, 100, 250, 0.2)",
1086
+ rowExpandedBg: "rgba(255, 255, 255, 0.02)",
1087
+ footerBg: "rgba(255, 255, 255, 0.04)",
1088
+ footerColor: "rgba(249, 249, 249, 0.6)",
1089
+ colorBgContainer: "#232429"
1090
+ },
1091
+ Card: {
1092
+ ...componentTokens.Card,
1093
+ colorBgContainer: "#35363C",
1094
+ actionsBg: "rgba(255, 255, 255, 0.04)"
1095
+ },
1096
+ Modal: {
1097
+ ...componentTokens.Modal,
1098
+ contentBg: "#35363C",
1099
+ headerBg: "#35363C"
1100
+ },
1101
+ Drawer: {
1102
+ ...componentTokens.Drawer,
1103
+ colorBgElevated: "#35363C"
1104
+ },
1105
+ Dropdown: {
1106
+ ...componentTokens.Dropdown,
1107
+ colorBgElevated: "#35363C",
1108
+ controlItemBgHover: "rgba(255, 255, 255, 0.12)",
1109
+ controlItemBgActive: "rgba(0, 100, 250, 0.2)",
1110
+ colorText: "rgba(249, 249, 249, 1)",
1111
+ colorTextDisabled: "rgba(249, 249, 249, 0.35)"
1112
+ },
1113
+ Popover: {
1114
+ ...componentTokens.Popover,
1115
+ colorBgElevated: "#35363C"
1116
+ },
1117
+ Message: {
1118
+ ...componentTokens.Message,
1119
+ contentBg: "#43444A"
1120
+ },
1121
+ Collapse: {
1122
+ ...componentTokens.Collapse,
1123
+ headerBg: "rgba(255, 255, 255, 0.04)",
1124
+ contentBg: "#232429"
1125
+ },
1126
+ Skeleton: {
1127
+ ...componentTokens.Skeleton,
1128
+ color: "rgba(255, 255, 255, 0.11)",
1129
+ colorGradientEnd: "rgba(255, 255, 255, 0.11)",
1130
+ gradientFromColor: "rgba(255, 255, 255, 0.11)",
1131
+ gradientToColor: "rgba(255, 255, 255, 0.05)"
1132
+ },
1133
+ Segmented: {
1134
+ ...componentTokens.Segmented,
1135
+ itemActiveBg: "rgba(255, 255, 255, 0.20)",
1136
+ itemColor: "rgba(249, 249, 249, 0.8)",
1137
+ itemHoverBg: "rgba(255, 255, 255, 0.16)",
1138
+ itemHoverColor: "rgba(249, 249, 249, 1)",
1139
+ itemSelectedBg: "#4F5159",
1140
+ itemSelectedColor: "rgba(249, 249, 249, 1)",
1141
+ trackBg: "rgba(255, 255, 255, 0.12)"
1142
+ },
1143
+ Tour: {
1144
+ ...componentTokens.Tour,
1145
+ colorBgElevated: "#35363C"
1146
+ },
1147
+ Calendar: {
1148
+ ...componentTokens.Calendar,
1149
+ fullBg: "#232429",
1150
+ fullPanelBg: "#232429"
1151
+ },
1152
+ // 补充更多深色模式组件
1153
+ InputNumber: {
1154
+ ...componentTokens.InputNumber,
1155
+ colorBgContainer: "rgba(255, 255, 255, 0.12)"
1156
+ },
1157
+ Cascader: {
1158
+ ...componentTokens.Cascader,
1159
+ colorBgContainer: "rgba(255, 255, 255, 0.12)",
1160
+ optionSelectedBg: "rgba(0, 100, 250, 0.2)"
1161
+ },
1162
+ TreeSelect: {
1163
+ ...componentTokens.TreeSelect,
1164
+ colorBgContainer: "rgba(255, 255, 255, 0.12)",
1165
+ nodeSelectedBg: "rgba(0, 100, 250, 0.2)",
1166
+ nodeHoverBg: "rgba(255, 255, 255, 0.12)"
1167
+ },
1168
+ DatePicker: {
1169
+ ...componentTokens.DatePicker,
1170
+ colorBgContainer: "rgba(255, 255, 255, 0.12)",
1171
+ cellActiveWithRangeBg: "rgba(0, 100, 250, 0.2)",
1172
+ cellHoverWithRangeBg: "rgba(0, 100, 250, 0.2)"
1173
+ },
1174
+ TimePicker: {
1175
+ ...componentTokens.TimePicker,
1176
+ colorBgContainer: "rgba(255, 255, 255, 0.12)",
1177
+ itemActiveBg: "rgba(0, 100, 250, 0.2)"
1178
+ },
1179
+ Pagination: {
1180
+ ...componentTokens.Pagination,
1181
+ itemActiveBg: "rgba(0, 100, 250, 0.2)",
1182
+ itemInputBg: "rgba(255, 255, 255, 0.12)"
1183
+ },
1184
+ Menu: {
1185
+ ...componentTokens.Menu,
1186
+ colorItemBg: "transparent",
1187
+ colorItemBgHover: "rgba(255, 255, 255, 0.12)",
1188
+ colorItemBgSelected: "rgba(0, 100, 250, 0.2)",
1189
+ colorItemText: "rgba(249, 249, 249, 0.8)",
1190
+ colorItemTextHover: "rgba(249, 249, 249, 1)",
1191
+ colorItemTextSelected: "#84A9FF",
1192
+ popupBg: "#35363C"
1193
+ },
1194
+ Tabs: {
1195
+ ...componentTokens.Tabs,
1196
+ cardBg: "rgba(255, 255, 255, 0.04)"
1197
+ },
1198
+ Tag: {
1199
+ ...componentTokens.Tag,
1200
+ defaultBg: "rgba(255, 255, 255, 0.12)",
1201
+ defaultColor: "rgba(249, 249, 249, 0.8)"
1202
+ },
1203
+ List: {
1204
+ ...componentTokens.List,
1205
+ colorText: "rgba(249, 249, 249, 1)",
1206
+ colorTextDescription: "rgba(249, 249, 249, 0.6)"
1207
+ },
1208
+ Descriptions: {
1209
+ ...componentTokens.Descriptions,
1210
+ labelBg: "rgba(255, 255, 255, 0.04)",
1211
+ contentColor: "rgba(249, 249, 249, 1)",
1212
+ titleColor: "rgba(249, 249, 249, 1)",
1213
+ colorTextSecondary: "rgba(249, 249, 249, 0.6)"
1214
+ },
1215
+ Tooltip: {
1216
+ ...componentTokens.Tooltip,
1217
+ colorBgSpotlight: "rgba(79, 81, 89, 1)"
1218
+ },
1219
+ Notification: {
1220
+ ...componentTokens.Notification
1221
+ },
1222
+ Alert: {
1223
+ ...componentTokens.Alert
1224
+ },
1225
+ Tree: {
1226
+ ...componentTokens.Tree,
1227
+ nodeHoverBg: "rgba(255, 255, 255, 0.12)",
1228
+ nodeSelectedBg: "rgba(0, 100, 250, 0.2)",
1229
+ directoryNodeSelectedBg: "rgba(0, 100, 250, 0.2)"
1230
+ },
1231
+ Transfer: {
1232
+ ...componentTokens.Transfer
1233
+ },
1234
+ Empty: {
1235
+ ...componentTokens.Empty,
1236
+ colorText: "rgba(249, 249, 249, 0.35)",
1237
+ colorTextDisabled: "rgba(249, 249, 249, 0.35)"
1238
+ },
1239
+ Upload: {
1240
+ ...componentTokens.Upload,
1241
+ colorFillAlter: "rgba(255, 255, 255, 0.04)"
1242
+ },
1243
+ Form: {
1244
+ ...componentTokens.Form,
1245
+ labelColor: "rgba(249, 249, 249, 1)"
1246
+ },
1247
+ Anchor: {
1248
+ ...componentTokens.Anchor
1249
+ },
1250
+ Mentions: {
1251
+ ...componentTokens.Mentions,
1252
+ colorBgContainer: "rgba(255, 255, 255, 0.12)",
1253
+ controlItemBgHover: "rgba(255, 255, 255, 0.12)"
1254
+ },
1255
+ AutoComplete: {
1256
+ ...componentTokens.AutoComplete,
1257
+ colorBgContainer: "rgba(255, 255, 255, 0.12)"
1258
+ },
1259
+ Carousel: {
1260
+ ...componentTokens.Carousel
1261
+ },
1262
+ FloatButton: {
1263
+ ...componentTokens.FloatButton
1264
+ },
1265
+ Layout: {
1266
+ ...componentTokens.Layout,
1267
+ bodyBg: "#16161A",
1268
+ headerBg: "#232429",
1269
+ headerColor: "rgba(249, 249, 249, 1)",
1270
+ footerBg: "#232429",
1271
+ siderBg: "#232429",
1272
+ triggerBg: "rgba(255, 255, 255, 0.12)",
1273
+ triggerColor: "rgba(249, 249, 249, 0.8)",
1274
+ lightTriggerBg: "#35363C",
1275
+ lightTriggerColor: "rgba(249, 249, 249, 0.8)",
1276
+ lightSiderBg: "#35363C"
1277
+ },
1278
+ Statistic: {
1279
+ ...componentTokens.Statistic
1280
+ },
1281
+ Result: {
1282
+ ...componentTokens.Result
1283
+ },
1284
+ Steps: {
1285
+ ...componentTokens.Steps
1286
+ },
1287
+ Progress: {
1288
+ ...componentTokens.Progress
1289
+ },
1290
+ Rate: {
1291
+ ...componentTokens.Rate
1292
+ },
1293
+ Slider: {
1294
+ ...componentTokens.Slider
1295
+ },
1296
+ Switch: {
1297
+ ...componentTokens.Switch
1298
+ },
1299
+ Checkbox: {
1300
+ ...componentTokens.Checkbox
1301
+ },
1302
+ Radio: {
1303
+ ...componentTokens.Radio
1304
+ },
1305
+ ColorPicker: {
1306
+ ...componentTokens.ColorPicker
1307
+ },
1308
+ QRCode: {
1309
+ ...componentTokens.QRCode
1310
+ },
1311
+ Watermark: {
1312
+ ...componentTokens.Watermark
1313
+ },
1314
+ Affix: {
1315
+ ...componentTokens.Affix
1316
+ },
1317
+ BackTop: {
1318
+ ...componentTokens.BackTop
1319
+ },
1320
+ Breadcrumb: {
1321
+ ...componentTokens.Breadcrumb,
1322
+ itemColor: "rgba(249, 249, 249, 0.6)",
1323
+ lastItemColor: "rgba(249, 249, 249, 1)",
1324
+ linkColor: "rgba(249, 249, 249, 0.6)",
1325
+ separatorColor: "rgba(249, 249, 249, 0.35)"
1326
+ },
1327
+ Avatar: {
1328
+ ...componentTokens.Avatar,
1329
+ groupBorderColor: "#232429"
1330
+ },
1331
+ Badge: {
1332
+ ...componentTokens.Badge
1333
+ },
1334
+ Image: {
1335
+ ...componentTokens.Image
1336
+ },
1337
+ Spin: {
1338
+ ...componentTokens.Spin
1339
+ },
1340
+ // Alert already defined above at line ~997, removed duplicate
1341
+ Popconfirm: {
1342
+ ...componentTokens.Popconfirm
1343
+ },
1344
+ Timeline: {
1345
+ ...componentTokens.Timeline,
1346
+ dotBg: "#232429",
1347
+ tailColor: "rgba(249, 249, 249, 0.15)"
1348
+ },
1349
+ Divider: {
1350
+ ...componentTokens.Divider,
1351
+ colorSplit: "rgba(255, 255, 255, 0.08)"
1352
+ }
1353
+ };
1354
+
1355
+ // src/antd/theme/index.ts
1356
+ var semiTheme = {
1357
+ token: semiTokens,
1358
+ components: componentTokens
1359
+ };
1360
+ var semiThemeDark = {
1361
+ token: semiTokensDark,
1362
+ components: componentTokensDark
1363
+ };
1364
+ export {
1365
+ SUPPORTED_COMPONENTS,
1366
+ SemiThemePlugin,
1367
+ componentTokens,
1368
+ componentTokensDark,
1369
+ semiColors as coreColors,
1370
+ createSemiTheme,
1371
+ createSemiTheme as default,
1372
+ semiColors2 as semiColors,
1373
+ semiColorsRGB,
1374
+ semiTheme,
1375
+ semiThemeDark,
1376
+ semiTokens,
1377
+ semiTokensDark
1378
+ };