@admin-core/design 0.2.0 → 0.2.1

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 (38) hide show
  1. package/README.en.md +698 -0
  2. package/README.md +574 -181
  3. package/dist/index.cjs +4 -4
  4. package/dist/index.cjs.map +1 -1
  5. package/dist/index.js +1142 -877
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.umd.js +4 -4
  8. package/dist/index.umd.js.map +1 -1
  9. package/dist/theme/constants.d.ts +5 -0
  10. package/dist/theme/constants.d.ts.map +1 -1
  11. package/dist/theme/i18n/en-US.d.ts +3 -0
  12. package/dist/theme/i18n/en-US.d.ts.map +1 -0
  13. package/dist/theme/i18n/index.d.ts +34 -0
  14. package/dist/theme/i18n/index.d.ts.map +1 -0
  15. package/dist/theme/i18n/zh-CN.d.ts +69 -0
  16. package/dist/theme/i18n/zh-CN.d.ts.map +1 -0
  17. package/dist/theme/index.d.ts +4 -2
  18. package/dist/theme/index.d.ts.map +1 -1
  19. package/dist/theme/integration.d.ts +124 -0
  20. package/dist/theme/integration.d.ts.map +1 -0
  21. package/dist/theme/utils.d.ts +1 -1
  22. package/dist/theme/utils.d.ts.map +1 -1
  23. package/package.json +18 -11
  24. package/src/css/base.css +145 -0
  25. package/src/css/components.css +96 -0
  26. package/src/css/index.css +21 -0
  27. package/src/css/integrations/ant-design-vue.css +64 -0
  28. package/src/css/integrations/arco-design.css +62 -0
  29. package/src/css/integrations/element-plus.css +157 -0
  30. package/src/css/integrations/index.css +17 -0
  31. package/src/css/integrations/naive-ui.css +60 -0
  32. package/src/css/nprogress.css +74 -0
  33. package/src/css/transition.css +256 -0
  34. package/src/css/ui.css +117 -0
  35. package/src/css/utilities.css +138 -0
  36. package/src/tokens/dark.css +406 -0
  37. package/src/tokens/index.ts +6 -0
  38. package/src/tokens/light.css +297 -0
