-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapp.config.ts
245 lines (238 loc) · 9.19 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
export default defineAppConfig({
ui: {
icons: {
dynamic: true,
},
primary: "actan",
gray: "stone",
buttonGroup: {
wrapper: {
horizontal:
"inline-flex border-2 border-t-primary-400 border-r-primary-800 border-b-primary-700 border-l-primary-500 space-x-0",
vertical: "inline-flex flex-col space-y-1",
},
rounded: "rounded-none",
shadow: "shadow-none",
},
button: {
base: "focus:outline-none focus-visible:outline-0 disabled:cursor-not-allowed disabled:opacity-75 flex-shrink-0 border-2 border-t-[#b42519] border-l-[#6f130b] border-r-[#150101] border-b-[#1f0201]",
font: "font-bold font-serif",
rounded: "",
truncate: "text-left break-all line-clamp-1",
block: "w-full flex justify-center items-center",
inline: "inline-flex items-center",
size: {
"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",
},
square: {
"2xs": "p-1",
"xs": "p-1.5",
"sm": "p-1.5",
"md": "p-2",
"lg": "p-2.5",
"xl": "p-2.5",
},
color: {
white: {
solid:
"text-white",
ghost:
"text-white",
},
gray: {
solid:
"shadow-sm ring-1 ring-inset ring-gray-300 dark:ring-gray-700 text-gray-700 dark:text-gray-200 bg-gray-50 hover:bg-gray-100 disabled:bg-gray-50 dark:bg-gray-800 dark:hover:bg-gray-700/50 dark:disabled:bg-gray-800 focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",
ghost:
"text-gray-700 dark:text-gray-200 hover:text-gray-900 dark:hover:text-white hover:bg-gray-50 dark:hover:bg-gray-800 focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",
link: "text-gray-500 dark:text-gray-400 hover:text-gray-700 dark:hover:text-gray-200 underline-offset-4 hover:underline focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",
},
black: {
solid:
"shadow-sm text-white dark:text-gray-900 bg-gray-900 hover:bg-gray-800 disabled:bg-gray-900 dark:bg-white dark:hover:bg-gray-100 dark:disabled:bg-white focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",
link: "text-gray-900 dark:text-white underline-offset-4 hover:underline focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",
},
},
variant: {
solid:
"shadow-sm text-white dark:text-gray-900 bg-{color}-500 hover:bg-{color}-600 disabled:bg-{color}-500 dark:bg-{color}-400 dark:hover:bg-{color}-500 dark:disabled:bg-{color}-400 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-{color}-500 dark:focus-visible:outline-{color}-400",
outline:
"ring-1 ring-inset ring-current text-{color}-500 dark:text-{color}-400 hover:bg-{color}-50 disabled:bg-transparent dark:hover:bg-{color}-950 dark:disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",
soft: "text-{color}-500 dark:text-{color}-400 bg-{color}-50 hover:bg-{color}-100 disabled:bg-{color}-50 dark:bg-{color}-950 dark:hover:bg-{color}-900 dark:disabled:bg-{color}-950 focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",
ghost:
"text-{color}-500 dark:text-{color}-400 hover:bg-{color}-50 disabled:bg-transparent dark:hover:bg-{color}-950 dark:disabled:bg-transparent focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",
link: "text-{color}-500 hover:text-{color}-600 disabled:text-{color}-500 dark:text-{color}-400 dark:hover:text-{color}-500 dark:disabled:text-{color}-400 underline-offset-4 hover:underline focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-{color}-500 dark:focus-visible:ring-{color}-400",
},
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-5 w-5",
"xl": "h-6 w-6",
},
},
default: {
size: "sm",
variant: "solid",
color: "primary",
loadingIcon: "i-heroicons-arrow-path-20-solid",
},
},
dropdown: {
background: "bg-actan-400",
item: {
base: "group flex items-center gap-1.5 w-full font-serif",
rounded: "rounded-md",
padding: "px-1.5 py-1.5",
size: "text-md",
active: "bg-gray-100 dark:bg-gray-900 text-gray-900 dark:text-white",
inactive: "text-gray-700 dark:text-gray-200",
disabled: "cursor-not-allowed opacity-50",
icon: {
base: "flex-shrink-0 w-5 h-5",
active: "text-gray-500 dark:text-gray-400",
inactive: "text-gray-400 dark:text-gray-500",
},
avatar: {
base: "flex-shrink-0",
size: "2xs",
},
label: "truncate",
shortcuts: "hidden md:inline-flex flex-shrink-0 gap-0.5 ms-auto",
},
},
table: {
divide: "divide-y divide-gray-700",
tbody: "divide-y divide-gray-700",
tr: {
selected: "bg-gray-50 dark:bg-gray-800/50",
active: "hover:bg-gray-50 dark:hover:bg-gray-800/50 cursor-pointer",
},
th: {
color: "text-gray-500",
},
td: {
base: "whitespace-nowrap",
padding: "px-4 py-4",
color: "text-gray-300",
font: "",
size: "text-md",
},
},
breadcrumb: {
wrapper: "relative",
ol: "flex items-center gap-x-1",
li: "flex items-center gap-x-1 text-gray-500 dark:text-gray-400 text-sm leading-6 min-w-0",
base: "flex items-center gap-x-1 group font-serif font-normal min-w-0",
label: "block truncate",
icon: {
base: "flex-shrink-0 w-5 h-5",
active: "",
inactive: "",
},
divider: {
base: "text-actan-500 flex-shrink-0 w-5 h-5",
},
active: "text-actan-500",
inactive: "text-actan-500 hover:text-primary-200",
default: {
divider:
"i-heroicons-chevron-right-20-solid rtl:i-heroicons-chevron-left-20-solid",
},
},
pagination: {
wrapper: "flex items-center -space-x-px",
base: "",
rounded: "first:rounded-s-md last:rounded-e-md",
default: {
size: "sm",
activeButton: {
color: "acblue",
class: "font-sans",
},
inactiveButton: {
color: "acred",
class: "font-sans",
},
firstButton: {
color: "acred",
class: "rtl:[&_span:first-child]:rotate-180",
icon: "i-heroicons-chevron-double-left-20-solid",
},
lastButton: {
color: "acred",
class: "rtl:[&_span:last-child]:rotate-180",
icon: "i-heroicons-chevron-double-right-20-solid",
},
prevButton: {
color: "acred",
class: "rtl:[&_span:first-child]:rotate-180",
icon: "i-heroicons-chevron-left-20-solid",
},
nextButton: {
color: "acred",
class: "rtl:[&_span:last-child]:rotate-180",
icon: "i-heroicons-chevron-right-20-solid",
},
},
},
tabs: {
wrapper: "relative space-y-2",
container: "relative w-full",
base: "focus:outline-none",
list: {
base: "relative",
background: "",
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-acred-400",
rounded: "rounded-md",
shadow: "shadow-sm",
},
tab: {
base: "relative inline-flex items-center justify-center flex-shrink-0 w-auto 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: "bg-gray-700",
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: "",
},
},
},
},
})