@wycm9527/morganite 0.0.0-stage → 0.3.3
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.
- package/CHANGELOG.md +165 -0
- package/LICENSE +33 -0
- package/README.md +58 -2
- package/bridge/base.css +138 -0
- package/bridge/echarts.d.ts +44 -0
- package/bridge/echarts.js +217 -0
- package/bridge/element-plus.css +785 -0
- package/bridge/fonts.css +124 -0
- package/bridge/icon-merge.d.ts +5 -0
- package/bridge/icon-merge.js +103 -0
- package/bridge/iconpark.config.ts +75 -0
- package/bridge/iconpark.css +29 -0
- package/bridge/react/ConfirmBar.tsx +43 -0
- package/bridge/react/EChart.tsx +45 -0
- package/bridge/react/PageHeader.tsx +24 -0
- package/bridge/react/SectionHeader.tsx +17 -0
- package/bridge/react/StatCard.tsx +33 -0
- package/bridge/react/TableSkeleton.tsx +11 -0
- package/bridge/react/TrendChart.tsx +8 -0
- package/bridge/recipes.css +444 -0
- package/bridge/shadcn-globals.css +6 -0
- package/bridge/shadcn.css +238 -0
- package/bridge/vue/ConfirmBar.vue +23 -0
- package/bridge/vue/EChart.vue +43 -0
- package/bridge/vue/KitchenSink.vue +507 -0
- package/bridge/vue/PageHeader.vue +23 -0
- package/bridge/vue/SectionHeader.vue +15 -0
- package/bridge/vue/StatCard.vue +33 -0
- package/bridge/vue/TableSkeleton.vue +14 -0
- package/bridge/vue/TrendChart.vue +11 -0
- package/bridge/vue/confirm.js +18 -0
- package/bridge/vue/inlineConfirm.js +21 -0
- package/design-system/AUDIT.md +277 -0
- package/design-system/DESIGN.md +176 -0
- package/design-system/contrast.md +71 -0
- package/design-system/preview/drawer.html +38 -0
- package/design-system/preview/form.html +40 -0
- package/design-system/preview/index.html +21 -0
- package/design-system/preview/preview.css +190 -0
- package/design-system/preview/preview.local.css +17 -0
- package/design-system/preview/shell.html +50 -0
- package/design-system/scope-map.json +4 -0
- package/design-system/style-dictionary.config.mjs +172 -0
- package/design-system/theme-map.json +16 -0
- package/design-system/themes/dark/THEME.md +29 -0
- package/design-system/themes/dark/tokens/semantic.tokens.json +354 -0
- package/design-system/token-board.html +137 -0
- package/design-system/tokens/primitives.tokens.json +1898 -0
- package/design-system/tokens/semantic.tokens.json +1080 -0
- package/design-system.json +217 -0
- package/migration/roles.json +743 -0
- package/package.json +82 -4
- package/templates/AGENTS.md +13 -0
- package/templates/KitchenSink.tsx +179 -0
- package/templates/accept.config.mjs +28 -0
- package/templates/entry-css.css +6 -0
- package/templates/entry-element-plus.css +9 -0
- package/templates/entry-shadcn.css +7 -0
- package/templates/notes-css.md +4 -0
- package/templates/notes-element-plus.md +7 -0
- package/templates/notes-shadcn.md +7 -0
|
@@ -0,0 +1,743 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "旧规范 → morganite 的角色对照(机器可读版,由 web-to-design-system 生成)。migrate --phase settle 起草决策文件时用它:按角色映射,不按色值找最接近的灰。properties 是该角色出现的 CSS 属性上下文;hints 是旧变量名 / 注释里常见的字样——这里只有通用词,请把旧系统独有的变量名与色值补进去。noEquivalent 列旧系统里在新系统没有对应物的东西(如某种深色 hover、淡色选中底)及替代写法,由维护者按 DESIGN.md 填写。",
|
|
3
|
+
"noEquivalent": [
|
|
4
|
+
{
|
|
5
|
+
"legacy": "HTML 内联样式",
|
|
6
|
+
"note": "guard 会把内联字面量算作 Drift。",
|
|
7
|
+
"replacement": "抽成 class 再引用 token",
|
|
8
|
+
"var": null
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"legacy": "antd 菜单选中态:主色 1 阶浅底 + 主色文字(Menu itemSelectedBg)",
|
|
12
|
+
"note": "Ant Design Pro 的侧栏本来是中性浅灰;本系统亮色侧栏当前项是主色底块 + 白字(用户指定),暗色是金色暗底 + 亮金字。",
|
|
13
|
+
"replacement": "color.bg.sidebar-selected + color.text.sidebar-selected(暗色 delta 为金色暗底 + 亮金字)",
|
|
14
|
+
"var": "--color-bg-sidebar-selected"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"legacy": "antd 主色按钮白字(colorTextLightSolid)",
|
|
18
|
+
"note": "本系统同样金底白字(用户指定);白字对主色只有 3.02:1,已登记为例外。",
|
|
19
|
+
"replacement": "color.text.on-primary(白字)",
|
|
20
|
+
"var": "--color-text-on-primary"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"legacy": "antd 警示金黄(colorWarning #faad14 一族)",
|
|
24
|
+
"note": "与品牌金同色相,改用 antd 橙色系。",
|
|
25
|
+
"replacement": "color.status.warning / color.status.warning-bg",
|
|
26
|
+
"var": "--color-status-warning"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"legacy": "描边式输入框边线(variant outlined)",
|
|
30
|
+
"note": "本系统输入框为填充式,静息无边线;悬停才出现边线。",
|
|
31
|
+
"replacement": "color.bg.input;悬停 color.border.strong,聚焦 color.border.focus",
|
|
32
|
+
"var": "--color-bg-input"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"legacy": "antd 按钮底部 2px 投影(primaryShadow / defaultShadow)",
|
|
36
|
+
"note": "不纳管。",
|
|
37
|
+
"replacement": "去掉,不补 token",
|
|
38
|
+
"var": null
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"roles": [
|
|
42
|
+
{
|
|
43
|
+
"hints": [
|
|
44
|
+
"text",
|
|
45
|
+
"font-color",
|
|
46
|
+
"foreground",
|
|
47
|
+
"正文",
|
|
48
|
+
"主文字",
|
|
49
|
+
"#333",
|
|
50
|
+
"#303133",
|
|
51
|
+
"#1f2937",
|
|
52
|
+
"--ant-color-text",
|
|
53
|
+
"@text-color",
|
|
54
|
+
"rgba(0,0,0,0.88)",
|
|
55
|
+
"rgba(0,0,0,0.85)",
|
|
56
|
+
"#1f1f1f"
|
|
57
|
+
],
|
|
58
|
+
"note": "文字三档按角色对应,不按色值找最接近的灰。",
|
|
59
|
+
"properties": [
|
|
60
|
+
"color"
|
|
61
|
+
],
|
|
62
|
+
"role": "正文色",
|
|
63
|
+
"to": "color.text.primary",
|
|
64
|
+
"var": "--color-text-primary"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"hints": [
|
|
68
|
+
"secondary",
|
|
69
|
+
"subtitle",
|
|
70
|
+
"次要",
|
|
71
|
+
"#606266",
|
|
72
|
+
"#4b5563",
|
|
73
|
+
"--ant-color-text-secondary",
|
|
74
|
+
"@text-color-secondary",
|
|
75
|
+
"rgba(0,0,0,0.65)",
|
|
76
|
+
"rgba(0,0,0,0.45)",
|
|
77
|
+
"#595959"
|
|
78
|
+
],
|
|
79
|
+
"note": "",
|
|
80
|
+
"properties": [
|
|
81
|
+
"color"
|
|
82
|
+
],
|
|
83
|
+
"role": "次要文字",
|
|
84
|
+
"to": "color.text.secondary",
|
|
85
|
+
"var": "--color-text-secondary"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"hints": [
|
|
89
|
+
"muted",
|
|
90
|
+
"disabled-text",
|
|
91
|
+
"placeholder-text",
|
|
92
|
+
"弱化",
|
|
93
|
+
"辅助",
|
|
94
|
+
"#909399",
|
|
95
|
+
"#999",
|
|
96
|
+
"#9ca3af",
|
|
97
|
+
"--ant-color-text-tertiary",
|
|
98
|
+
"--ant-color-text-description",
|
|
99
|
+
"rgba(0,0,0,0.45)",
|
|
100
|
+
"#8c8c8c"
|
|
101
|
+
],
|
|
102
|
+
"note": "弱化文字仍要 ≥ 4.5:1;占位符另有 color.text.placeholder。",
|
|
103
|
+
"properties": [
|
|
104
|
+
"color"
|
|
105
|
+
],
|
|
106
|
+
"role": "弱化文字",
|
|
107
|
+
"to": "color.text.muted",
|
|
108
|
+
"var": "--color-text-muted"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"hints": [
|
|
112
|
+
"placeholder",
|
|
113
|
+
"占位",
|
|
114
|
+
"--ant-color-text-placeholder",
|
|
115
|
+
"--ant-color-text-quaternary",
|
|
116
|
+
"@input-placeholder-color",
|
|
117
|
+
"rgba(0,0,0,0.25)",
|
|
118
|
+
"#bfbfbf"
|
|
119
|
+
],
|
|
120
|
+
"note": "",
|
|
121
|
+
"properties": [
|
|
122
|
+
"color"
|
|
123
|
+
],
|
|
124
|
+
"role": "占位符",
|
|
125
|
+
"to": "color.text.placeholder",
|
|
126
|
+
"var": "--color-text-placeholder"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
"hints": [
|
|
130
|
+
"border",
|
|
131
|
+
"divider",
|
|
132
|
+
"分割线",
|
|
133
|
+
"边线",
|
|
134
|
+
"#dcdfe6",
|
|
135
|
+
"#e4e7ed",
|
|
136
|
+
"#e5e7eb",
|
|
137
|
+
"--ant-color-border-secondary",
|
|
138
|
+
"--ant-color-split",
|
|
139
|
+
"@border-color-split",
|
|
140
|
+
"#f0f0f0",
|
|
141
|
+
"rgba(5,5,5,0.06)"
|
|
142
|
+
],
|
|
143
|
+
"note": "输入框边线用 color.border.input。",
|
|
144
|
+
"properties": [
|
|
145
|
+
"border-color",
|
|
146
|
+
"border",
|
|
147
|
+
"outline-color",
|
|
148
|
+
"box-shadow"
|
|
149
|
+
],
|
|
150
|
+
"role": "边线",
|
|
151
|
+
"to": "color.border.default",
|
|
152
|
+
"var": "--color-border-default"
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"hints": [
|
|
156
|
+
"input-border",
|
|
157
|
+
"输入框边",
|
|
158
|
+
"--ant-color-border",
|
|
159
|
+
"@border-color-base",
|
|
160
|
+
"#d9d9d9"
|
|
161
|
+
],
|
|
162
|
+
"note": "",
|
|
163
|
+
"properties": [
|
|
164
|
+
"border-color",
|
|
165
|
+
"border"
|
|
166
|
+
],
|
|
167
|
+
"role": "输入框边线",
|
|
168
|
+
"to": "color.border.input",
|
|
169
|
+
"var": "--color-border-input"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"hints": [
|
|
173
|
+
"page-bg",
|
|
174
|
+
"body-bg",
|
|
175
|
+
"页面底",
|
|
176
|
+
"#f5f7fa",
|
|
177
|
+
"#f0f2f5",
|
|
178
|
+
"#f9fafb",
|
|
179
|
+
"--ant-color-bg-layout",
|
|
180
|
+
"@layout-body-background",
|
|
181
|
+
"#f5f5f5"
|
|
182
|
+
],
|
|
183
|
+
"note": "",
|
|
184
|
+
"properties": [
|
|
185
|
+
"background",
|
|
186
|
+
"background-color"
|
|
187
|
+
],
|
|
188
|
+
"role": "页面底",
|
|
189
|
+
"to": "color.bg.page",
|
|
190
|
+
"var": "--color-bg-page"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
"hints": [
|
|
194
|
+
"section",
|
|
195
|
+
"表头底",
|
|
196
|
+
"分区",
|
|
197
|
+
"muted-bg",
|
|
198
|
+
"#f5f5f5",
|
|
199
|
+
"--ant-color-fill-alter",
|
|
200
|
+
"@background-color-light",
|
|
201
|
+
"@table-header-bg",
|
|
202
|
+
"#fafafa"
|
|
203
|
+
],
|
|
204
|
+
"note": "表头、浅分区。",
|
|
205
|
+
"properties": [
|
|
206
|
+
"background",
|
|
207
|
+
"background-color"
|
|
208
|
+
],
|
|
209
|
+
"role": "分区底",
|
|
210
|
+
"to": "color.bg.subtle",
|
|
211
|
+
"var": "--color-bg-subtle"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"hints": [
|
|
215
|
+
"card",
|
|
216
|
+
"white",
|
|
217
|
+
"surface",
|
|
218
|
+
"#fff",
|
|
219
|
+
"#ffffff",
|
|
220
|
+
"--ant-color-bg-container",
|
|
221
|
+
"@component-background"
|
|
222
|
+
],
|
|
223
|
+
"note": "同一个旧白值在新系统里可能是三个语义:卡片 bg.surface、输入框 bg.input、浮层 bg.elevated。",
|
|
224
|
+
"properties": [
|
|
225
|
+
"background",
|
|
226
|
+
"background-color"
|
|
227
|
+
],
|
|
228
|
+
"role": "卡片白",
|
|
229
|
+
"to": "color.bg.surface",
|
|
230
|
+
"var": "--color-bg-surface"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"hints": [
|
|
234
|
+
"input-bg",
|
|
235
|
+
"输入框底",
|
|
236
|
+
"--ant-color-fill-tertiary",
|
|
237
|
+
"filled",
|
|
238
|
+
"rgba(0,0,0,0.04)"
|
|
239
|
+
],
|
|
240
|
+
"note": "",
|
|
241
|
+
"properties": [
|
|
242
|
+
"background",
|
|
243
|
+
"background-color"
|
|
244
|
+
],
|
|
245
|
+
"role": "输入框底",
|
|
246
|
+
"to": "color.bg.input",
|
|
247
|
+
"var": "--color-bg-input"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
"hints": [
|
|
251
|
+
"popover",
|
|
252
|
+
"dialog-bg",
|
|
253
|
+
"dropdown-bg",
|
|
254
|
+
"浮层",
|
|
255
|
+
"弹窗",
|
|
256
|
+
"--ant-color-bg-elevated",
|
|
257
|
+
"@popover-background"
|
|
258
|
+
],
|
|
259
|
+
"note": "",
|
|
260
|
+
"properties": [
|
|
261
|
+
"background",
|
|
262
|
+
"background-color"
|
|
263
|
+
],
|
|
264
|
+
"role": "浮层底",
|
|
265
|
+
"to": "color.bg.elevated",
|
|
266
|
+
"var": "--color-bg-elevated"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"hints": [
|
|
270
|
+
"hover-bg",
|
|
271
|
+
"hover",
|
|
272
|
+
"悬停",
|
|
273
|
+
"--ant-control-item-bg-hover",
|
|
274
|
+
"--ant-color-fill-tertiary",
|
|
275
|
+
"@item-hover-bg",
|
|
276
|
+
"rgba(0,0,0,0.04)"
|
|
277
|
+
],
|
|
278
|
+
"note": "",
|
|
279
|
+
"properties": [
|
|
280
|
+
"background",
|
|
281
|
+
"background-color"
|
|
282
|
+
],
|
|
283
|
+
"role": "悬停底",
|
|
284
|
+
"to": "color.bg.hover",
|
|
285
|
+
"var": "--color-bg-hover"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"hints": [
|
|
289
|
+
"brand",
|
|
290
|
+
"primary",
|
|
291
|
+
"主色",
|
|
292
|
+
"accent",
|
|
293
|
+
"--ant-color-primary",
|
|
294
|
+
"@primary-color",
|
|
295
|
+
"#1677ff",
|
|
296
|
+
"#1890ff"
|
|
297
|
+
],
|
|
298
|
+
"note": "一个旧主色变量在新系统里可能是多个语义(按钮 / 指示条 / 大面积 / 图表),按用途拆,不能一对一替换。",
|
|
299
|
+
"properties": [
|
|
300
|
+
"background",
|
|
301
|
+
"background-color"
|
|
302
|
+
],
|
|
303
|
+
"role": "主色 · 按钮填充",
|
|
304
|
+
"to": "color.action.primary",
|
|
305
|
+
"var": "--color-action-primary"
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"hints": [
|
|
309
|
+
"primary-hover",
|
|
310
|
+
"主色悬停",
|
|
311
|
+
"--ant-color-primary-hover",
|
|
312
|
+
"@primary-5",
|
|
313
|
+
"#4096ff",
|
|
314
|
+
"#40a9ff"
|
|
315
|
+
],
|
|
316
|
+
"note": "",
|
|
317
|
+
"properties": [
|
|
318
|
+
"background",
|
|
319
|
+
"background-color"
|
|
320
|
+
],
|
|
321
|
+
"role": "主色 · 按钮悬停",
|
|
322
|
+
"to": "color.action.primary-hover",
|
|
323
|
+
"var": "--color-action-primary-hover"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"hints": [
|
|
327
|
+
"indicator",
|
|
328
|
+
"active-bar",
|
|
329
|
+
"指示条",
|
|
330
|
+
"选中条",
|
|
331
|
+
"--ant-color-primary",
|
|
332
|
+
"ink-bar"
|
|
333
|
+
],
|
|
334
|
+
"note": "",
|
|
335
|
+
"properties": [
|
|
336
|
+
"background",
|
|
337
|
+
"background-color",
|
|
338
|
+
"border-color",
|
|
339
|
+
"border-left",
|
|
340
|
+
"border-bottom"
|
|
341
|
+
],
|
|
342
|
+
"role": "主色 · 指示条",
|
|
343
|
+
"to": "color.brand.indicator",
|
|
344
|
+
"var": "--color-brand-indicator"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"hints": [
|
|
348
|
+
"login",
|
|
349
|
+
"hero",
|
|
350
|
+
"大面积",
|
|
351
|
+
"banner"
|
|
352
|
+
],
|
|
353
|
+
"note": "",
|
|
354
|
+
"properties": [
|
|
355
|
+
"background",
|
|
356
|
+
"background-color"
|
|
357
|
+
],
|
|
358
|
+
"role": "主色 · 大面积",
|
|
359
|
+
"to": "color.bg.brand",
|
|
360
|
+
"var": "--color-bg-brand"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
"hints": [
|
|
364
|
+
"chart",
|
|
365
|
+
"图表",
|
|
366
|
+
"series"
|
|
367
|
+
],
|
|
368
|
+
"note": "",
|
|
369
|
+
"properties": [
|
|
370
|
+
"fill",
|
|
371
|
+
"stroke",
|
|
372
|
+
"background"
|
|
373
|
+
],
|
|
374
|
+
"role": "主色 · 图表",
|
|
375
|
+
"to": "color.chart.1",
|
|
376
|
+
"var": "--color-chart-1"
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"hints": [
|
|
380
|
+
"on-primary",
|
|
381
|
+
"primary-foreground",
|
|
382
|
+
"按钮文字",
|
|
383
|
+
"--ant-color-text-light-solid",
|
|
384
|
+
"#fff"
|
|
385
|
+
],
|
|
386
|
+
"note": "",
|
|
387
|
+
"properties": [
|
|
388
|
+
"color"
|
|
389
|
+
],
|
|
390
|
+
"role": "主按钮文字",
|
|
391
|
+
"to": "color.text.on-primary",
|
|
392
|
+
"var": "--color-text-on-primary"
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
"hints": [
|
|
396
|
+
"success",
|
|
397
|
+
"成功",
|
|
398
|
+
"#67c23a",
|
|
399
|
+
"#52c41a",
|
|
400
|
+
"#16a34a",
|
|
401
|
+
"--ant-color-success",
|
|
402
|
+
"--ant-color-success-text",
|
|
403
|
+
"@success-color",
|
|
404
|
+
"#389e0d"
|
|
405
|
+
],
|
|
406
|
+
"note": "状态色是文字色,配 -bg 浅底;填充只给危险按钮。",
|
|
407
|
+
"properties": [
|
|
408
|
+
"color",
|
|
409
|
+
"background",
|
|
410
|
+
"background-color"
|
|
411
|
+
],
|
|
412
|
+
"role": "成功",
|
|
413
|
+
"to": "color.status.success",
|
|
414
|
+
"var": "--color-status-success"
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"hints": [
|
|
418
|
+
"success-bg",
|
|
419
|
+
"success-light",
|
|
420
|
+
"成功浅底",
|
|
421
|
+
"--ant-color-success-bg",
|
|
422
|
+
"#f6ffed"
|
|
423
|
+
],
|
|
424
|
+
"note": "",
|
|
425
|
+
"properties": [
|
|
426
|
+
"background",
|
|
427
|
+
"background-color"
|
|
428
|
+
],
|
|
429
|
+
"role": "成功浅底",
|
|
430
|
+
"to": "color.status.success-bg",
|
|
431
|
+
"var": "--color-status-success-bg"
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
"hints": [
|
|
435
|
+
"warning",
|
|
436
|
+
"warn",
|
|
437
|
+
"警示",
|
|
438
|
+
"#e6a23c",
|
|
439
|
+
"#faad14",
|
|
440
|
+
"#d97706",
|
|
441
|
+
"--ant-color-warning",
|
|
442
|
+
"--ant-color-warning-text",
|
|
443
|
+
"@warning-color",
|
|
444
|
+
"#d48806"
|
|
445
|
+
],
|
|
446
|
+
"note": "",
|
|
447
|
+
"properties": [
|
|
448
|
+
"color",
|
|
449
|
+
"background",
|
|
450
|
+
"background-color"
|
|
451
|
+
],
|
|
452
|
+
"role": "警示",
|
|
453
|
+
"to": "color.status.warning",
|
|
454
|
+
"var": "--color-status-warning"
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
"hints": [
|
|
458
|
+
"warning-bg",
|
|
459
|
+
"warning-light",
|
|
460
|
+
"警示浅底",
|
|
461
|
+
"--ant-color-warning-bg",
|
|
462
|
+
"#fffbe6"
|
|
463
|
+
],
|
|
464
|
+
"note": "",
|
|
465
|
+
"properties": [
|
|
466
|
+
"background",
|
|
467
|
+
"background-color"
|
|
468
|
+
],
|
|
469
|
+
"role": "警示浅底",
|
|
470
|
+
"to": "color.status.warning-bg",
|
|
471
|
+
"var": "--color-status-warning-bg"
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
"hints": [
|
|
475
|
+
"error",
|
|
476
|
+
"danger-text",
|
|
477
|
+
"错误",
|
|
478
|
+
"#f56c6c",
|
|
479
|
+
"#ff4d4f",
|
|
480
|
+
"#dc2626",
|
|
481
|
+
"--ant-color-error",
|
|
482
|
+
"--ant-color-error-text",
|
|
483
|
+
"@error-color",
|
|
484
|
+
"#cf1322"
|
|
485
|
+
],
|
|
486
|
+
"note": "",
|
|
487
|
+
"properties": [
|
|
488
|
+
"color",
|
|
489
|
+
"background",
|
|
490
|
+
"background-color"
|
|
491
|
+
],
|
|
492
|
+
"role": "错误",
|
|
493
|
+
"to": "color.status.error",
|
|
494
|
+
"var": "--color-status-error"
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"hints": [
|
|
498
|
+
"error-bg",
|
|
499
|
+
"error-light",
|
|
500
|
+
"错误浅底",
|
|
501
|
+
"--ant-color-error-bg",
|
|
502
|
+
"#fff2f0",
|
|
503
|
+
"#fff1f0"
|
|
504
|
+
],
|
|
505
|
+
"note": "",
|
|
506
|
+
"properties": [
|
|
507
|
+
"background",
|
|
508
|
+
"background-color"
|
|
509
|
+
],
|
|
510
|
+
"role": "错误浅底",
|
|
511
|
+
"to": "color.status.error-bg",
|
|
512
|
+
"var": "--color-status-error-bg"
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
"hints": [
|
|
516
|
+
"info",
|
|
517
|
+
"提示",
|
|
518
|
+
"#909399",
|
|
519
|
+
"#1890ff",
|
|
520
|
+
"--ant-color-info",
|
|
521
|
+
"--ant-color-info-text",
|
|
522
|
+
"@info-color",
|
|
523
|
+
"#1677ff"
|
|
524
|
+
],
|
|
525
|
+
"note": "",
|
|
526
|
+
"properties": [
|
|
527
|
+
"color",
|
|
528
|
+
"background",
|
|
529
|
+
"background-color"
|
|
530
|
+
],
|
|
531
|
+
"role": "信息",
|
|
532
|
+
"to": "color.status.info",
|
|
533
|
+
"var": "--color-status-info"
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
"hints": [
|
|
537
|
+
"info-bg",
|
|
538
|
+
"info-light",
|
|
539
|
+
"--ant-color-info-bg",
|
|
540
|
+
"#e6f4ff",
|
|
541
|
+
"#e6f7ff"
|
|
542
|
+
],
|
|
543
|
+
"note": "",
|
|
544
|
+
"properties": [
|
|
545
|
+
"background",
|
|
546
|
+
"background-color"
|
|
547
|
+
],
|
|
548
|
+
"role": "信息浅底",
|
|
549
|
+
"to": "color.status.info-bg",
|
|
550
|
+
"var": "--color-status-info-bg"
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
"hints": [
|
|
554
|
+
"danger",
|
|
555
|
+
"destructive",
|
|
556
|
+
"delete",
|
|
557
|
+
"危险",
|
|
558
|
+
"--ant-color-error",
|
|
559
|
+
"--ant-color-error-hover",
|
|
560
|
+
"dangerous",
|
|
561
|
+
"#ff4d4f"
|
|
562
|
+
],
|
|
563
|
+
"note": "配 color.text.on-danger;不要复用 status.error(暗色下会变浅)。",
|
|
564
|
+
"properties": [
|
|
565
|
+
"background",
|
|
566
|
+
"background-color"
|
|
567
|
+
],
|
|
568
|
+
"role": "危险按钮填充",
|
|
569
|
+
"to": "color.action.danger",
|
|
570
|
+
"var": "--color-action-danger"
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
"hints": [
|
|
574
|
+
"link",
|
|
575
|
+
"a-color",
|
|
576
|
+
"链接",
|
|
577
|
+
"#409eff",
|
|
578
|
+
"#1677ff",
|
|
579
|
+
"--ant-color-link",
|
|
580
|
+
"@link-color"
|
|
581
|
+
],
|
|
582
|
+
"note": "链接是否保留色相看 DESIGN;等宽数字型链接不斜体。",
|
|
583
|
+
"properties": [
|
|
584
|
+
"color"
|
|
585
|
+
],
|
|
586
|
+
"role": "链接",
|
|
587
|
+
"to": "color.text.link",
|
|
588
|
+
"var": "--color-text-link"
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"hints": [
|
|
592
|
+
"focus",
|
|
593
|
+
"ring",
|
|
594
|
+
"焦点",
|
|
595
|
+
"--ant-color-primary-border",
|
|
596
|
+
"--ant-line-width-focus",
|
|
597
|
+
"#91caff",
|
|
598
|
+
"#91d5ff"
|
|
599
|
+
],
|
|
600
|
+
"note": "",
|
|
601
|
+
"properties": [
|
|
602
|
+
"outline-color",
|
|
603
|
+
"box-shadow",
|
|
604
|
+
"border-color"
|
|
605
|
+
],
|
|
606
|
+
"role": "焦点环",
|
|
607
|
+
"to": "color.focus.ring",
|
|
608
|
+
"var": "--color-focus-ring"
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
"hints": [
|
|
612
|
+
"1px",
|
|
613
|
+
"--ant-line-width",
|
|
614
|
+
"@border-width-base"
|
|
615
|
+
],
|
|
616
|
+
"note": "",
|
|
617
|
+
"properties": [
|
|
618
|
+
"border-width",
|
|
619
|
+
"border"
|
|
620
|
+
],
|
|
621
|
+
"role": "1px 边线宽",
|
|
622
|
+
"to": "border.width.default",
|
|
623
|
+
"var": "--border-width-default"
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"hints": [
|
|
627
|
+
"4px",
|
|
628
|
+
"6px",
|
|
629
|
+
"8px",
|
|
630
|
+
"--ant-border-radius",
|
|
631
|
+
"@border-radius-base"
|
|
632
|
+
],
|
|
633
|
+
"note": "按容器层级取 radius.md(控件)或 radius.lg(卡片),不逐像素对应。",
|
|
634
|
+
"properties": [
|
|
635
|
+
"border-radius"
|
|
636
|
+
],
|
|
637
|
+
"role": "小圆角(4–8px)",
|
|
638
|
+
"to": "radius.md",
|
|
639
|
+
"var": "--radius-md"
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"hints": [
|
|
643
|
+
"12px",
|
|
644
|
+
"16px",
|
|
645
|
+
"--ant-border-radius-lg"
|
|
646
|
+
],
|
|
647
|
+
"note": "",
|
|
648
|
+
"properties": [
|
|
649
|
+
"border-radius"
|
|
650
|
+
],
|
|
651
|
+
"role": "大圆角(卡片)",
|
|
652
|
+
"to": "radius.lg",
|
|
653
|
+
"var": "--radius-lg"
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
"hints": [
|
|
657
|
+
"14px",
|
|
658
|
+
"13px",
|
|
659
|
+
"16px",
|
|
660
|
+
"--ant-font-size",
|
|
661
|
+
"@font-size-base"
|
|
662
|
+
],
|
|
663
|
+
"note": "尺寸按角色进阶梯;同一个 px 出现在 padding 时另按间距阶梯归。",
|
|
664
|
+
"properties": [
|
|
665
|
+
"font-size"
|
|
666
|
+
],
|
|
667
|
+
"role": "正文字号",
|
|
668
|
+
"to": "text.body.size",
|
|
669
|
+
"var": "--text-body-size"
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
"hints": [
|
|
673
|
+
"gap",
|
|
674
|
+
"间距",
|
|
675
|
+
"--ant-margin-lg",
|
|
676
|
+
"gutter 24"
|
|
677
|
+
],
|
|
678
|
+
"note": "页面级留白只用 space.inline / stack / gutter / card 四个;控件内部用 spacing.*。",
|
|
679
|
+
"properties": [
|
|
680
|
+
"gap",
|
|
681
|
+
"margin",
|
|
682
|
+
"padding"
|
|
683
|
+
],
|
|
684
|
+
"role": "块间距",
|
|
685
|
+
"to": "space.stack",
|
|
686
|
+
"var": "--space-stack"
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
"hints": [
|
|
690
|
+
"padding",
|
|
691
|
+
"内边距",
|
|
692
|
+
"--ant-padding-lg",
|
|
693
|
+
"@card-padding-base"
|
|
694
|
+
],
|
|
695
|
+
"note": "",
|
|
696
|
+
"properties": [
|
|
697
|
+
"padding"
|
|
698
|
+
],
|
|
699
|
+
"role": "卡片内边距",
|
|
700
|
+
"to": "space.card",
|
|
701
|
+
"var": "--space-card"
|
|
702
|
+
},
|
|
703
|
+
{
|
|
704
|
+
"hints": [
|
|
705
|
+
"height",
|
|
706
|
+
"控件高",
|
|
707
|
+
"36px",
|
|
708
|
+
"32px",
|
|
709
|
+
"40px",
|
|
710
|
+
"--ant-control-height",
|
|
711
|
+
"@height-base"
|
|
712
|
+
],
|
|
713
|
+
"note": "",
|
|
714
|
+
"properties": [
|
|
715
|
+
"height",
|
|
716
|
+
"min-height",
|
|
717
|
+
"line-height"
|
|
718
|
+
],
|
|
719
|
+
"role": "控件高度",
|
|
720
|
+
"to": "control.height.md",
|
|
721
|
+
"var": "--control-height-md"
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
"hints": [
|
|
725
|
+
"shadow",
|
|
726
|
+
"阴影",
|
|
727
|
+
"box-shadow",
|
|
728
|
+
"--ant-box-shadow-tertiary",
|
|
729
|
+
"--ant-box-shadow-card"
|
|
730
|
+
],
|
|
731
|
+
"note": "阴影拆成 y / blur / color 三件:box-shadow: 0 var(--elevation-card-y) var(--elevation-card-blur) var(--elevation-card-color)。",
|
|
732
|
+
"properties": [
|
|
733
|
+
"box-shadow"
|
|
734
|
+
],
|
|
735
|
+
"role": "卡片阴影",
|
|
736
|
+
"to": "elevation.card.color",
|
|
737
|
+
"var": "--elevation-card-color"
|
|
738
|
+
}
|
|
739
|
+
],
|
|
740
|
+
"skipped": [],
|
|
741
|
+
"system": "morganite",
|
|
742
|
+
"version": 1
|
|
743
|
+
}
|