kbd.ts
5.63 KB
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
const color = [
"primary",
"secondary",
"success",
"info",
"warning",
"error",
"neutral"
] as const
const variant = [
"solid",
"outline",
"soft",
"subtle"
] as const
const size = [
"sm",
"md",
"lg"
] as const
export default {
"base": "inline-flex items-center justify-center px-1 rounded-sm font-medium font-sans uppercase",
"variants": {
"color": {
"primary": "",
"secondary": "",
"success": "",
"info": "",
"warning": "",
"error": "",
"neutral": ""
},
"variant": {
"solid": "",
"outline": "",
"soft": "",
"subtle": ""
},
"size": {
"sm": "h-4 min-w-[16px] text-[10px]",
"md": "h-5 min-w-[20px] text-[11px]",
"lg": "h-6 min-w-[24px] text-[12px]"
}
},
"compoundVariants": [
{
"color": "primary" as typeof color[number],
"variant": "solid" as typeof variant[number],
"class": "text-inverted bg-primary"
},
{
"color": "secondary" as typeof color[number],
"variant": "solid" as typeof variant[number],
"class": "text-inverted bg-secondary"
},
{
"color": "success" as typeof color[number],
"variant": "solid" as typeof variant[number],
"class": "text-inverted bg-success"
},
{
"color": "info" as typeof color[number],
"variant": "solid" as typeof variant[number],
"class": "text-inverted bg-info"
},
{
"color": "warning" as typeof color[number],
"variant": "solid" as typeof variant[number],
"class": "text-inverted bg-warning"
},
{
"color": "error" as typeof color[number],
"variant": "solid" as typeof variant[number],
"class": "text-inverted bg-error"
},
{
"color": "primary" as typeof color[number],
"variant": "outline" as typeof variant[number],
"class": "ring ring-inset ring-primary/50 text-primary"
},
{
"color": "secondary" as typeof color[number],
"variant": "outline" as typeof variant[number],
"class": "ring ring-inset ring-secondary/50 text-secondary"
},
{
"color": "success" as typeof color[number],
"variant": "outline" as typeof variant[number],
"class": "ring ring-inset ring-success/50 text-success"
},
{
"color": "info" as typeof color[number],
"variant": "outline" as typeof variant[number],
"class": "ring ring-inset ring-info/50 text-info"
},
{
"color": "warning" as typeof color[number],
"variant": "outline" as typeof variant[number],
"class": "ring ring-inset ring-warning/50 text-warning"
},
{
"color": "error" as typeof color[number],
"variant": "outline" as typeof variant[number],
"class": "ring ring-inset ring-error/50 text-error"
},
{
"color": "primary" as typeof color[number],
"variant": "soft" as typeof variant[number],
"class": "text-primary bg-primary/10"
},
{
"color": "secondary" as typeof color[number],
"variant": "soft" as typeof variant[number],
"class": "text-secondary bg-secondary/10"
},
{
"color": "success" as typeof color[number],
"variant": "soft" as typeof variant[number],
"class": "text-success bg-success/10"
},
{
"color": "info" as typeof color[number],
"variant": "soft" as typeof variant[number],
"class": "text-info bg-info/10"
},
{
"color": "warning" as typeof color[number],
"variant": "soft" as typeof variant[number],
"class": "text-warning bg-warning/10"
},
{
"color": "error" as typeof color[number],
"variant": "soft" as typeof variant[number],
"class": "text-error bg-error/10"
},
{
"color": "primary" as typeof color[number],
"variant": "subtle" as typeof variant[number],
"class": "text-primary ring ring-inset ring-primary/25 bg-primary/10"
},
{
"color": "secondary" as typeof color[number],
"variant": "subtle" as typeof variant[number],
"class": "text-secondary ring ring-inset ring-secondary/25 bg-secondary/10"
},
{
"color": "success" as typeof color[number],
"variant": "subtle" as typeof variant[number],
"class": "text-success ring ring-inset ring-success/25 bg-success/10"
},
{
"color": "info" as typeof color[number],
"variant": "subtle" as typeof variant[number],
"class": "text-info ring ring-inset ring-info/25 bg-info/10"
},
{
"color": "warning" as typeof color[number],
"variant": "subtle" as typeof variant[number],
"class": "text-warning ring ring-inset ring-warning/25 bg-warning/10"
},
{
"color": "error" as typeof color[number],
"variant": "subtle" as typeof variant[number],
"class": "text-error ring ring-inset ring-error/25 bg-error/10"
},
{
"color": "neutral" as typeof color[number],
"variant": "solid" as typeof variant[number],
"class": "text-inverted bg-inverted"
},
{
"color": "neutral" as typeof color[number],
"variant": "outline" as typeof variant[number],
"class": "ring ring-inset ring-accented text-default bg-default"
},
{
"color": "neutral" as typeof color[number],
"variant": "soft" as typeof variant[number],
"class": "text-default bg-elevated"
},
{
"color": "neutral" as typeof color[number],
"variant": "subtle" as typeof variant[number],
"class": "ring ring-inset ring-accented text-default bg-elevated"
}
],
"defaultVariants": {
"variant": "outline" as typeof variant[number],
"color": "neutral" as typeof color[number],
"size": "md" as typeof size[number]
}
}