@lark-apaas/miaoda-inspector 0.1.0-alpha.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.
- package/LICENSE +13 -0
- package/README.md +1 -0
- package/dist/es/Inspector/Inspector.js +179 -0
- package/dist/es/Inspector/Overlay.js +400 -0
- package/dist/es/Inspector/hooks/index.js +3 -0
- package/dist/es/Inspector/hooks/use-effect-event.js +15 -0
- package/dist/es/Inspector/hooks/use-layout-effect.js +3 -0
- package/dist/es/Inspector/hooks/use-mouse.js +22 -0
- package/dist/es/Inspector/index.js +1 -0
- package/dist/es/Inspector/utils/fiber.js +61 -0
- package/dist/es/Inspector/utils/highlight.js +74 -0
- package/dist/es/Inspector/utils/index.js +3 -0
- package/dist/es/Inspector/utils/inspect.js +119 -0
- package/dist/es/Inspector/utils/overlay.js +20 -0
- package/dist/es/MiaodaInspector/MiaodaInspector.css +46 -0
- package/dist/es/MiaodaInspector/MiaodaInspector.js +397 -0
- package/dist/es/MiaodaInspector/index.js +1 -0
- package/dist/es/config/ui-config.js +787 -0
- package/dist/es/index.js +2 -0
- package/dist/es/types/iframe-events.js +1 -0
- package/dist/es/types/index.js +1 -0
- package/dist/es/utils/config-mapper.js +163 -0
- package/dist/es/utils/css.js +5 -0
- package/dist/es/utils/index.js +3 -0
- package/dist/es/utils/origin.js +19 -0
- package/dist/es/utils/style-calculator.js +158 -0
- package/dist/lib/Inspector/Inspector.js +203 -0
- package/dist/lib/Inspector/Overlay.js +419 -0
- package/dist/lib/Inspector/hooks/index.js +20 -0
- package/dist/lib/Inspector/hooks/use-effect-event.js +25 -0
- package/dist/lib/Inspector/hooks/use-layout-effect.js +13 -0
- package/dist/lib/Inspector/hooks/use-mouse.js +32 -0
- package/dist/lib/Inspector/index.js +11 -0
- package/dist/lib/Inspector/utils/fiber.js +95 -0
- package/dist/lib/Inspector/utils/highlight.js +84 -0
- package/dist/lib/Inspector/utils/index.js +20 -0
- package/dist/lib/Inspector/utils/inspect.js +153 -0
- package/dist/lib/Inspector/utils/overlay.js +39 -0
- package/dist/lib/MiaodaInspector/MiaodaInspector.css +46 -0
- package/dist/lib/MiaodaInspector/MiaodaInspector.js +447 -0
- package/dist/lib/MiaodaInspector/index.js +11 -0
- package/dist/lib/config/ui-config.js +797 -0
- package/dist/lib/index.js +21 -0
- package/dist/lib/types/iframe-events.js +4 -0
- package/dist/lib/types/index.js +47 -0
- package/dist/lib/utils/config-mapper.js +182 -0
- package/dist/lib/utils/css.js +20 -0
- package/dist/lib/utils/index.js +61 -0
- package/dist/lib/utils/origin.js +44 -0
- package/dist/lib/utils/style-calculator.js +207 -0
- package/dist/types/Inspector/Inspector.d.ts +102 -0
- package/dist/types/Inspector/Overlay.d.ts +71 -0
- package/dist/types/Inspector/hooks/index.d.ts +3 -0
- package/dist/types/Inspector/hooks/use-effect-event.d.ts +9 -0
- package/dist/types/Inspector/hooks/use-layout-effect.d.ts +2 -0
- package/dist/types/Inspector/hooks/use-mouse.d.ts +9 -0
- package/dist/types/Inspector/index.d.ts +1 -0
- package/dist/types/Inspector/utils/fiber.d.ts +34 -0
- package/dist/types/Inspector/utils/highlight.d.ts +8 -0
- package/dist/types/Inspector/utils/index.d.ts +3 -0
- package/dist/types/Inspector/utils/inspect.d.ts +110 -0
- package/dist/types/Inspector/utils/overlay.d.ts +30 -0
- package/dist/types/MiaodaInspector/MiaodaInspector.d.ts +47 -0
- package/dist/types/MiaodaInspector/index.d.ts +1 -0
- package/dist/types/config/ui-config.d.ts +49 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/types/iframe-events.d.ts +155 -0
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/utils/config-mapper.d.ts +12 -0
- package/dist/types/utils/css.d.ts +2 -0
- package/dist/types/utils/index.d.ts +3 -0
- package/dist/types/utils/origin.d.ts +9 -0
- package/dist/types/utils/style-calculator.d.ts +19 -0
- package/package.json +48 -0
|
@@ -0,0 +1,787 @@
|
|
|
1
|
+
export const defaultUIConfig = {
|
|
2
|
+
version: "1.0.0",
|
|
3
|
+
common: {
|
|
4
|
+
fontSize: {
|
|
5
|
+
type: "select",
|
|
6
|
+
options: [
|
|
7
|
+
{
|
|
8
|
+
value: "text-xs",
|
|
9
|
+
label: "xs(12px)",
|
|
10
|
+
rawValue: "12"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
value: "text-sm",
|
|
14
|
+
label: "sm(14px)",
|
|
15
|
+
rawValue: "14"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
value: "text-base",
|
|
19
|
+
label: "base(16px)",
|
|
20
|
+
rawValue: "16"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
value: "text-lg",
|
|
24
|
+
label: "lg(18px)",
|
|
25
|
+
rawValue: "18"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
value: "text-xl",
|
|
29
|
+
label: "xl(20px)",
|
|
30
|
+
rawValue: "20"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
value: "text-2xl",
|
|
34
|
+
label: "2xl(24px)",
|
|
35
|
+
rawValue: "24"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
value: "text-3xl",
|
|
39
|
+
label: "3xl(30px)",
|
|
40
|
+
rawValue: "30"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
value: "text-4xl",
|
|
44
|
+
label: "4xl(36px)",
|
|
45
|
+
rawValue: "36"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
value: "text-5xl",
|
|
49
|
+
label: "5xl(48px)",
|
|
50
|
+
rawValue: "48"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
value: "text-6xl",
|
|
54
|
+
label: "6xl(60px)",
|
|
55
|
+
rawValue: "60"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
value: "text-7xl",
|
|
59
|
+
label: "7xl(72px)",
|
|
60
|
+
rawValue: "72"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
value: "text-8xl",
|
|
64
|
+
label: "8xl(96px)",
|
|
65
|
+
rawValue: "96"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
value: "text-9xl",
|
|
69
|
+
label: "9xl(128px)",
|
|
70
|
+
rawValue: "128"
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
fontWeight: {
|
|
75
|
+
type: "select",
|
|
76
|
+
options: [
|
|
77
|
+
{
|
|
78
|
+
value: "font-thin",
|
|
79
|
+
label: "极细(Thin)",
|
|
80
|
+
rawValue: "100"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
value: "font-extralight",
|
|
84
|
+
label: "极轻(Extra Light)",
|
|
85
|
+
rawValue: "200"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
value: "font-light",
|
|
89
|
+
label: "轻(Light)",
|
|
90
|
+
rawValue: "300"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
value: "font-normal",
|
|
94
|
+
label: "常规(Normal)",
|
|
95
|
+
rawValue: "400"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
value: "font-medium",
|
|
99
|
+
label: "中粗(Medium)",
|
|
100
|
+
rawValue: "500"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
value: "font-semibold",
|
|
104
|
+
label: "半粗(Semi Bold)",
|
|
105
|
+
rawValue: "600"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
value: "font-bold",
|
|
109
|
+
label: "粗(Bold)",
|
|
110
|
+
rawValue: "700"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
value: "font-extrabold",
|
|
114
|
+
label: "极粗(Extra Bold)",
|
|
115
|
+
rawValue: "800"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
value: "font-black",
|
|
119
|
+
label: "黑体(Black)",
|
|
120
|
+
rawValue: "900"
|
|
121
|
+
}
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
borderRadius: {
|
|
125
|
+
type: "select",
|
|
126
|
+
options: [
|
|
127
|
+
{
|
|
128
|
+
value: "rounded-none",
|
|
129
|
+
label: "none(0px)",
|
|
130
|
+
rawValue: "0"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
value: "rounded-sm",
|
|
134
|
+
label: "sm (2px)",
|
|
135
|
+
rawValue: "2"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
value: "rounded",
|
|
139
|
+
label: "s (4px)",
|
|
140
|
+
rawValue: "4"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
value: "rounded-md",
|
|
144
|
+
label: "m (6px)",
|
|
145
|
+
rawValue: "6"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
value: "rounded-lg",
|
|
149
|
+
label: "l (8px)",
|
|
150
|
+
rawValue: "8"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
value: "rounded-xl",
|
|
154
|
+
label: "xl (12px)",
|
|
155
|
+
rawValue: "12"
|
|
156
|
+
},
|
|
157
|
+
// TODO:为啥都没了?
|
|
158
|
+
// { value: 'rounded-2xl', label: translate('2xl (16px)') },
|
|
159
|
+
// { value: 'rounded-3xl', label: translate('3xl (24px)') },
|
|
160
|
+
{
|
|
161
|
+
value: "rounded-full",
|
|
162
|
+
label: "Full",
|
|
163
|
+
rawValue: "9999"
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
borderWidth: {
|
|
168
|
+
type: "select",
|
|
169
|
+
options: [
|
|
170
|
+
{
|
|
171
|
+
value: "border-0",
|
|
172
|
+
label: "0px",
|
|
173
|
+
rawValue: "0"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
value: "border",
|
|
177
|
+
label: "1px",
|
|
178
|
+
rawValue: "1"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
value: "border-2",
|
|
182
|
+
label: "2px",
|
|
183
|
+
rawValue: "2"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
value: "border-4",
|
|
187
|
+
label: "4px",
|
|
188
|
+
rawValue: "4"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
value: "border-8",
|
|
192
|
+
label: "8px",
|
|
193
|
+
rawValue: "8"
|
|
194
|
+
}
|
|
195
|
+
]
|
|
196
|
+
},
|
|
197
|
+
textAlign: {
|
|
198
|
+
type: "select",
|
|
199
|
+
options: [
|
|
200
|
+
{
|
|
201
|
+
value: "text-left",
|
|
202
|
+
label: "Left",
|
|
203
|
+
rawValue: "left"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
value: "text-center",
|
|
207
|
+
label: "Center",
|
|
208
|
+
rawValue: "center"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
value: "text-right",
|
|
212
|
+
label: "Right",
|
|
213
|
+
rawValue: "right"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
value: "text-justify",
|
|
217
|
+
label: "Justify",
|
|
218
|
+
rawValue: "justify"
|
|
219
|
+
}
|
|
220
|
+
]
|
|
221
|
+
},
|
|
222
|
+
padding: {
|
|
223
|
+
type: "spacing",
|
|
224
|
+
options: [
|
|
225
|
+
{
|
|
226
|
+
label: "0",
|
|
227
|
+
value: "0",
|
|
228
|
+
rawValue: "0"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
label: "4",
|
|
232
|
+
value: "4",
|
|
233
|
+
rawValue: "4"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
label: "8",
|
|
237
|
+
value: "8",
|
|
238
|
+
rawValue: "8"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
label: "12",
|
|
242
|
+
value: "12",
|
|
243
|
+
rawValue: "12"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
label: "16",
|
|
247
|
+
value: "16",
|
|
248
|
+
rawValue: "16"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
label: "20",
|
|
252
|
+
value: "20",
|
|
253
|
+
rawValue: "20"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
label: "24",
|
|
257
|
+
value: "24",
|
|
258
|
+
rawValue: "24"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
label: "32",
|
|
262
|
+
value: "32",
|
|
263
|
+
rawValue: "32"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
label: "36",
|
|
267
|
+
value: "36",
|
|
268
|
+
rawValue: "36"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
label: "40",
|
|
272
|
+
value: "40",
|
|
273
|
+
rawValue: "40"
|
|
274
|
+
}
|
|
275
|
+
]
|
|
276
|
+
},
|
|
277
|
+
margin: {
|
|
278
|
+
type: "spacing",
|
|
279
|
+
options: [
|
|
280
|
+
{
|
|
281
|
+
label: "0",
|
|
282
|
+
value: "0",
|
|
283
|
+
rawValue: "0"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
label: "4",
|
|
287
|
+
value: "4",
|
|
288
|
+
rawValue: "4"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
label: "8",
|
|
292
|
+
value: "8",
|
|
293
|
+
rawValue: "8"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
label: "12",
|
|
297
|
+
value: "12",
|
|
298
|
+
rawValue: "12"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
label: "16",
|
|
302
|
+
value: "16",
|
|
303
|
+
rawValue: "16"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
label: "20",
|
|
307
|
+
value: "20",
|
|
308
|
+
rawValue: "20"
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
label: "24",
|
|
312
|
+
value: "24",
|
|
313
|
+
rawValue: "24"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
label: "32",
|
|
317
|
+
value: "32",
|
|
318
|
+
rawValue: "32"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
label: "36",
|
|
322
|
+
value: "36",
|
|
323
|
+
rawValue: "36"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
label: "40",
|
|
327
|
+
value: "40",
|
|
328
|
+
rawValue: "40"
|
|
329
|
+
}
|
|
330
|
+
]
|
|
331
|
+
},
|
|
332
|
+
color: {
|
|
333
|
+
type: "color-picker",
|
|
334
|
+
recommendColors: [
|
|
335
|
+
{
|
|
336
|
+
title: "中性色",
|
|
337
|
+
options: [
|
|
338
|
+
{
|
|
339
|
+
value: "text-neutral-00",
|
|
340
|
+
label: "neutral-00",
|
|
341
|
+
type: "tailwind",
|
|
342
|
+
rawValue: "#ffffff"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
value: "text-neutral-50",
|
|
346
|
+
label: "neutral-50",
|
|
347
|
+
type: "tailwind",
|
|
348
|
+
rawValue: "#f5f6f7"
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
value: "text-neutral-100",
|
|
352
|
+
label: "neutral-100",
|
|
353
|
+
type: "tailwind",
|
|
354
|
+
rawValue: "#f2f3f5"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
value: "text-neutral-200",
|
|
358
|
+
label: "neutral-200",
|
|
359
|
+
type: "tailwind",
|
|
360
|
+
rawValue: "#eff0f1"
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
value: "text-neutral-300",
|
|
364
|
+
label: "neutral-300",
|
|
365
|
+
type: "tailwind",
|
|
366
|
+
rawValue: "#dee0e3"
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
value: "text-neutral-400",
|
|
370
|
+
label: "neutral-400",
|
|
371
|
+
type: "tailwind",
|
|
372
|
+
rawValue: "#d0d3d6"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
value: "text-neutral-500",
|
|
376
|
+
label: "neutral-500",
|
|
377
|
+
type: "tailwind",
|
|
378
|
+
rawValue: "#bbbfc4"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
value: "text-neutral-600",
|
|
382
|
+
label: "neutral-600",
|
|
383
|
+
type: "tailwind",
|
|
384
|
+
rawValue: "#8f959e"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
value: "text-neutral-650",
|
|
388
|
+
label: "neutral-650",
|
|
389
|
+
type: "tailwind",
|
|
390
|
+
rawValue: "#51565d"
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
value: "text-neutral-700",
|
|
394
|
+
label: "neutral-700",
|
|
395
|
+
type: "tailwind",
|
|
396
|
+
rawValue: "#646a73"
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
value: "text-neutral-800",
|
|
400
|
+
label: "neutral-800",
|
|
401
|
+
type: "tailwind",
|
|
402
|
+
rawValue: "#373c43"
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
value: "text-neutral-900",
|
|
406
|
+
label: "neutral-900",
|
|
407
|
+
type: "tailwind",
|
|
408
|
+
rawValue: "#2b2f36"
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
value: "text-neutral-950",
|
|
412
|
+
label: "neutral-950",
|
|
413
|
+
type: "tailwind",
|
|
414
|
+
rawValue: "#1f2329"
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
value: "text-neutral-1000",
|
|
418
|
+
label: "neutral-1000",
|
|
419
|
+
type: "tailwind",
|
|
420
|
+
rawValue: "#000000"
|
|
421
|
+
}
|
|
422
|
+
]
|
|
423
|
+
}
|
|
424
|
+
]
|
|
425
|
+
},
|
|
426
|
+
backgroundColor: {
|
|
427
|
+
type: "color-picker",
|
|
428
|
+
recommendColors: [
|
|
429
|
+
{
|
|
430
|
+
title: "中性色",
|
|
431
|
+
options: [
|
|
432
|
+
{
|
|
433
|
+
value: "bg-neutral-00",
|
|
434
|
+
label: "neutral-00",
|
|
435
|
+
type: "tailwind",
|
|
436
|
+
rawValue: "#ffffff"
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
value: "bg-neutral-50",
|
|
440
|
+
label: "neutral-50",
|
|
441
|
+
type: "tailwind",
|
|
442
|
+
rawValue: "#f5f6f7"
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
value: "bg-neutral-100",
|
|
446
|
+
label: "neutral-100",
|
|
447
|
+
type: "tailwind",
|
|
448
|
+
rawValue: "#f2f3f5"
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
value: "bg-neutral-200",
|
|
452
|
+
label: "neutral-200",
|
|
453
|
+
type: "tailwind",
|
|
454
|
+
rawValue: "#eff0f1"
|
|
455
|
+
},
|
|
456
|
+
{
|
|
457
|
+
value: "bg-neutral-300",
|
|
458
|
+
label: "neutral-300",
|
|
459
|
+
type: "tailwind",
|
|
460
|
+
rawValue: "#dee0e3"
|
|
461
|
+
},
|
|
462
|
+
{
|
|
463
|
+
value: "bg-neutral-400",
|
|
464
|
+
label: "neutral-400",
|
|
465
|
+
type: "tailwind",
|
|
466
|
+
rawValue: "#d0d3d6"
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
value: "bg-neutral-500",
|
|
470
|
+
label: "neutral-500",
|
|
471
|
+
type: "tailwind",
|
|
472
|
+
rawValue: "#bbbfc4"
|
|
473
|
+
},
|
|
474
|
+
{
|
|
475
|
+
value: "bg-neutral-600",
|
|
476
|
+
label: "neutral-600",
|
|
477
|
+
type: "tailwind",
|
|
478
|
+
rawValue: "#8f959e"
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
value: "bg-neutral-650",
|
|
482
|
+
label: "neutral-650",
|
|
483
|
+
type: "tailwind",
|
|
484
|
+
rawValue: "#51565d"
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
value: "bg-neutral-700",
|
|
488
|
+
label: "neutral-700",
|
|
489
|
+
type: "tailwind",
|
|
490
|
+
rawValue: "#646a73"
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
value: "bg-neutral-800",
|
|
494
|
+
label: "neutral-800",
|
|
495
|
+
type: "tailwind",
|
|
496
|
+
rawValue: "#373c43"
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
value: "bg-neutral-900",
|
|
500
|
+
label: "neutral-900",
|
|
501
|
+
type: "tailwind",
|
|
502
|
+
rawValue: "#2b2f36"
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
value: "bg-neutral-950",
|
|
506
|
+
label: "neutral-950",
|
|
507
|
+
type: "tailwind",
|
|
508
|
+
rawValue: "#1f2329"
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
value: "bg-neutral-1000",
|
|
512
|
+
label: "neutral-1000",
|
|
513
|
+
type: "tailwind",
|
|
514
|
+
rawValue: "#000000"
|
|
515
|
+
}
|
|
516
|
+
]
|
|
517
|
+
}
|
|
518
|
+
]
|
|
519
|
+
},
|
|
520
|
+
borderColor: {
|
|
521
|
+
type: "color-picker",
|
|
522
|
+
recommendColors: [
|
|
523
|
+
{
|
|
524
|
+
title: "中性色",
|
|
525
|
+
options: [
|
|
526
|
+
{
|
|
527
|
+
value: "border-neutral-00",
|
|
528
|
+
label: "neutral-00",
|
|
529
|
+
type: "tailwind",
|
|
530
|
+
rawValue: "#ffffff"
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
value: "border-neutral-50",
|
|
534
|
+
label: "neutral-50",
|
|
535
|
+
type: "tailwind",
|
|
536
|
+
rawValue: "#f5f6f7"
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
value: "border-neutral-100",
|
|
540
|
+
label: "neutral-100",
|
|
541
|
+
type: "tailwind",
|
|
542
|
+
rawValue: "#f2f3f5"
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
value: "border-neutral-200",
|
|
546
|
+
label: "neutral-200",
|
|
547
|
+
type: "tailwind",
|
|
548
|
+
rawValue: "#eff0f1"
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
value: "border-neutral-300",
|
|
552
|
+
label: "neutral-300",
|
|
553
|
+
type: "tailwind",
|
|
554
|
+
rawValue: "#dee0e3"
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
value: "border-neutral-400",
|
|
558
|
+
label: "neutral-400",
|
|
559
|
+
type: "tailwind",
|
|
560
|
+
rawValue: "#d0d3d6"
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
value: "border-neutral-500",
|
|
564
|
+
label: "neutral-500",
|
|
565
|
+
type: "tailwind",
|
|
566
|
+
rawValue: "#bbbfc4"
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
value: "border-neutral-600",
|
|
570
|
+
label: "neutral-600",
|
|
571
|
+
type: "tailwind",
|
|
572
|
+
rawValue: "#8f959e"
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
value: "border-neutral-650",
|
|
576
|
+
label: "neutral-650",
|
|
577
|
+
type: "tailwind",
|
|
578
|
+
rawValue: "#51565d"
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
value: "border-neutral-700",
|
|
582
|
+
label: "neutral-700",
|
|
583
|
+
type: "tailwind",
|
|
584
|
+
rawValue: "#646a73"
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
value: "border-neutral-800",
|
|
588
|
+
label: "neutral-800",
|
|
589
|
+
type: "tailwind",
|
|
590
|
+
rawValue: "#373c43"
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
value: "border-neutral-900",
|
|
594
|
+
label: "neutral-900",
|
|
595
|
+
type: "tailwind",
|
|
596
|
+
rawValue: "#2b2f36"
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
value: "border-neutral-950",
|
|
600
|
+
label: "neutral-950",
|
|
601
|
+
type: "tailwind",
|
|
602
|
+
rawValue: "#1f2329"
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
value: "border-neutral-1000",
|
|
606
|
+
label: "neutral-1000",
|
|
607
|
+
type: "tailwind",
|
|
608
|
+
rawValue: "#000000"
|
|
609
|
+
}
|
|
610
|
+
]
|
|
611
|
+
}
|
|
612
|
+
]
|
|
613
|
+
}
|
|
614
|
+
},
|
|
615
|
+
tokens: {
|
|
616
|
+
// blue
|
|
617
|
+
"blue-50": "#f0f4ff",
|
|
618
|
+
"blue-100": "#e0e9ff",
|
|
619
|
+
"blue-200": "#c2d4ff",
|
|
620
|
+
"blue-300": "#94b4ff",
|
|
621
|
+
"blue-400": "#7aa2ff",
|
|
622
|
+
"blue-500": "#5083fb",
|
|
623
|
+
"blue-600": "#336df4",
|
|
624
|
+
"blue-700": "#1456f0",
|
|
625
|
+
"blue-800": "#0442d2",
|
|
626
|
+
"blue-900": "#002f9e",
|
|
627
|
+
"blue-950": "#002270",
|
|
628
|
+
// indigo
|
|
629
|
+
"indigo-50": "#f2f3fd",
|
|
630
|
+
"indigo-100": "#e9eafb",
|
|
631
|
+
"indigo-200": "#cccff9",
|
|
632
|
+
"indigo-300": "#abb0f2",
|
|
633
|
+
"indigo-400": "#959bee",
|
|
634
|
+
"indigo-500": "#757df0",
|
|
635
|
+
"indigo-600": "#5b65f5",
|
|
636
|
+
"indigo-700": "#4752e6",
|
|
637
|
+
"indigo-800": "#333dcc",
|
|
638
|
+
"indigo-900": "#1e27a4",
|
|
639
|
+
"indigo-950": "#151b70",
|
|
640
|
+
// purple
|
|
641
|
+
"purple-50": "#f5f0fe",
|
|
642
|
+
"purple-100": "#efe6fe",
|
|
643
|
+
"purple-200": "#dcc9fd",
|
|
644
|
+
"purple-300": "#c8a9fc",
|
|
645
|
+
"purple-400": "#b791fa",
|
|
646
|
+
"purple-500": "#9f6ff1",
|
|
647
|
+
"purple-600": "#8d55ed",
|
|
648
|
+
"purple-700": "#7a35f0",
|
|
649
|
+
"purple-800": "#611fd6",
|
|
650
|
+
"purple-900": "#4811a6",
|
|
651
|
+
"purple-950": "#2f0080",
|
|
652
|
+
// violet
|
|
653
|
+
"violet-50": "#fceefc",
|
|
654
|
+
"violet-100": "#f9e2f9",
|
|
655
|
+
"violet-200": "#f3c4f3",
|
|
656
|
+
"violet-300": "#e59ce5",
|
|
657
|
+
"violet-400": "#de81de",
|
|
658
|
+
"violet-500": "#cf5ecf",
|
|
659
|
+
"violet-600": "#bf3dbf",
|
|
660
|
+
"violet-700": "#a630a6",
|
|
661
|
+
"violet-800": "#872787",
|
|
662
|
+
"violet-900": "#6a116a",
|
|
663
|
+
"violet-950": "#520052",
|
|
664
|
+
// pink
|
|
665
|
+
"pink-50": "#fef0f8",
|
|
666
|
+
"pink-100": "#fee2f2",
|
|
667
|
+
"pink-200": "#f8c4e1",
|
|
668
|
+
"pink-300": "#f598cc",
|
|
669
|
+
"pink-400": "#eb78b8",
|
|
670
|
+
"pink-500": "#df58a5",
|
|
671
|
+
"pink-600": "#cc398c",
|
|
672
|
+
"pink-700": "#b82879",
|
|
673
|
+
"pink-800": "#9d1562",
|
|
674
|
+
"pink-900": "#730744",
|
|
675
|
+
"pink-950": "#550c35",
|
|
676
|
+
// red
|
|
677
|
+
"red-50": "#fef0f0",
|
|
678
|
+
"red-100": "#fee3e2",
|
|
679
|
+
"red-200": "#fdc6c4",
|
|
680
|
+
"red-300": "#f89e9b",
|
|
681
|
+
"red-400": "#ff7570",
|
|
682
|
+
"red-500": "#f54a45",
|
|
683
|
+
"red-600": "#e22e28",
|
|
684
|
+
"red-700": "#c02a26",
|
|
685
|
+
"red-800": "#a11c17",
|
|
686
|
+
"red-900": "#741915",
|
|
687
|
+
"red-950": "#590603",
|
|
688
|
+
// 'neutral-00': '#ffffff',
|
|
689
|
+
// 'neutral-50': '#f5f6f7',
|
|
690
|
+
// 'neutral-100': '#f2f3f5',
|
|
691
|
+
// 'neutral-200': '#eff0f1',
|
|
692
|
+
// 'neutral-300': '#dee0e3',
|
|
693
|
+
// 'neutral-400': '#d0d3d6',
|
|
694
|
+
// 'neutral-500': '#bbbfc4',
|
|
695
|
+
// 'neutral-600': '#8f959e',
|
|
696
|
+
// 'neutral-650': '#51565d',
|
|
697
|
+
// 'neutral-700': '#646a73',
|
|
698
|
+
// 'neutral-800': '#373c43',
|
|
699
|
+
// 'neutral-900': '#2b2f36',
|
|
700
|
+
// 'neutral-950': '#1f2329',
|
|
701
|
+
// 'neutral-1000': '#000',
|
|
702
|
+
// orange
|
|
703
|
+
"orange-50": "#fff3e5",
|
|
704
|
+
"orange-100": "#fee7cd",
|
|
705
|
+
"orange-200": "#fec48b",
|
|
706
|
+
"orange-300": "#ff9d4c",
|
|
707
|
+
"orange-400": "#ff811a",
|
|
708
|
+
"orange-500": "#ed6d0c",
|
|
709
|
+
"orange-600": "#c25705",
|
|
710
|
+
"orange-700": "#a44904",
|
|
711
|
+
"orange-800": "#853a05",
|
|
712
|
+
"orange-900": "#642b02",
|
|
713
|
+
"orange-950": "#3b1a02",
|
|
714
|
+
// yellow
|
|
715
|
+
"yellow-50": "#fbf4df",
|
|
716
|
+
"yellow-100": "#faedc2",
|
|
717
|
+
"yellow-200": "#fcdf7e",
|
|
718
|
+
"yellow-300": "#fad355",
|
|
719
|
+
"yellow-400": "#ffc60a",
|
|
720
|
+
"yellow-500": "#d99904",
|
|
721
|
+
"yellow-600": "#ad7a03",
|
|
722
|
+
"yellow-700": "#865b03",
|
|
723
|
+
"yellow-800": "#6f4a01",
|
|
724
|
+
"yellow-900": "#573601",
|
|
725
|
+
"yellow-950": "#382201",
|
|
726
|
+
// amber
|
|
727
|
+
"amber-50": "#ffffdb",
|
|
728
|
+
"amber-100": "#fffca3",
|
|
729
|
+
"amber-200": "#fff67a",
|
|
730
|
+
"amber-300": "#fff258",
|
|
731
|
+
"amber-400": "#ffe928",
|
|
732
|
+
"amber-500": "#e5ce00",
|
|
733
|
+
"amber-600": "#c2a800",
|
|
734
|
+
"amber-700": "#8f7c00",
|
|
735
|
+
"amber-800": "#5c4f00",
|
|
736
|
+
"amber-900": "#423700",
|
|
737
|
+
"amber-950": "#2c2502",
|
|
738
|
+
// lime
|
|
739
|
+
"lime-50": "#f2f8d3",
|
|
740
|
+
"lime-100": "#e3f0a3",
|
|
741
|
+
"lime-200": "#c8dd5f",
|
|
742
|
+
"lime-300": "#a2c10b",
|
|
743
|
+
"lime-400": "#91ad00",
|
|
744
|
+
"lime-500": "#7b9207",
|
|
745
|
+
"lime-600": "#6b7f06",
|
|
746
|
+
"lime-700": "#5c6d08",
|
|
747
|
+
"lime-800": "#4a5804",
|
|
748
|
+
"lime-900": "#333d00",
|
|
749
|
+
"lime-950": "#262e00",
|
|
750
|
+
// green
|
|
751
|
+
"green-50": "#e4fae1",
|
|
752
|
+
"green-100": "#d0f5ce",
|
|
753
|
+
"green-200": "#95e599",
|
|
754
|
+
"green-300": "#5cd168",
|
|
755
|
+
"green-400": "#35bd4b",
|
|
756
|
+
"green-500": "#32a645",
|
|
757
|
+
"green-600": "#258832",
|
|
758
|
+
"green-700": "#1a7526",
|
|
759
|
+
"green-800": "#0b6017",
|
|
760
|
+
"green-900": "#04430c",
|
|
761
|
+
"green-950": "#022c07",
|
|
762
|
+
// teal
|
|
763
|
+
"teal-50": "#e2f8f5",
|
|
764
|
+
"teal-100": "#c4f2ec",
|
|
765
|
+
"teal-200": "#6fe8d8",
|
|
766
|
+
"teal-300": "#33d6c0",
|
|
767
|
+
"teal-400": "#2dbeab",
|
|
768
|
+
"teal-500": "#10a893",
|
|
769
|
+
"teal-600": "#0f8575",
|
|
770
|
+
"teal-700": "#067062",
|
|
771
|
+
"teal-800": "#045d51",
|
|
772
|
+
"teal-900": "#03443b",
|
|
773
|
+
"teal-950": "#02312a",
|
|
774
|
+
// cyan
|
|
775
|
+
"cyan-50": "#e7f8fe",
|
|
776
|
+
"cyan-100": "#caeffc",
|
|
777
|
+
"cyan-200": "#97dcfc",
|
|
778
|
+
"cyan-300": "#3ec3f7",
|
|
779
|
+
"cyan-400": "#25b0e7",
|
|
780
|
+
"cyan-500": "#1295ca",
|
|
781
|
+
"cyan-600": "#047fb0",
|
|
782
|
+
"cyan-700": "#076a94",
|
|
783
|
+
"cyan-800": "#0f587a",
|
|
784
|
+
"cyan-900": "#06415c",
|
|
785
|
+
"cyan-950": "#072b3d"
|
|
786
|
+
}
|
|
787
|
+
};
|