@@ -0,0 +1,297 @@
1
+ /**
2
+ * 浅色主题 CSS 变量定义 - 2026流行色系列
3
+ */
4
+ :root {
5
+ --popup-z-index: 2000;
6
+ --font-family: -apple-system, blinkmacsystemfont, 'Segoe UI', roboto, 'Helvetica Neue', arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
7
+ --background: 0 0% 100%;
8
+ --background-deep: 216 20.11% 95.47%;
9
+ --foreground: 210 6% 21%;
10
+ --card: 0 0% 100%;
11
+ --card-foreground: 222.2 84% 4.9%;
12
+ --popover: 0 0% 100%;
13
+ --popover-foreground: 222.2 84% 4.9%;
14
+ --muted: 240 4.8% 95.9%;
15
+ --muted-foreground: 240 3.8% 46.1%;
16
+ --primary: 212 100% 48%;
17
+ --primary-foreground: 0 0% 98%;
18
+ --destructive: 359.33 100% 65.1%;
19
+ --destructive-foreground: 0 0% 98%;
20
+ --info: 240 5% 96%;
21
+ --info-foreground: 220 4% 58%;
22
+ --success: 144 57% 58%;
23
+ --success-foreground: 0 0% 98%;
24
+ --warning: 42 84% 61%;
25
+ --warning-foreground: 0 0% 98%;
26
+ --secondary: 240 5% 96%;
27
+ --secondary-foreground: 240 6% 10%;
28
+ --accent: 240 5% 96%;
29
+ --accent-foreground: 240 6% 10%;
30
+ --border: 240 5.9% 90%;
31
+ --input: 240 5.88% 90%;
32
+ --input-placeholder: 217 10.6% 65%;
33
+ --input-background: 0 0% 100%;
34
+ --ring: 222.2 84% 4.9%;
35
+ --radius: 0.5rem;
36
+ --overlay: 0 0% 0% / 45%;
37
+ --overlay-content: 0 0% 95% / 45%;
38
+ --font-size-base: 16px;
39
+ --sidebar: 0 0% 100%;
40
+ --sidebar-deep: 0 0% 100%;
41
+ --menu: var(--sidebar);
42
+ --header: 0 0% 100%;
43
+ accent-color: var(--primary);
44
+ color-scheme: light;
45
+ }
46
+
47
+ [data-theme='slate'] {
48
+ --primary: 215 20% 40%;
49
+ --foreground: 215 25% 15%;
50
+ --card-foreground: 215 25% 15%;
51
+ --popover-foreground: 215 25% 15%;
52
+ --primary-foreground: 0 0% 98%;
53
+ --secondary: 215 15% 92%;
54
+ --secondary-foreground: 215 25% 20%;
55
+ --muted: 215 15% 92%;
56
+ --muted-foreground: 215 10% 45%;
57
+ --accent: 215 15% 88%;
58
+ --accent-foreground: 215 25% 20%;
59
+ --destructive: 0 84.2% 60.2%;
60
+ --border: 215 15% 85%;
61
+ --input: 215 15% 85%;
62
+ --ring: 215 20% 40%;
63
+ }
64
+
65
+ [data-theme='burnished-lilac'] {
66
+ --primary: 280 35% 65%;
67
+ --foreground: 280 20% 15%;
68
+ --card-foreground: 280 20% 15%;
69
+ --popover-foreground: 280 20% 15%;
70
+ --primary-foreground: 0 0% 98%;
71
+ --secondary: 280 25% 92%;
72
+ --secondary-foreground: 280 30% 20%;
73
+ --muted: 280 25% 92%;
74
+ --muted-foreground: 280 15% 45%;
75
+ --accent: 280 25% 88%;
76
+ --accent-foreground: 280 30% 20%;
77
+ --destructive: 0 84.2% 60.2%;
78
+ --border: 280 20% 85%;
79
+ --input: 280 20% 85%;
80
+ --ring: 280 35% 65%;
81
+ }
82
+
83
+ [data-theme='teaberry'] {
84
+ --primary: 345 75% 55%;
85
+ --foreground: 345 30% 15%;
86
+ --card-foreground: 345 30% 15%;
87
+ --popover-foreground: 345 30% 15%;
88
+ --primary-foreground: 0 0% 98%;
89
+ --secondary: 345 40% 92%;
90
+ --secondary-foreground: 345 40% 20%;
91
+ --muted: 345 40% 92%;
92
+ --muted-foreground: 345 20% 45%;
93
+ --accent: 345 40% 88%;
94
+ --accent-foreground: 345 40% 20%;
95
+ --destructive: 0 84.2% 60.2%;
96
+ --border: 345 30% 85%;
97
+ --input: 345 30% 85%;
98
+ --ring: 345 75% 55%;
99
+ }
100
+
101
+ [data-theme='amaranth'] {
102
+ --primary: 310 60% 45%;
103
+ --foreground: 310 25% 15%;
104
+ --card-foreground: 310 25% 15%;
105
+ --popover-foreground: 310 25% 15%;
106
+ --primary-foreground: 0 0% 98%;
107
+ --secondary: 310 35% 92%;
108
+ --secondary-foreground: 310 35% 20%;
109
+ --muted: 310 35% 92%;
110
+ --muted-foreground: 310 20% 45%;
111
+ --accent: 310 35% 88%;
112
+ --accent-foreground: 310 35% 20%;
113
+ --destructive: 0 84.2% 60.2%;
114
+ --border: 310 25% 85%;
115
+ --input: 310 25% 85%;
116
+ --ring: 310 60% 45%;
117
+ }
118
+
119
+ [data-theme='pulse-blue'] {
120
+ --primary: 200 85% 50%;
121
+ --foreground: 200 30% 15%;
122
+ --card-foreground: 200 30% 15%;
123
+ --popover-foreground: 200 30% 15%;
124
+ --primary-foreground: 0 0% 98%;
125
+ --secondary: 200 40% 92%;
126
+ --secondary-foreground: 200 40% 20%;
127
+ --muted: 200 40% 92%;
128
+ --muted-foreground: 200 20% 45%;
129
+ --accent: 200 40% 88%;
130
+ --accent-foreground: 200 40% 20%;
131
+ --destructive: 0 84.2% 60.2%;
132
+ --border: 200 30% 85%;
133
+ --input: 200 30% 85%;
134
+ --ring: 200 85% 50%;
135
+ }
136
+
137
+ [data-theme='deep-teal'] {
138
+ --primary: 180 65% 35%;
139
+ --foreground: 180 25% 15%;
140
+ --card-foreground: 180 25% 15%;
141
+ --popover-foreground: 180 25% 15%;
142
+ --primary-foreground: 0 0% 98%;
143
+ --secondary: 180 30% 92%;
144
+ --secondary-foreground: 180 35% 20%;
145
+ --muted: 180 30% 92%;
146
+ --muted-foreground: 180 15% 45%;
147
+ --accent: 180 30% 88%;
148
+ --accent-foreground: 180 35% 20%;
149
+ --destructive: 0 84.2% 60.2%;
150
+ --border: 180 25% 85%;
151
+ --input: 180 25% 85%;
152
+ --ring: 180 65% 35%;
153
+ }
154
+
155
+ [data-theme='mermaid-aqua'] {
156
+ --primary: 185 70% 55%;
157
+ --foreground: 185 30% 15%;
158
+ --card-foreground: 185 30% 15%;
159
+ --popover-foreground: 185 30% 15%;
160
+ --primary-foreground: 0 0% 98%;
161
+ --secondary: 185 40% 92%;
162
+ --secondary-foreground: 185 40% 20%;
163
+ --muted: 185 40% 92%;
164
+ --muted-foreground: 185 20% 45%;
165
+ --accent: 185 40% 88%;
166
+ --accent-foreground: 185 40% 20%;
167
+ --destructive: 0 84.2% 60.2%;
168
+ --border: 185 30% 85%;
169
+ --input: 185 30% 85%;
170
+ --ring: 185 70% 55%;
171
+ }
172
+
173
+ [data-theme='pearl-purple'] {
174
+ --primary: 270 45% 70%;
175
+ --foreground: 270 20% 15%;
176
+ --card-foreground: 270 20% 15%;
177
+ --popover-foreground: 270 20% 15%;
178
+ --primary-foreground: 270 30% 20%;
179
+ --secondary: 270 30% 92%;
180
+ --secondary-foreground: 270 30% 20%;
181
+ --muted: 270 30% 92%;
182
+ --muted-foreground: 270 15% 45%;
183
+ --accent: 270 30% 88%;
184
+ --accent-foreground: 270 30% 20%;
185
+ --destructive: 0 84.2% 60.2%;
186
+ --border: 270 25% 85%;
187
+ --input: 270 25% 85%;
188
+ --ring: 270 45% 70%;
189
+ }
190
+
191
+ [data-theme='burgundy'] {
192
+ --primary: 345 65% 40%;
193
+ --foreground: 345 25% 15%;
194
+ --card-foreground: 345 25% 15%;
195
+ --popover-foreground: 345 25% 15%;
196
+ --primary-foreground: 0 0% 98%;
197
+ --secondary: 345 30% 92%;
198
+ --secondary-foreground: 345 35% 20%;
199
+ --muted: 345 30% 92%;
200
+ --muted-foreground: 345 15% 45%;
201
+ --accent: 345 30% 88%;
202
+ --accent-foreground: 345 35% 20%;
203
+ --destructive: 0 84.2% 60.2%;
204
+ --border: 345 25% 85%;
205
+ --input: 345 25% 85%;
206
+ --ring: 345 65% 40%;
207
+ }
208
+
209
+ [data-theme='burnt-sienna'] {
210
+ --primary: 15 60% 50%;
211
+ --foreground: 15 25% 15%;
212
+ --card-foreground: 15 25% 15%;
213
+ --popover-foreground: 15 25% 15%;
214
+ --primary-foreground: 0 0% 98%;
215
+ --secondary: 15 30% 92%;
216
+ --secondary-foreground: 15 35% 20%;
217
+ --muted: 15 30% 92%;
218
+ --muted-foreground: 15 15% 45%;
219
+ --accent: 15 30% 88%;
220
+ --accent-foreground: 15 35% 20%;
221
+ --destructive: 0 84.2% 60.2%;
222
+ --border: 15 25% 85%;
223
+ --input: 15 25% 85%;
224
+ --ring: 15 60% 50%;
225
+ }
226
+
227
+ [data-theme='olive-sage'] {
228
+ --primary: 80 30% 45%;
229
+ --foreground: 80 20% 15%;
230
+ --card-foreground: 80 20% 15%;
231
+ --popover-foreground: 80 20% 15%;
232
+ --primary-foreground: 0 0% 98%;
233
+ --secondary: 80 20% 92%;
234
+ --secondary-foreground: 80 25% 20%;
235
+ --muted: 80 20% 92%;
236
+ --muted-foreground: 80 10% 45%;
237
+ --accent: 80 20% 88%;
238
+ --accent-foreground: 80 25% 20%;
239
+ --destructive: 0 84.2% 60.2%;
240
+ --border: 80 15% 85%;
241
+ --input: 80 15% 85%;
242
+ --ring: 80 30% 45%;
243
+ }
244
+
245
+ [data-theme='champagne-gold'] {
246
+ --primary: 45 55% 60%;
247
+ --foreground: 45 25% 15%;
248
+ --card-foreground: 45 25% 15%;
249
+ --popover-foreground: 45 25% 15%;
250
+ --primary-foreground: 45 30% 20%;
251
+ --secondary: 45 35% 92%;
252
+ --secondary-foreground: 45 30% 20%;
253
+ --muted: 45 35% 92%;
254
+ --muted-foreground: 45 15% 45%;
255
+ --accent: 45 35% 88%;
256
+ --accent-foreground: 45 30% 20%;
257
+ --destructive: 0 84.2% 60.2%;
258
+ --border: 45 25% 85%;
259
+ --input: 45 25% 85%;
260
+ --ring: 45 55% 60%;
261
+ }
262
+
263
+ [data-theme='dusty-rose'] {
264
+ --primary: 350 40% 65%;
265
+ --foreground: 350 20% 15%;
266
+ --card-foreground: 350 20% 15%;
267
+ --popover-foreground: 350 20% 15%;
268
+ --primary-foreground: 350 25% 20%;
269
+ --secondary: 350 25% 92%;
270
+ --secondary-foreground: 350 25% 20%;
271
+ --muted: 350 25% 92%;
272
+ --muted-foreground: 350 15% 45%;
273
+ --accent: 350 25% 88%;
274
+ --accent-foreground: 350 25% 20%;
275
+ --destructive: 0 84.2% 60.2%;
276
+ --border: 350 20% 85%;
277
+ --input: 350 20% 85%;
278
+ --ring: 350 40% 65%;
279
+ }
280
+
281
+ [data-theme='citrus-green'] {
282
+ --primary: 75 70% 50%;
283
+ --foreground: 75 25% 15%;
284
+ --card-foreground: 75 25% 15%;
285
+ --popover-foreground: 75 25% 15%;
286
+ --primary-foreground: 75 30% 15%;
287
+ --secondary: 75 40% 92%;
288
+ --secondary-foreground: 75 35% 20%;
289
+ --muted: 75 40% 92%;
290
+ --muted-foreground: 75 20% 45%;
291
+ --accent: 75 40% 88%;
292
+ --accent-foreground: 75 35% 20%;
293
+ --destructive: 0 84.2% 60.2%;
294
+ --border: 75 30% 85%;
295
+ --input: 75 30% 85%;
296
+ --ring: 75 70% 50%;
297
+ }