-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.config.ts
437 lines (422 loc) · 14.4 KB
/
app.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
export default defineAppConfig({
ui: {
primary: "blueScriptBlue",
gray: "zinc",
variables: {
light: {
background: "255 255 255",
foreground: "var(--color-gray-700)",
},
dark: {
background: "var(--color-gray-950)",
foreground: "var(--color-gray-200)",
},
},
card: {
background: "bg-white dark:bg-zinc-950",
ring: "ring-1 ring-gray-200 dark:ring-gray-800",
rounded: "rounded-xl",
},
button: {
base: "focus:outline-none focus-visible:outline-0 disabled:cursor-not-allowed disabled:opacity-75 flex-shrink-0 font-medium rounded-md text-sm inline-flex items-center justify-center transition-colors",
size: {
"2xs": "text-xs px-2 py-1",
xs: "text-xs px-2.5 py-1.5",
sm: "text-sm px-3 py-2",
md: "text-sm px-3.5 py-2.5",
lg: "text-base px-4 py-3",
xl: "text-base px-4.5 py-3.5",
},
variants: {
solid: {
primary:
"bg-primary-500 text-white hover:bg-primary-600 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary-500",
white:
"bg-white text-gray-900 hover:bg-gray-50 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary-500",
gray: "bg-gray-200 text-gray-800 hover:bg-gray-300 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-gray-500",
black:
"bg-gray-900 text-white hover:bg-gray-800 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary-500",
},
outline: {
primary:
"border border-primary-500 text-primary-500 hover:bg-primary-50 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary-500",
white:
"border border-gray-300 text-gray-900 hover:bg-white focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary-500",
gray: "border border-gray-500 text-gray-700 hover:bg-gray-50 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-gray-500",
black:
"border border-gray-900 text-gray-900 hover:bg-gray-900 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary-500",
},
ghost: {
primary:
"text-primary-500 hover:bg-primary-50 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary-500",
white:
"text-gray-900 hover:bg-white focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary-500",
gray: "text-gray-700 hover:bg-gray-100 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-gray-500",
black:
"text-gray-900 hover:bg-gray-900 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary-500",
},
link: {
primary:
"text-primary-500 hover:text-primary-600 underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary-500",
secondary:
"text-gray-700 hover:text-gray-800 underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-gray-500",
white:
"text-gray-900 hover:text-gray-700 underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary-500",
gray: "text-gray-700 hover:text-gray-900 underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary-500",
black:
"text-gray-900 hover:text-gray-700 underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:ring-primary-500",
},
},
icon: {
base: "flex-shrink-0",
loading: "animate-spin",
size: {
"2xs": "h-4 w-4",
xs: "h-4 w-4",
sm: "h-5 w-5",
md: "h-5 w-5",
lg: "h-6 w-6",
xl: "h-6 w-6",
},
},
default: {
size: "sm",
variant: "solid",
color: "primary",
loadingIcon: "i-ph-caret-down",
},
},
kbd: {
background: "bg-slate-100 dark:bg-slate-800",
ring: "ring-1 ring-slate-200 dark:ring-slate-800 ring-inset",
},
table: {
tr: {
base: "",
selected: "bg-gray-50 dark:bg-gray-800/50",
active: "hover:bg-gray-50 dark:hover:bg-gray-800/50 cursor-pointer",
},
th: {
base: "text-left rtl:text-right",
padding: "px-4 py-2",
color: "text-gray-900 dark:text-white",
font: "font-normal",
size: "text-sm",
},
td: {
base: "whitespace-nowrap",
padding: "px-4 py-2",
color: "text-gray-600 dark:text-gray-300",
font: "font-normal",
size: "text-sm",
},
},
input: {
wrapper: "relative",
base: "relative block w-full disabled:cursor-not-allowed disabled:opacity-75 focus:outline-none border-0",
form: "form-input",
rounded: "rounded-md",
placeholder:
"placeholder:text-muted-foreground dark:placeholder-gray-500",
file: {
base: "file:mr-1.5 file:font-medium file:text-gray-500 dark:file:text-gray-400 file:bg-transparent file:border-0 file:p-0 file:outline-none",
},
size: {
default: "h-10 px-3 py-2 text-sm",
"2xs": "text-xs",
xs: "text-xs",
sm: "text-sm",
md: "text-sm",
lg: "text-sm",
xl: "text-base",
},
gap: {
"2xs": "gap-x-1",
xs: "gap-x-1.5",
sm: "gap-x-1.5",
md: "gap-x-2",
lg: "gap-x-2.5",
xl: "gap-x-2.5",
},
padding: {
"2xs": "px-2 py-1",
xs: "px-2.5 py-1.5",
sm: "px-2.5 py-1.5",
md: "px-3 py-2",
lg: "px-3.5 py-2.5",
xl: "px-3.5 py-2.5",
},
leading: {
padding: {
"2xs": "ps-7",
xs: "ps-8",
sm: "ps-9",
md: "ps-10",
lg: "ps-11",
xl: "ps-12",
},
},
trailing: {
padding: {
"2xs": "pe-7",
xs: "pe-8",
sm: "pe-9",
md: "pe-10",
lg: "pe-11",
xl: "pe-12",
},
},
color: {
white: {
outline:
"shadow-sm bg-white dark:bg-gray-900 text-gray-900 dark:text-white ring-1 ring-inset ring-gray-300 dark:ring-gray-700 focus:ring-2 focus:ring-primary-500 dark:focus:ring-primary-400",
},
gray: {
outline:
"shadow-sm bg-gray-50 dark:bg-gray-800 text-gray-900 dark:text-white ring-1 ring-inset ring-gray-300 dark:ring-gray-700 focus:ring-2 focus:ring-primary-500 dark:focus:ring-primary-400",
},
},
variant: {
outline:
"shadow-sm bg-transparent text-gray-900 dark:text-white ring-1 ring-inset ring-{color}-500 dark:ring-{color}-400 focus:ring-2 focus:ring-{color}-500 dark:focus:ring-{color}-400",
none: "bg-transparent focus:ring-0 focus:shadow-none",
},
icon: {
base: "flex-shrink-0 text-gray-400 dark:text-gray-500",
color: "text-{color}-500 dark:text-{color}-400",
loading: "animate-spin",
size: {
"2xs": "h-4 w-4",
xs: "h-4 w-4",
sm: "h-5 w-5",
md: "h-5 w-5",
lg: "h-5 w-5",
xl: "h-6 w-6",
},
leading: {
wrapper: "absolute inset-y-0 start-0 flex items-center",
pointer: "pointer-events-none",
padding: {
"2xs": "px-2",
xs: "px-2.5",
sm: "px-2.5",
md: "px-3",
lg: "px-3.5",
xl: "px-3.5",
},
},
trailing: {
wrapper: "absolute inset-y-0 end-0 flex items-center",
pointer: "pointer-events-none",
padding: {
"2xs": "px-2",
xs: "px-2.5",
sm: "px-2.5",
md: "px-3",
lg: "px-3.5",
xl: "px-3.5",
},
},
},
default: {
size: "sm",
color: "white",
variant: "outline",
loadingIcon: "i-ph-check",
},
},
select: {
rounded: "rounded-md",
default: {
trailingIcon: "ph-caret-down",
},
},
selectMenu: {
container: "z-20 group",
trigger: "flex items-center w-full",
width: "w-full",
height: "max-h-60",
base: "relative focus:outline-none overflow-y-auto scroll-py-1",
background: "bg-white dark:bg-gray-800",
shadow: "shadow-sm",
rounded: "rounded-md",
padding: "p-1",
ring: "ring-1 ring-gray-200 dark:ring-gray-700",
empty: "text-sm text-gray-400 dark:text-gray-500 px-2 py-1.5",
option: {
base: "cursor-default select-none relative flex items-center justify-between gap-1",
rounded: "rounded-md",
padding: "px-1.5 py-1.5",
size: "text-sm",
color: "text-gray-900 dark:text-white",
container: "flex items-center gap-1.5 min-w-0",
active: "bg-gray-100 dark:bg-gray-900",
inactive: "",
selected: "pe-7",
disabled: "cursor-not-allowed opacity-50",
empty: "text-sm text-gray-400 dark:text-gray-500 px-2 py-1.5",
icon: {
base: "flex-shrink-0 h-5 w-5",
active: "text-gray-900 dark:text-white",
inactive: "text-gray-400 dark:text-gray-500",
},
selectedIcon: {
wrapper: "absolute inset-y-0 end-0 flex items-center",
padding: "pe-2",
base: "h-5 w-5 text-gray-900 dark:text-white flex-shrink-0",
},
avatar: {
base: "flex-shrink-0",
size: "2xs",
},
chip: {
base: "flex-shrink-0 w-2 h-2 mx-1 rounded-full",
},
create: "block truncate",
},
transition: {
leaveActiveClass: "transition ease-in duration-100",
leaveFromClass: "opacity-100",
leaveToClass: "opacity-0",
},
popper: {
placement: "bottom-end",
},
default: {
selectedIcon: "i-ph-check",
clearSearchOnClose: false,
showCreateOptionWhen: "empty",
},
arrow: {
base: "invisible before:visible before:block before:rotate-45 before:z-[-1] before:w-2 before:h-2",
ring: "before:ring-1 before:ring-gray-200 dark:before:ring-gray-700",
rounded: "before:rounded-sm",
background: "before:bg-white dark:before:bg-gray-700",
shadow: "before:shadow",
placement:
"group-data-[popper-placement*='right']:-left-1 group-data-[popper-placement*='left']:-right-1 group-data-[popper-placement*='top']:-bottom-1 group-data-[popper-placement*='bottom']:-top-1",
},
select: "inline-flex items-center text-left cursor-default",
input:
"block w-[calc(100%+0.5rem)] focus:ring-transparent text-sm px-3 py-1.5 text-gray-700 dark:text-gray-200 bg-white dark:bg-gray-800 border-0 border-b border-gray-200 dark:border-gray-700 sticky -top-1 -mt-1 mb-1 -mx-1 z-10 placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none",
required: "absolute inset-0 w-px opacity-0 cursor-default",
label: "block truncate",
},
textarea: {
color: {
gray: {
outline: "ring-1 ring-gray-200 dark:ring-gray-800",
},
},
},
breadcrumb: {
default: {
divider: "i-ph-caret-right",
},
},
header: {
wrapper: "backdrop-blur-lg border-b dark:border-gray-800",
container: "h-14",
links: {
wrapper: "px-3 gap-x-0",
base: "py-2 px-4 transition-colors font-normal relative after:absolute",
active: "font-semibold after:opacity-100 text-gray-950 dark:text-white",
inactive:
"font-normal text-gray-500 hover:text-gray-600 dark:text-gray-300 dark:hover:text-gray-100",
},
left: "sm:flex-1",
right: "sm:flex-1",
panel: {
wrapper: "lg:hidden hover:block",
},
button: {
base: "lg:hidden",
icon: {
open: "i-ph-list",
close: "i-ph-x",
},
},
},
notification: {
default: {
closeButton: {
icon: "i-ph-x",
},
},
},
commandPalette: {
default: {
icon: "i-ph-magnifying-glass",
loadingIcon: "i-svg-spinners-90-ring",
selectedIcon: "i-ph-check",
emptyState: {
icon: "i-ph-magnifying-glass",
},
},
},
accordion: {
default: {
openIcon: "i-ph-caret-down",
},
},
icons: {
dark: "i-ph-moon",
light: "i-ph-sun",
system: "ph-laptop",
search: "i-ph-magnifying-glass",
external: "i-ph-arrow-square-out",
chevron: "i-ph-caret-down",
hash: "i-ph-hash",
menu: "i-ph-list",
close: "i-ph-x",
check: "i-ph-check",
},
tabs: {
wrapper: "relative space-y-2",
container: "relative w-full",
base: "focus:outline-none",
list: {
base: "relative",
background: "bg-gray-100 dark:bg-gray-800",
rounded: "rounded-lg",
shadow: "",
padding: "p-1",
height: "h-10",
width: "w-full",
marker: {
wrapper:
"absolute top-[4px] left-[4px] duration-200 ease-out focus:outline-none",
base: "w-full h-full",
background: "bg-white dark:bg-gray-950",
rounded: "rounded-md",
shadow: "shadow-sm",
},
tab: {
base: "relative inline-flex items-center justify-center flex-shrink-0 w-full ui-focus-visible:outline-0 ui-focus-visible:ring-2 ui-focus-visible:ring-primary-500 dark:ui-focus-visible:ring-primary-400 ui-not-focus-visible:outline-none focus:outline-none disabled:cursor-not-allowed disabled:opacity-75 transition-colors duration-200 ease-out",
background: "",
active: "text-gray-900 dark:text-white",
inactive: "text-gray-500 dark:text-gray-400",
height: "h-8",
padding: "px-3",
size: "text-sm",
font: "font-medium",
rounded: "rounded-md",
shadow: "",
icon: "w-4 h-4 flex-shrink-0 me-2",
},
},
},
},
content: {
prose: {
code: {
button: {
icon: {
copy: "i-ph-copy-duotone",
copied: "i-ph-check-square-duotone",
},
},
},
},
},
});