@uniskin/shadcn 0.0.0-stage → 0.2.0
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 +21 -0
- package/dist/index.d.ts +344 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +268 -0
- package/dist/index.js.map +1 -0
- package/package.json +46 -3
- package/README.md +0 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Uniskin contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* shadcn/ui visual style for Uniskin — pure CSS, no React, no Radix.
|
|
3
|
+
*
|
|
4
|
+
* Emits shadcn's own CSS variables (`--primary`, `--radius`, `--ring`…)
|
|
5
|
+
* on :root in their classic HSL-channel form, then maps Uniskin's tokens
|
|
6
|
+
* onto them. Users can re-theme by overriding the shadcn variables they
|
|
7
|
+
* already know.
|
|
8
|
+
*/
|
|
9
|
+
declare const _default: {
|
|
10
|
+
readonly name: "shadcn";
|
|
11
|
+
readonly darkTokens: {
|
|
12
|
+
readonly "--ui-primary": string;
|
|
13
|
+
readonly "--ui-primary-fg": string;
|
|
14
|
+
readonly "--ui-secondary": string;
|
|
15
|
+
readonly "--ui-secondary-fg": string;
|
|
16
|
+
readonly "--ui-danger": string;
|
|
17
|
+
readonly "--ui-danger-fg": string;
|
|
18
|
+
readonly "--ui-neutral": string;
|
|
19
|
+
readonly "--ui-neutral-fg": string;
|
|
20
|
+
readonly "--ui-neutral-soft": string;
|
|
21
|
+
readonly "--ui-neutral-soft-fg": string;
|
|
22
|
+
readonly "--ui-surface": string;
|
|
23
|
+
readonly "--ui-surface-fg": string;
|
|
24
|
+
readonly "--ui-surface-muted": string;
|
|
25
|
+
readonly "--ui-border": string;
|
|
26
|
+
readonly "--ui-ring": string;
|
|
27
|
+
readonly "--ui-radius": string;
|
|
28
|
+
readonly "--ui-secondary-soft": string;
|
|
29
|
+
readonly "--ui-secondary-soft-fg": string;
|
|
30
|
+
readonly "--background": "222.2 84% 4.9%";
|
|
31
|
+
readonly "--foreground": "210 40% 98%";
|
|
32
|
+
readonly "--card": "222.2 84% 4.9%";
|
|
33
|
+
readonly "--card-foreground": "210 40% 98%";
|
|
34
|
+
readonly "--primary": "210 40% 98%";
|
|
35
|
+
readonly "--primary-foreground": "222.2 47.4% 11.2%";
|
|
36
|
+
readonly "--secondary": "217.2 32.6% 17.5%";
|
|
37
|
+
readonly "--secondary-foreground": "210 40% 98%";
|
|
38
|
+
readonly "--muted": "217.2 32.6% 17.5%";
|
|
39
|
+
readonly "--muted-foreground": "215 20.2% 65.1%";
|
|
40
|
+
readonly "--accent": "217.2 32.6% 17.5%";
|
|
41
|
+
readonly "--accent-foreground": "210 40% 98%";
|
|
42
|
+
readonly "--destructive": "0 62.8% 30.6%";
|
|
43
|
+
readonly "--destructive-foreground": "210 40% 98%";
|
|
44
|
+
readonly "--border": "217.2 32.6% 17.5%";
|
|
45
|
+
readonly "--input": "217.2 32.6% 17.5%";
|
|
46
|
+
readonly "--ring": "212.7 26.8% 83.9%";
|
|
47
|
+
readonly "--ui-success": "oklch(0.72 0.15 163)";
|
|
48
|
+
readonly "--ui-success-fg": "oklch(0.15 0.03 163)";
|
|
49
|
+
readonly "--ui-warning": "oklch(0.82 0.15 85)";
|
|
50
|
+
readonly "--ui-warning-fg": "oklch(0.2 0.04 90)";
|
|
51
|
+
readonly "--ui-danger-soft": "color-mix(in oklab, hsl(0 72% 51%) 22%, hsl(var(--card)))";
|
|
52
|
+
readonly "--ui-danger-soft-fg": "hsl(0 90% 78%)";
|
|
53
|
+
};
|
|
54
|
+
readonly tokens: {
|
|
55
|
+
readonly "--ui-primary": string;
|
|
56
|
+
readonly "--ui-primary-fg": string;
|
|
57
|
+
readonly "--ui-secondary": string;
|
|
58
|
+
readonly "--ui-secondary-fg": string;
|
|
59
|
+
readonly "--ui-danger": string;
|
|
60
|
+
readonly "--ui-danger-fg": string;
|
|
61
|
+
readonly "--ui-neutral": string;
|
|
62
|
+
readonly "--ui-neutral-fg": string;
|
|
63
|
+
readonly "--ui-neutral-soft": string;
|
|
64
|
+
readonly "--ui-neutral-soft-fg": string;
|
|
65
|
+
readonly "--ui-surface": string;
|
|
66
|
+
readonly "--ui-surface-fg": string;
|
|
67
|
+
readonly "--ui-surface-muted": string;
|
|
68
|
+
readonly "--ui-border": string;
|
|
69
|
+
readonly "--ui-ring": string;
|
|
70
|
+
readonly "--ui-radius": string;
|
|
71
|
+
readonly "--ui-secondary-soft": string;
|
|
72
|
+
readonly "--ui-secondary-soft-fg": string;
|
|
73
|
+
readonly "--background": "0 0% 100%";
|
|
74
|
+
readonly "--foreground": "222.2 84% 4.9%";
|
|
75
|
+
readonly "--card": "0 0% 100%";
|
|
76
|
+
readonly "--card-foreground": "222.2 84% 4.9%";
|
|
77
|
+
readonly "--primary": "222.2 47.4% 11.2%";
|
|
78
|
+
readonly "--primary-foreground": "210 40% 98%";
|
|
79
|
+
readonly "--secondary": "210 40% 96.1%";
|
|
80
|
+
readonly "--secondary-foreground": "222.2 47.4% 11.2%";
|
|
81
|
+
readonly "--muted": "210 40% 96.1%";
|
|
82
|
+
readonly "--muted-foreground": "215.4 16.3% 46.9%";
|
|
83
|
+
readonly "--accent": "210 40% 96.1%";
|
|
84
|
+
readonly "--accent-foreground": "222.2 47.4% 11.2%";
|
|
85
|
+
readonly "--destructive": "0 84.2% 60.2%";
|
|
86
|
+
readonly "--destructive-foreground": "210 40% 98%";
|
|
87
|
+
readonly "--border": "214.3 31.8% 91.4%";
|
|
88
|
+
readonly "--input": "214.3 31.8% 91.4%";
|
|
89
|
+
readonly "--ring": "222.2 84% 4.9%";
|
|
90
|
+
readonly "--radius": "0.5rem";
|
|
91
|
+
};
|
|
92
|
+
readonly components: {
|
|
93
|
+
readonly input: {
|
|
94
|
+
readonly base: {
|
|
95
|
+
readonly height: string;
|
|
96
|
+
readonly padding: string;
|
|
97
|
+
readonly "font-size": string;
|
|
98
|
+
readonly "border-color": string;
|
|
99
|
+
readonly "border-radius": string;
|
|
100
|
+
readonly "background-color": string;
|
|
101
|
+
readonly "box-shadow": string;
|
|
102
|
+
readonly "&:hover": {
|
|
103
|
+
"border-color": string;
|
|
104
|
+
};
|
|
105
|
+
readonly "&:focus-visible": {
|
|
106
|
+
"border-color": string;
|
|
107
|
+
"box-shadow": string;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
readonly sizes: {
|
|
111
|
+
sm: {
|
|
112
|
+
height: string;
|
|
113
|
+
"font-size": string;
|
|
114
|
+
};
|
|
115
|
+
lg: {
|
|
116
|
+
height: string;
|
|
117
|
+
"font-size": string;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
readonly textarea: {
|
|
122
|
+
readonly base: {
|
|
123
|
+
readonly "min-height": "4rem";
|
|
124
|
+
readonly padding: string;
|
|
125
|
+
readonly "font-size": string;
|
|
126
|
+
readonly "border-color": string;
|
|
127
|
+
readonly "border-radius": string;
|
|
128
|
+
readonly "background-color": string;
|
|
129
|
+
readonly "box-shadow": string;
|
|
130
|
+
readonly "&:hover": {
|
|
131
|
+
"border-color": string;
|
|
132
|
+
};
|
|
133
|
+
readonly "&:focus-visible": {
|
|
134
|
+
"border-color": string;
|
|
135
|
+
"box-shadow": string;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
readonly select: {
|
|
140
|
+
readonly base: {
|
|
141
|
+
readonly height: string;
|
|
142
|
+
readonly padding: string;
|
|
143
|
+
readonly "font-size": string;
|
|
144
|
+
readonly "border-color": string;
|
|
145
|
+
readonly "border-radius": string;
|
|
146
|
+
readonly "background-color": string;
|
|
147
|
+
readonly "box-shadow": string;
|
|
148
|
+
readonly "&:hover": {
|
|
149
|
+
"border-color": string;
|
|
150
|
+
};
|
|
151
|
+
readonly "&:focus-visible": {
|
|
152
|
+
"border-color": string;
|
|
153
|
+
"box-shadow": string;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
readonly sizes: {
|
|
157
|
+
sm: {
|
|
158
|
+
height: string;
|
|
159
|
+
"font-size": string;
|
|
160
|
+
};
|
|
161
|
+
lg: {
|
|
162
|
+
height: string;
|
|
163
|
+
"font-size": string;
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
readonly checkbox: {
|
|
168
|
+
readonly base: {
|
|
169
|
+
readonly "--ui-check-size": "1rem";
|
|
170
|
+
readonly "border-radius": "4px";
|
|
171
|
+
readonly "border-color": "hsl(var(--primary))";
|
|
172
|
+
readonly "box-shadow": "0 1px 2px 0 rgb(0 0 0 / 0.05)";
|
|
173
|
+
readonly "&:focus-visible": {
|
|
174
|
+
readonly outline: "none";
|
|
175
|
+
readonly "box-shadow": "0 0 0 3px hsl(var(--ring) / 0.5)";
|
|
176
|
+
};
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
readonly card: {
|
|
180
|
+
readonly base: {
|
|
181
|
+
readonly "border-radius": "calc(var(--radius) + 4px)";
|
|
182
|
+
readonly "box-shadow": "0 1px 2px 0 rgb(0 0 0 / 0.05)";
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
readonly "card-header": {
|
|
186
|
+
readonly base: {
|
|
187
|
+
readonly padding: "1.5rem";
|
|
188
|
+
readonly "border-bottom": "0";
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
readonly "card-body": {
|
|
192
|
+
readonly base: {
|
|
193
|
+
readonly padding: "0 1.5rem 1.5rem";
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
readonly "card-footer": {
|
|
197
|
+
readonly base: {
|
|
198
|
+
readonly padding: "0 1.5rem 1.5rem";
|
|
199
|
+
readonly "border-top": "0";
|
|
200
|
+
readonly "background-color": "transparent";
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
readonly badge: {
|
|
204
|
+
readonly base: {
|
|
205
|
+
readonly "border-radius": "calc(var(--radius) - 2px)";
|
|
206
|
+
readonly padding: "0.125rem 0.5rem";
|
|
207
|
+
readonly "font-size": "0.75rem";
|
|
208
|
+
};
|
|
209
|
+
readonly styles: {
|
|
210
|
+
readonly outline: {
|
|
211
|
+
readonly color: "hsl(var(--foreground))";
|
|
212
|
+
readonly "border-color": "hsl(var(--border))";
|
|
213
|
+
};
|
|
214
|
+
readonly ghost: {
|
|
215
|
+
readonly color: "hsl(var(--foreground))";
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
readonly alert: {
|
|
220
|
+
readonly base: {
|
|
221
|
+
readonly "--ui-c": "hsl(var(--card))";
|
|
222
|
+
readonly "--ui-on-c": "hsl(var(--card-foreground))";
|
|
223
|
+
readonly "border-radius": "calc(var(--radius) + 2px)";
|
|
224
|
+
readonly "border-color": "hsl(var(--border))";
|
|
225
|
+
readonly "font-size": "0.875rem";
|
|
226
|
+
};
|
|
227
|
+
readonly intents: {
|
|
228
|
+
readonly primary: {
|
|
229
|
+
"border-color": string;
|
|
230
|
+
};
|
|
231
|
+
readonly secondary: {
|
|
232
|
+
"border-color": string;
|
|
233
|
+
};
|
|
234
|
+
readonly success: {
|
|
235
|
+
"border-color": string;
|
|
236
|
+
};
|
|
237
|
+
readonly warning: {
|
|
238
|
+
"border-color": string;
|
|
239
|
+
};
|
|
240
|
+
readonly danger: {
|
|
241
|
+
"border-color": string;
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
readonly styles: {
|
|
245
|
+
readonly ghost: {
|
|
246
|
+
readonly color: "hsl(var(--foreground))";
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
readonly "modal-box": {
|
|
251
|
+
readonly base: {
|
|
252
|
+
readonly "border-radius": "calc(var(--radius) + 2px)";
|
|
253
|
+
readonly border: "1px solid hsl(var(--border))";
|
|
254
|
+
readonly "border-top-width": "1px";
|
|
255
|
+
readonly "box-shadow": "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)";
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
readonly tabs: {
|
|
259
|
+
readonly base: {
|
|
260
|
+
readonly display: "inline-flex";
|
|
261
|
+
readonly gap: "0";
|
|
262
|
+
readonly padding: "3px";
|
|
263
|
+
readonly "border-bottom": "0";
|
|
264
|
+
readonly "border-radius": "calc(var(--radius) + 2px)";
|
|
265
|
+
readonly "background-color": "hsl(var(--muted))";
|
|
266
|
+
readonly "--ui-tab-active-bg": "hsl(var(--background))";
|
|
267
|
+
readonly "--ui-tab-active-fg": "hsl(var(--foreground))";
|
|
268
|
+
readonly "--ui-tab-active-line": "transparent";
|
|
269
|
+
readonly "--ui-tab-active-shadow": "0 1px 2px 0 rgb(0 0 0 / 0.05)";
|
|
270
|
+
readonly "--ui-tab-radius": "calc(var(--radius) - 2px)";
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
readonly tab: {
|
|
274
|
+
readonly base: {
|
|
275
|
+
readonly margin: "0";
|
|
276
|
+
readonly padding: "0.25rem 0.75rem";
|
|
277
|
+
readonly "font-size": "0.875rem";
|
|
278
|
+
readonly color: "hsl(var(--muted-foreground))";
|
|
279
|
+
readonly "&:hover": {
|
|
280
|
+
readonly color: "hsl(var(--foreground))";
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
readonly button: {
|
|
285
|
+
readonly base: {
|
|
286
|
+
readonly height: "2.25rem";
|
|
287
|
+
readonly padding: "0 1rem";
|
|
288
|
+
readonly "font-size": "0.875rem";
|
|
289
|
+
readonly "box-shadow": "0 1px 2px 0 rgb(0 0 0 / 0.05)";
|
|
290
|
+
readonly "&:focus-visible": {
|
|
291
|
+
readonly outline: "none";
|
|
292
|
+
readonly "box-shadow": "0 0 0 1px hsl(var(--background)), 0 0 0 4px hsl(var(--ring) / 0.5)";
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
readonly intents: {
|
|
296
|
+
readonly primary: {
|
|
297
|
+
readonly "--ui-c-hover": "hsl(var(--primary) / 0.9)";
|
|
298
|
+
};
|
|
299
|
+
readonly danger: {
|
|
300
|
+
readonly "--ui-c-hover": "hsl(var(--destructive) / 0.9)";
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
readonly styles: {
|
|
304
|
+
readonly outline: {
|
|
305
|
+
readonly "background-color": "hsl(var(--background))";
|
|
306
|
+
readonly "border-color": "hsl(var(--border))";
|
|
307
|
+
readonly color: "hsl(var(--foreground))";
|
|
308
|
+
readonly "&:hover": {
|
|
309
|
+
readonly "background-color": "hsl(var(--accent))";
|
|
310
|
+
readonly "border-color": "hsl(var(--border))";
|
|
311
|
+
readonly color: "hsl(var(--accent-foreground))";
|
|
312
|
+
};
|
|
313
|
+
};
|
|
314
|
+
readonly ghost: {
|
|
315
|
+
readonly color: "hsl(var(--foreground))";
|
|
316
|
+
readonly "&:hover": {
|
|
317
|
+
readonly "background-color": "hsl(var(--accent))";
|
|
318
|
+
readonly color: "hsl(var(--accent-foreground))";
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
readonly states: {
|
|
323
|
+
readonly active: {
|
|
324
|
+
readonly "&:focus-visible": {
|
|
325
|
+
readonly "box-shadow": "inset 0 2px 4px rgb(0 0 0 / 0.2), 0 0 0 1px hsl(var(--background)), 0 0 0 4px hsl(var(--ring) / 0.5)";
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
};
|
|
329
|
+
readonly sizes: {
|
|
330
|
+
readonly sm: {
|
|
331
|
+
readonly height: "2rem";
|
|
332
|
+
readonly padding: "0 0.75rem";
|
|
333
|
+
readonly "font-size": "0.75rem";
|
|
334
|
+
};
|
|
335
|
+
readonly lg: {
|
|
336
|
+
readonly height: "2.5rem";
|
|
337
|
+
readonly padding: "0 2rem";
|
|
338
|
+
};
|
|
339
|
+
};
|
|
340
|
+
};
|
|
341
|
+
};
|
|
342
|
+
};
|
|
343
|
+
export default _default;
|
|
344
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAsDA;;;;;;;GAOG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACH,wBAmNG"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
import { defineAdapter } from "uniskin/adapter";
|
|
2
|
+
/* shadcn text fields: h-9, shadow-xs, 3px ring at 50% on focus */
|
|
3
|
+
const field = {
|
|
4
|
+
padding: "0.25rem 0.75rem",
|
|
5
|
+
"font-size": "0.875rem",
|
|
6
|
+
"border-color": "var(--ui-field-c, hsl(var(--input)))",
|
|
7
|
+
"border-radius": "calc(var(--radius) - 2px)",
|
|
8
|
+
"background-color": "transparent",
|
|
9
|
+
"box-shadow": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
|
|
10
|
+
"&:hover": { "border-color": "var(--ui-field-c, hsl(var(--input)))" },
|
|
11
|
+
"&:focus-visible": {
|
|
12
|
+
"border-color": "var(--ui-field-c, hsl(var(--ring)))",
|
|
13
|
+
"box-shadow": "0 0 0 3px hsl(var(--ring) / 0.5)",
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
const fieldHeights = {
|
|
17
|
+
base: { height: "2.25rem" },
|
|
18
|
+
sizes: {
|
|
19
|
+
sm: { height: "2rem", "font-size": "0.8125rem" },
|
|
20
|
+
lg: { height: "2.5rem", "font-size": "0.9375rem" },
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
/* shadcn alert: card-like by default; intents keep their own border color */
|
|
24
|
+
const alertIntent = { "border-color": "var(--ui-c)" };
|
|
25
|
+
/* Map Uniskin tokens onto the shadcn variables. These are var() aliases, so they
|
|
26
|
+
are repeated inside the dark scope to re-resolve against the dark palette. */
|
|
27
|
+
const uiMap = {
|
|
28
|
+
"--ui-primary": "hsl(var(--primary))",
|
|
29
|
+
"--ui-primary-fg": "hsl(var(--primary-foreground))",
|
|
30
|
+
"--ui-secondary": "hsl(var(--secondary))",
|
|
31
|
+
"--ui-secondary-fg": "hsl(var(--secondary-foreground))",
|
|
32
|
+
"--ui-danger": "hsl(var(--destructive))",
|
|
33
|
+
"--ui-danger-fg": "hsl(var(--destructive-foreground))",
|
|
34
|
+
/* shadcn has no success/warning tokens — those stay on Uniskin's
|
|
35
|
+
defaults (documented fallback behaviour) */
|
|
36
|
+
"--ui-neutral": "hsl(var(--primary))",
|
|
37
|
+
"--ui-neutral-fg": "hsl(var(--primary-foreground))",
|
|
38
|
+
"--ui-neutral-soft": "hsl(var(--accent))",
|
|
39
|
+
"--ui-neutral-soft-fg": "hsl(var(--accent-foreground))",
|
|
40
|
+
"--ui-surface": "hsl(var(--card))",
|
|
41
|
+
"--ui-surface-fg": "hsl(var(--card-foreground))",
|
|
42
|
+
"--ui-surface-muted": "hsl(var(--muted))",
|
|
43
|
+
"--ui-border": "hsl(var(--border))",
|
|
44
|
+
"--ui-ring": "hsl(var(--ring))",
|
|
45
|
+
"--ui-radius": "var(--radius)",
|
|
46
|
+
/* shadcn's secondary is already a soft tint: use it (and its foreground)
|
|
47
|
+
as the soft look so ui-secondary ui-soft stays above WCAG AA */
|
|
48
|
+
"--ui-secondary-soft": "hsl(var(--secondary))",
|
|
49
|
+
"--ui-secondary-soft-fg": "hsl(var(--secondary-foreground))",
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* shadcn/ui visual style for Uniskin — pure CSS, no React, no Radix.
|
|
53
|
+
*
|
|
54
|
+
* Emits shadcn's own CSS variables (`--primary`, `--radius`, `--ring`…)
|
|
55
|
+
* on :root in their classic HSL-channel form, then maps Uniskin's tokens
|
|
56
|
+
* onto them. Users can re-theme by overriding the shadcn variables they
|
|
57
|
+
* already know.
|
|
58
|
+
*/
|
|
59
|
+
export default defineAdapter({
|
|
60
|
+
name: "shadcn",
|
|
61
|
+
darkTokens: {
|
|
62
|
+
/* shadcn/ui canonical dark theme (HSL channels) */
|
|
63
|
+
"--background": "222.2 84% 4.9%",
|
|
64
|
+
"--foreground": "210 40% 98%",
|
|
65
|
+
"--card": "222.2 84% 4.9%",
|
|
66
|
+
"--card-foreground": "210 40% 98%",
|
|
67
|
+
"--primary": "210 40% 98%",
|
|
68
|
+
"--primary-foreground": "222.2 47.4% 11.2%",
|
|
69
|
+
"--secondary": "217.2 32.6% 17.5%",
|
|
70
|
+
"--secondary-foreground": "210 40% 98%",
|
|
71
|
+
"--muted": "217.2 32.6% 17.5%",
|
|
72
|
+
"--muted-foreground": "215 20.2% 65.1%",
|
|
73
|
+
"--accent": "217.2 32.6% 17.5%",
|
|
74
|
+
"--accent-foreground": "210 40% 98%",
|
|
75
|
+
"--destructive": "0 62.8% 30.6%",
|
|
76
|
+
"--destructive-foreground": "210 40% 98%",
|
|
77
|
+
"--border": "217.2 32.6% 17.5%",
|
|
78
|
+
"--input": "217.2 32.6% 17.5%",
|
|
79
|
+
"--ring": "212.7 26.8% 83.9%",
|
|
80
|
+
/* success/warning aren't shadcn tokens — dark values of Uniskin's defaults */
|
|
81
|
+
"--ui-success": "oklch(0.72 0.15 163)",
|
|
82
|
+
"--ui-success-fg": "oklch(0.15 0.03 163)",
|
|
83
|
+
"--ui-warning": "oklch(0.82 0.15 85)",
|
|
84
|
+
"--ui-warning-fg": "oklch(0.2 0.04 90)",
|
|
85
|
+
/* shadcn's dark destructive is deliberately deep (30% lightness) — too dark
|
|
86
|
+
to read as soft text, so pin a lighter red pair for ui-danger ui-soft */
|
|
87
|
+
"--ui-danger-soft": "color-mix(in oklab, hsl(0 72% 51%) 22%, hsl(var(--card)))",
|
|
88
|
+
"--ui-danger-soft-fg": "hsl(0 90% 78%)",
|
|
89
|
+
...uiMap,
|
|
90
|
+
},
|
|
91
|
+
tokens: {
|
|
92
|
+
/* shadcn/ui canonical variables (light theme, HSL channels) */
|
|
93
|
+
"--background": "0 0% 100%",
|
|
94
|
+
"--foreground": "222.2 84% 4.9%",
|
|
95
|
+
"--card": "0 0% 100%",
|
|
96
|
+
"--card-foreground": "222.2 84% 4.9%",
|
|
97
|
+
"--primary": "222.2 47.4% 11.2%",
|
|
98
|
+
"--primary-foreground": "210 40% 98%",
|
|
99
|
+
"--secondary": "210 40% 96.1%",
|
|
100
|
+
"--secondary-foreground": "222.2 47.4% 11.2%",
|
|
101
|
+
"--muted": "210 40% 96.1%",
|
|
102
|
+
"--muted-foreground": "215.4 16.3% 46.9%",
|
|
103
|
+
"--accent": "210 40% 96.1%",
|
|
104
|
+
"--accent-foreground": "222.2 47.4% 11.2%",
|
|
105
|
+
"--destructive": "0 84.2% 60.2%",
|
|
106
|
+
"--destructive-foreground": "210 40% 98%",
|
|
107
|
+
"--border": "214.3 31.8% 91.4%",
|
|
108
|
+
"--input": "214.3 31.8% 91.4%",
|
|
109
|
+
"--ring": "222.2 84% 4.9%",
|
|
110
|
+
"--radius": "0.5rem",
|
|
111
|
+
...uiMap,
|
|
112
|
+
},
|
|
113
|
+
components: {
|
|
114
|
+
input: {
|
|
115
|
+
base: { ...field, ...fieldHeights.base },
|
|
116
|
+
sizes: fieldHeights.sizes,
|
|
117
|
+
},
|
|
118
|
+
textarea: { base: { ...field, "min-height": "4rem" } },
|
|
119
|
+
select: {
|
|
120
|
+
base: { ...field, ...fieldHeights.base },
|
|
121
|
+
sizes: fieldHeights.sizes,
|
|
122
|
+
},
|
|
123
|
+
checkbox: {
|
|
124
|
+
base: {
|
|
125
|
+
"--ui-check-size": "1rem",
|
|
126
|
+
"border-radius": "4px",
|
|
127
|
+
"border-color": "hsl(var(--primary))",
|
|
128
|
+
"box-shadow": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
|
|
129
|
+
"&:focus-visible": {
|
|
130
|
+
outline: "none",
|
|
131
|
+
"box-shadow": "0 0 0 3px hsl(var(--ring) / 0.5)",
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
card: {
|
|
136
|
+
base: {
|
|
137
|
+
"border-radius": "calc(var(--radius) + 4px)",
|
|
138
|
+
"box-shadow": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
"card-header": { base: { padding: "1.5rem", "border-bottom": "0" } },
|
|
142
|
+
"card-body": { base: { padding: "0 1.5rem 1.5rem" } },
|
|
143
|
+
"card-footer": {
|
|
144
|
+
base: {
|
|
145
|
+
padding: "0 1.5rem 1.5rem",
|
|
146
|
+
"border-top": "0",
|
|
147
|
+
"background-color": "transparent",
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
badge: {
|
|
151
|
+
base: {
|
|
152
|
+
"border-radius": "calc(var(--radius) - 2px)",
|
|
153
|
+
padding: "0.125rem 0.5rem",
|
|
154
|
+
"font-size": "0.75rem",
|
|
155
|
+
},
|
|
156
|
+
styles: {
|
|
157
|
+
outline: {
|
|
158
|
+
color: "hsl(var(--foreground))",
|
|
159
|
+
"border-color": "hsl(var(--border))",
|
|
160
|
+
},
|
|
161
|
+
/* shadcn's secondary is near-white — keep ghost text readable */
|
|
162
|
+
ghost: { color: "hsl(var(--foreground))" },
|
|
163
|
+
},
|
|
164
|
+
},
|
|
165
|
+
alert: {
|
|
166
|
+
base: {
|
|
167
|
+
"--ui-c": "hsl(var(--card))",
|
|
168
|
+
"--ui-on-c": "hsl(var(--card-foreground))",
|
|
169
|
+
"border-radius": "calc(var(--radius) + 2px)",
|
|
170
|
+
"border-color": "hsl(var(--border))",
|
|
171
|
+
"font-size": "0.875rem",
|
|
172
|
+
},
|
|
173
|
+
intents: {
|
|
174
|
+
primary: alertIntent,
|
|
175
|
+
secondary: alertIntent,
|
|
176
|
+
success: alertIntent,
|
|
177
|
+
warning: alertIntent,
|
|
178
|
+
danger: alertIntent,
|
|
179
|
+
},
|
|
180
|
+
styles: { ghost: { color: "hsl(var(--foreground))" } },
|
|
181
|
+
},
|
|
182
|
+
"modal-box": {
|
|
183
|
+
base: {
|
|
184
|
+
"border-radius": "calc(var(--radius) + 2px)",
|
|
185
|
+
border: "1px solid hsl(var(--border))",
|
|
186
|
+
"border-top-width": "1px",
|
|
187
|
+
"box-shadow": "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
tabs: {
|
|
191
|
+
base: {
|
|
192
|
+
display: "inline-flex",
|
|
193
|
+
gap: "0",
|
|
194
|
+
padding: "3px",
|
|
195
|
+
"border-bottom": "0",
|
|
196
|
+
"border-radius": "calc(var(--radius) + 2px)",
|
|
197
|
+
"background-color": "hsl(var(--muted))",
|
|
198
|
+
"--ui-tab-active-bg": "hsl(var(--background))",
|
|
199
|
+
"--ui-tab-active-fg": "hsl(var(--foreground))",
|
|
200
|
+
"--ui-tab-active-line": "transparent",
|
|
201
|
+
"--ui-tab-active-shadow": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
|
|
202
|
+
"--ui-tab-radius": "calc(var(--radius) - 2px)",
|
|
203
|
+
},
|
|
204
|
+
},
|
|
205
|
+
tab: {
|
|
206
|
+
base: {
|
|
207
|
+
margin: "0",
|
|
208
|
+
padding: "0.25rem 0.75rem",
|
|
209
|
+
"font-size": "0.875rem",
|
|
210
|
+
color: "hsl(var(--muted-foreground))",
|
|
211
|
+
"&:hover": { color: "hsl(var(--foreground))" },
|
|
212
|
+
},
|
|
213
|
+
},
|
|
214
|
+
button: {
|
|
215
|
+
base: {
|
|
216
|
+
/* shadcn button: h-9 px-4, font-medium, shadow-xs */
|
|
217
|
+
height: "2.25rem",
|
|
218
|
+
padding: "0 1rem",
|
|
219
|
+
"font-size": "0.875rem",
|
|
220
|
+
"box-shadow": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
|
|
221
|
+
"&:focus-visible": {
|
|
222
|
+
outline: "none",
|
|
223
|
+
"box-shadow": "0 0 0 1px hsl(var(--background)), 0 0 0 4px hsl(var(--ring) / 0.5)",
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
intents: {
|
|
227
|
+
/* shadcn hover = bg-<intent>/90 (opacity, not a darker shade) */
|
|
228
|
+
primary: { "--ui-c-hover": "hsl(var(--primary) / 0.9)" },
|
|
229
|
+
danger: { "--ui-c-hover": "hsl(var(--destructive) / 0.9)" },
|
|
230
|
+
},
|
|
231
|
+
styles: {
|
|
232
|
+
/* shadcn outline: neutral border + accent hover — intent colors
|
|
233
|
+
intentionally don't tint it (faithful to shadcn) */
|
|
234
|
+
outline: {
|
|
235
|
+
"background-color": "hsl(var(--background))",
|
|
236
|
+
"border-color": "hsl(var(--border))",
|
|
237
|
+
color: "hsl(var(--foreground))",
|
|
238
|
+
"&:hover": {
|
|
239
|
+
"background-color": "hsl(var(--accent))",
|
|
240
|
+
"border-color": "hsl(var(--border))",
|
|
241
|
+
color: "hsl(var(--accent-foreground))",
|
|
242
|
+
},
|
|
243
|
+
},
|
|
244
|
+
ghost: {
|
|
245
|
+
color: "hsl(var(--foreground))",
|
|
246
|
+
"&:hover": {
|
|
247
|
+
"background-color": "hsl(var(--accent))",
|
|
248
|
+
color: "hsl(var(--accent-foreground))",
|
|
249
|
+
},
|
|
250
|
+
},
|
|
251
|
+
},
|
|
252
|
+
states: {
|
|
253
|
+
/* the default pressed look is an inset shadow, which would replace the
|
|
254
|
+
ring while the button is focused — keep both */
|
|
255
|
+
active: {
|
|
256
|
+
"&:focus-visible": {
|
|
257
|
+
"box-shadow": "inset 0 2px 4px rgb(0 0 0 / 0.2), 0 0 0 1px hsl(var(--background)), 0 0 0 4px hsl(var(--ring) / 0.5)",
|
|
258
|
+
},
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
sizes: {
|
|
262
|
+
sm: { height: "2rem", padding: "0 0.75rem", "font-size": "0.75rem" },
|
|
263
|
+
lg: { height: "2.5rem", padding: "0 2rem" },
|
|
264
|
+
},
|
|
265
|
+
},
|
|
266
|
+
},
|
|
267
|
+
});
|
|
268
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,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MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE;aAC5C;SACF;KACF;CACF,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,49 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniskin/shadcn",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "shadcn/ui visual style adapter for Uniskin (pure CSS, no React/Radix)",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"default": "./dist/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"keywords": [
|
|
18
|
+
"tailwindcss",
|
|
19
|
+
"uniskin",
|
|
20
|
+
"shadcn",
|
|
21
|
+
"css",
|
|
22
|
+
"ui",
|
|
23
|
+
"theme",
|
|
24
|
+
"adapter"
|
|
25
|
+
],
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "git+https://github.com/Munawarhussain729/uniskin.git",
|
|
30
|
+
"directory": "packages/adapter-shadcn"
|
|
31
|
+
},
|
|
32
|
+
"homepage": "https://github.com/Munawarhussain729/uniskin#readme",
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"access": "public"
|
|
35
|
+
},
|
|
36
|
+
"peerDependencies": {
|
|
37
|
+
"tailwindcss": "^4.3.3",
|
|
38
|
+
"uniskin": ">=0.1.0 <1.0.0"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"tailwindcss": "^4.3.5",
|
|
42
|
+
"typescript": "^5.9.3",
|
|
43
|
+
"uniskin": "0.2.0"
|
|
44
|
+
},
|
|
45
|
+
"scripts": {
|
|
46
|
+
"build": "tsc -p tsconfig.json",
|
|
47
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
48
|
+
}
|
|
6
49
|
}
|
package/README.md
DELETED