@uniskin/shadcn 0.0.0-stage → 0.3.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 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/README.md CHANGED
@@ -1,3 +1,54 @@
1
- # Temporary Holding Version
1
+ # @uniskin/shadcn
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The shadcn/ui look for [uniskin](https://www.npmjs.com/package/uniskin): the
4
+ `ui-*` class vocabulary styled like shadcn/ui, as pure CSS. No React, no
5
+ Radix, no JavaScript.
6
+
7
+ ```css
8
+ @import "tailwindcss";
9
+ @plugin "uniskin" { adapter: "shadcn"; }
10
+ ```
11
+
12
+ ```html
13
+ <button class="ui-button ui-primary">Save</button>
14
+ <button class="ui-button ui-danger ui-outline">Delete</button>
15
+ ```
16
+
17
+ ## Install
18
+
19
+ ```sh
20
+ npx uniskin init --adapter shadcn --yes
21
+ ```
22
+
23
+ or by hand:
24
+
25
+ ```sh
26
+ npm install uniskin @uniskin/shadcn
27
+ ```
28
+
29
+ and add the `@plugin` line shown above to your Tailwind v4 entry CSS.
30
+
31
+ Requires **tailwindcss 4.3.3 or newer** and the `uniskin` core package.
32
+
33
+ ## What you get
34
+
35
+ - Every uniskin component restyled with shadcn's neutral palette, radius and
36
+ focus ring: button, input, textarea, select, checkbox, radio, switch, field,
37
+ card, badge, alert, modal and tabs.
38
+ - A dark palette, active with `.dark`, `[data-theme="dark"]` or
39
+ `prefers-color-scheme: dark`.
40
+ - Form-control boundaries and error text tuned to meet WCAG contrast
41
+ (3:1 for borders, 4.5:1 for text).
42
+ - Anything this adapter doesn't override falls back to the uniskin default
43
+ skin, so the whole vocabulary always works.
44
+
45
+ ## Customise
46
+
47
+ Override any token in your own CSS, or write your own adapter on top of this
48
+ one. See the uniskin
49
+ [adapter guide](https://github.com/Munawarhussain729/uniskin/blob/main/docs/writing-adapters.md)
50
+ and the [vocabulary reference](https://github.com/Munawarhussain729/uniskin/blob/main/docs/vocabulary.md).
51
+
52
+ ## License
53
+
54
+ MIT
@@ -0,0 +1,393 @@
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-danger": "hsl(0 62.8% 48%)";
13
+ readonly "--ui-danger-text": "hsl(0 90% 72%)";
14
+ readonly "--ui-primary": string;
15
+ readonly "--ui-primary-fg": string;
16
+ readonly "--ui-secondary": string;
17
+ readonly "--ui-secondary-fg": string;
18
+ readonly "--ui-danger-fg": string;
19
+ readonly "--ui-neutral": string;
20
+ readonly "--ui-neutral-fg": string;
21
+ readonly "--ui-neutral-soft": string;
22
+ readonly "--ui-neutral-soft-fg": string;
23
+ readonly "--ui-surface": string;
24
+ readonly "--ui-surface-fg": string;
25
+ readonly "--ui-surface-muted": string;
26
+ readonly "--ui-border": string;
27
+ readonly "--ui-ring": string;
28
+ readonly "--ui-radius": string;
29
+ readonly "--ui-secondary-soft": string;
30
+ readonly "--ui-secondary-soft-fg": string;
31
+ readonly "--background": "222.2 84% 4.9%";
32
+ readonly "--foreground": "210 40% 98%";
33
+ readonly "--card": "222.2 84% 4.9%";
34
+ readonly "--card-foreground": "210 40% 98%";
35
+ readonly "--primary": "210 40% 98%";
36
+ readonly "--primary-foreground": "222.2 47.4% 11.2%";
37
+ readonly "--secondary": "217.2 32.6% 17.5%";
38
+ readonly "--secondary-foreground": "210 40% 98%";
39
+ readonly "--muted": "217.2 32.6% 17.5%";
40
+ readonly "--muted-foreground": "215 20.2% 65.1%";
41
+ readonly "--accent": "217.2 32.6% 17.5%";
42
+ readonly "--accent-foreground": "210 40% 98%";
43
+ readonly "--destructive": "0 62.8% 30.6%";
44
+ readonly "--destructive-foreground": "210 40% 98%";
45
+ readonly "--border": "217.2 32.6% 17.5%";
46
+ readonly "--input": "217.2 32.6% 17.5%";
47
+ readonly "--ring": "212.7 26.8% 83.9%";
48
+ readonly "--ui-success": "oklch(0.72 0.15 163)";
49
+ readonly "--ui-success-fg": "oklch(0.15 0.03 163)";
50
+ readonly "--ui-warning": "oklch(0.82 0.15 85)";
51
+ readonly "--ui-warning-fg": "oklch(0.2 0.04 90)";
52
+ readonly "--ui-danger-soft": "color-mix(in oklab, hsl(0 72% 51%) 22%, hsl(var(--card)))";
53
+ readonly "--ui-danger-soft-fg": "hsl(0 90% 78%)";
54
+ };
55
+ readonly tokens: {
56
+ readonly "--ui-primary": string;
57
+ readonly "--ui-primary-fg": string;
58
+ readonly "--ui-secondary": string;
59
+ readonly "--ui-secondary-fg": string;
60
+ readonly "--ui-danger": string;
61
+ readonly "--ui-danger-fg": string;
62
+ readonly "--ui-neutral": string;
63
+ readonly "--ui-neutral-fg": string;
64
+ readonly "--ui-neutral-soft": string;
65
+ readonly "--ui-neutral-soft-fg": string;
66
+ readonly "--ui-surface": string;
67
+ readonly "--ui-surface-fg": string;
68
+ readonly "--ui-surface-muted": string;
69
+ readonly "--ui-border": string;
70
+ readonly "--ui-ring": string;
71
+ readonly "--ui-radius": string;
72
+ readonly "--ui-secondary-soft": string;
73
+ readonly "--ui-secondary-soft-fg": string;
74
+ readonly "--ui-danger-text": string;
75
+ readonly "--background": "0 0% 100%";
76
+ readonly "--foreground": "222.2 84% 4.9%";
77
+ readonly "--card": "0 0% 100%";
78
+ readonly "--card-foreground": "222.2 84% 4.9%";
79
+ readonly "--primary": "222.2 47.4% 11.2%";
80
+ readonly "--primary-foreground": "210 40% 98%";
81
+ readonly "--secondary": "210 40% 96.1%";
82
+ readonly "--secondary-foreground": "222.2 47.4% 11.2%";
83
+ readonly "--muted": "210 40% 96.1%";
84
+ readonly "--muted-foreground": "215.4 16.3% 46.9%";
85
+ readonly "--accent": "210 40% 96.1%";
86
+ readonly "--accent-foreground": "222.2 47.4% 11.2%";
87
+ readonly "--destructive": "0 84.2% 60.2%";
88
+ readonly "--destructive-foreground": "210 40% 98%";
89
+ readonly "--border": "214.3 31.8% 91.4%";
90
+ readonly "--input": "214.3 31.8% 91.4%";
91
+ readonly "--ring": "222.2 84% 4.9%";
92
+ readonly "--radius": "0.5rem";
93
+ };
94
+ readonly components: {
95
+ readonly input: {
96
+ readonly base: {
97
+ readonly height: string;
98
+ readonly padding: string;
99
+ readonly "font-size": string;
100
+ readonly "border-color": string;
101
+ readonly "border-radius": string;
102
+ readonly "background-color": string;
103
+ readonly "box-shadow": string;
104
+ readonly "&:hover": {
105
+ "border-color": string;
106
+ };
107
+ readonly "&:focus-visible": {
108
+ "border-color": string;
109
+ "box-shadow": string;
110
+ };
111
+ };
112
+ readonly sizes: {
113
+ sm: {
114
+ height: string;
115
+ "font-size": string;
116
+ };
117
+ lg: {
118
+ height: string;
119
+ "font-size": string;
120
+ };
121
+ };
122
+ };
123
+ readonly textarea: {
124
+ readonly base: {
125
+ readonly "min-height": "4rem";
126
+ readonly padding: string;
127
+ readonly "font-size": string;
128
+ readonly "border-color": string;
129
+ readonly "border-radius": string;
130
+ readonly "background-color": string;
131
+ readonly "box-shadow": string;
132
+ readonly "&:hover": {
133
+ "border-color": string;
134
+ };
135
+ readonly "&:focus-visible": {
136
+ "border-color": string;
137
+ "box-shadow": string;
138
+ };
139
+ };
140
+ };
141
+ readonly select: {
142
+ readonly base: {
143
+ readonly height: string;
144
+ readonly padding: string;
145
+ readonly "font-size": string;
146
+ readonly "border-color": string;
147
+ readonly "border-radius": string;
148
+ readonly "background-color": string;
149
+ readonly "box-shadow": string;
150
+ readonly "&:hover": {
151
+ "border-color": string;
152
+ };
153
+ readonly "&:focus-visible": {
154
+ "border-color": string;
155
+ "box-shadow": string;
156
+ };
157
+ };
158
+ readonly sizes: {
159
+ sm: {
160
+ height: string;
161
+ "font-size": string;
162
+ };
163
+ lg: {
164
+ height: string;
165
+ "font-size": string;
166
+ };
167
+ };
168
+ };
169
+ readonly checkbox: {
170
+ readonly base: {
171
+ readonly "--ui-check-size": "1rem";
172
+ readonly "border-radius": "4px";
173
+ readonly "border-color": "hsl(var(--primary))";
174
+ readonly "box-shadow": "0 1px 2px 0 rgb(0 0 0 / 0.05)";
175
+ readonly "&:focus-visible": {
176
+ readonly outline: "none";
177
+ readonly "box-shadow": "0 0 0 3px hsl(var(--ring) / 0.5)";
178
+ };
179
+ };
180
+ };
181
+ readonly radio: {
182
+ readonly base: {
183
+ readonly "--ui-radio-size": "1rem";
184
+ readonly "--ui-radio-dot-size": "0.5em";
185
+ readonly "--ui-radio-dot": "var(--ui-c-text)";
186
+ readonly "border-color": "hsl(var(--primary))";
187
+ readonly '&:checked, &[aria-checked="true"]': {
188
+ readonly "background-color": "transparent";
189
+ };
190
+ readonly "box-shadow": "0 1px 2px 0 rgb(0 0 0 / 0.05)";
191
+ readonly "&:focus-visible": {
192
+ readonly outline: "none";
193
+ readonly "box-shadow": "0 0 0 3px hsl(var(--ring) / 0.5)";
194
+ };
195
+ };
196
+ };
197
+ readonly switch: {
198
+ readonly base: {
199
+ readonly "--ui-switch-size": "1.25rem";
200
+ readonly "--ui-switch-pad": "2px";
201
+ readonly "box-shadow": "0 1px 2px 0 rgb(0 0 0 / 0.05)";
202
+ readonly "&::after": {
203
+ readonly "box-shadow": "0 1px 3px 0 rgb(0 0 0 / 0.25)";
204
+ };
205
+ readonly "&:focus-visible": {
206
+ readonly outline: "none";
207
+ readonly "box-shadow": "0 0 0 3px hsl(var(--ring) / 0.5)";
208
+ };
209
+ };
210
+ readonly states: {
211
+ readonly active: {
212
+ readonly "&:focus-visible": {
213
+ readonly "box-shadow": "0 0 0 3px hsl(var(--ring) / 0.5)";
214
+ };
215
+ };
216
+ };
217
+ };
218
+ readonly field: {
219
+ readonly base: {
220
+ readonly "--ui-field-gap": "0.5rem";
221
+ };
222
+ };
223
+ readonly "field-hint": {
224
+ readonly base: {
225
+ readonly "--ui-field-hint": "hsl(var(--muted-foreground))";
226
+ };
227
+ };
228
+ readonly card: {
229
+ readonly base: {
230
+ readonly "border-radius": "calc(var(--radius) + 4px)";
231
+ readonly "box-shadow": "0 1px 2px 0 rgb(0 0 0 / 0.05)";
232
+ };
233
+ };
234
+ readonly "card-header": {
235
+ readonly base: {
236
+ readonly padding: "1.5rem";
237
+ readonly "border-bottom": "0";
238
+ };
239
+ };
240
+ readonly "card-body": {
241
+ readonly base: {
242
+ readonly padding: "0 1.5rem 1.5rem";
243
+ };
244
+ };
245
+ readonly "card-footer": {
246
+ readonly base: {
247
+ readonly padding: "0 1.5rem 1.5rem";
248
+ readonly "border-top": "0";
249
+ readonly "background-color": "transparent";
250
+ };
251
+ };
252
+ readonly badge: {
253
+ readonly base: {
254
+ readonly "border-radius": "calc(var(--radius) - 2px)";
255
+ readonly padding: "0.125rem 0.5rem";
256
+ readonly "font-size": "0.75rem";
257
+ };
258
+ readonly styles: {
259
+ readonly outline: {
260
+ readonly color: "hsl(var(--foreground))";
261
+ readonly "border-color": "hsl(var(--border))";
262
+ };
263
+ readonly ghost: {
264
+ readonly color: "hsl(var(--foreground))";
265
+ };
266
+ };
267
+ };
268
+ readonly alert: {
269
+ readonly base: {
270
+ readonly "--ui-c": "hsl(var(--card))";
271
+ readonly "--ui-on-c": "hsl(var(--card-foreground))";
272
+ readonly "border-radius": "calc(var(--radius) + 2px)";
273
+ readonly "border-color": "hsl(var(--border))";
274
+ readonly "font-size": "0.875rem";
275
+ };
276
+ readonly intents: {
277
+ readonly primary: {
278
+ "border-color": string;
279
+ };
280
+ readonly secondary: {
281
+ "border-color": string;
282
+ };
283
+ readonly success: {
284
+ "border-color": string;
285
+ };
286
+ readonly warning: {
287
+ "border-color": string;
288
+ };
289
+ readonly danger: {
290
+ "border-color": string;
291
+ };
292
+ };
293
+ readonly styles: {
294
+ readonly ghost: {
295
+ readonly color: "hsl(var(--foreground))";
296
+ };
297
+ };
298
+ };
299
+ readonly "modal-box": {
300
+ readonly base: {
301
+ readonly "border-radius": "calc(var(--radius) + 2px)";
302
+ readonly border: "1px solid hsl(var(--border))";
303
+ readonly "border-top-width": "1px";
304
+ readonly "box-shadow": "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)";
305
+ };
306
+ };
307
+ readonly tabs: {
308
+ readonly base: {
309
+ readonly display: "inline-flex";
310
+ readonly gap: "0";
311
+ readonly padding: "3px";
312
+ readonly "border-bottom": "0";
313
+ readonly "border-radius": "calc(var(--radius) + 2px)";
314
+ readonly "background-color": "hsl(var(--muted))";
315
+ readonly "--ui-tab-active-bg": "hsl(var(--background))";
316
+ readonly "--ui-tab-active-fg": "hsl(var(--foreground))";
317
+ readonly "--ui-tab-active-line": "transparent";
318
+ readonly "--ui-tab-active-shadow": "0 1px 2px 0 rgb(0 0 0 / 0.05)";
319
+ readonly "--ui-tab-radius": "calc(var(--radius) - 2px)";
320
+ };
321
+ };
322
+ readonly tab: {
323
+ readonly base: {
324
+ readonly margin: "0";
325
+ readonly padding: "0.25rem 0.75rem";
326
+ readonly "font-size": "0.875rem";
327
+ readonly color: "hsl(var(--muted-foreground))";
328
+ readonly "&:hover": {
329
+ readonly color: "hsl(var(--foreground))";
330
+ };
331
+ };
332
+ };
333
+ readonly button: {
334
+ readonly base: {
335
+ readonly height: "2.25rem";
336
+ readonly padding: "0 1rem";
337
+ readonly "font-size": "0.875rem";
338
+ readonly "box-shadow": "0 1px 2px 0 rgb(0 0 0 / 0.05)";
339
+ readonly "&:focus-visible": {
340
+ readonly outline: "none";
341
+ readonly "box-shadow": "0 0 0 1px hsl(var(--background)), 0 0 0 4px hsl(var(--ring) / 0.5)";
342
+ };
343
+ };
344
+ readonly intents: {
345
+ readonly primary: {
346
+ readonly "--ui-c-hover": "hsl(var(--primary) / 0.9)";
347
+ };
348
+ readonly danger: {
349
+ readonly "--ui-c-hover": "hsl(var(--destructive) / 0.9)";
350
+ };
351
+ };
352
+ readonly styles: {
353
+ readonly outline: {
354
+ readonly "background-color": "hsl(var(--background))";
355
+ readonly "border-color": "hsl(var(--border))";
356
+ readonly color: "hsl(var(--foreground))";
357
+ readonly "&:hover": {
358
+ readonly "background-color": "hsl(var(--accent))";
359
+ readonly "border-color": "hsl(var(--border))";
360
+ readonly color: "hsl(var(--accent-foreground))";
361
+ };
362
+ };
363
+ readonly ghost: {
364
+ readonly color: "hsl(var(--foreground))";
365
+ readonly "&:hover": {
366
+ readonly "background-color": "hsl(var(--accent))";
367
+ readonly color: "hsl(var(--accent-foreground))";
368
+ };
369
+ };
370
+ };
371
+ readonly states: {
372
+ readonly active: {
373
+ readonly "&:focus-visible": {
374
+ 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)";
375
+ };
376
+ };
377
+ };
378
+ readonly sizes: {
379
+ readonly sm: {
380
+ readonly height: "2rem";
381
+ readonly padding: "0 0.75rem";
382
+ readonly "font-size": "0.75rem";
383
+ };
384
+ readonly lg: {
385
+ readonly height: "2.5rem";
386
+ readonly padding: "0 2rem";
387
+ };
388
+ };
389
+ };
390
+ };
391
+ };
392
+ export default _default;
393
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAyDA;;;;;;;GAOG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACH,wBA4PG"}
package/dist/index.js ADDED
@@ -0,0 +1,312 @@
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
+ /* shadcn's destructive is ~3.6:1 as text on white: error messages and
51
+ invalid borders use a deeper red (>= 4.5:1; dark mode pins a lighter one) */
52
+ "--ui-danger-text": "hsl(0 72% 42%)",
53
+ };
54
+ /**
55
+ * shadcn/ui visual style for Uniskin — pure CSS, no React, no Radix.
56
+ *
57
+ * Emits shadcn's own CSS variables (`--primary`, `--radius`, `--ring`…)
58
+ * on :root in their classic HSL-channel form, then maps Uniskin's tokens
59
+ * onto them. Users can re-theme by overriding the shadcn variables they
60
+ * already know.
61
+ */
62
+ export default defineAdapter({
63
+ name: "shadcn",
64
+ darkTokens: {
65
+ /* shadcn/ui canonical dark theme (HSL channels) */
66
+ "--background": "222.2 84% 4.9%",
67
+ "--foreground": "210 40% 98%",
68
+ "--card": "222.2 84% 4.9%",
69
+ "--card-foreground": "210 40% 98%",
70
+ "--primary": "210 40% 98%",
71
+ "--primary-foreground": "222.2 47.4% 11.2%",
72
+ "--secondary": "217.2 32.6% 17.5%",
73
+ "--secondary-foreground": "210 40% 98%",
74
+ "--muted": "217.2 32.6% 17.5%",
75
+ "--muted-foreground": "215 20.2% 65.1%",
76
+ "--accent": "217.2 32.6% 17.5%",
77
+ "--accent-foreground": "210 40% 98%",
78
+ "--destructive": "0 62.8% 30.6%",
79
+ "--destructive-foreground": "210 40% 98%",
80
+ "--border": "217.2 32.6% 17.5%",
81
+ "--input": "217.2 32.6% 17.5%",
82
+ "--ring": "212.7 26.8% 83.9%",
83
+ /* success/warning aren't shadcn tokens — dark values of Uniskin's defaults */
84
+ "--ui-success": "oklch(0.72 0.15 163)",
85
+ "--ui-success-fg": "oklch(0.15 0.03 163)",
86
+ "--ui-warning": "oklch(0.82 0.15 85)",
87
+ "--ui-warning-fg": "oklch(0.2 0.04 90)",
88
+ /* shadcn's dark destructive is deliberately deep (30% lightness) — too dark
89
+ to read as soft text, so pin a lighter red pair for ui-danger ui-soft */
90
+ "--ui-danger-soft": "color-mix(in oklab, hsl(0 72% 51%) 22%, hsl(var(--card)))",
91
+ "--ui-danger-soft-fg": "hsl(0 90% 78%)",
92
+ ...uiMap,
93
+ /* shadcn dark destructive (30.6% lightness) is only ~1.8:1 against the page as a
94
+ border or indicator: lift ui-danger to >= 3.4:1 on any surface (the light label stays >= 6:1) */
95
+ "--ui-danger": "hsl(0 62.8% 48%)",
96
+ "--ui-danger-text": "hsl(0 90% 72%)",
97
+ },
98
+ tokens: {
99
+ /* shadcn/ui canonical variables (light theme, HSL channels) */
100
+ "--background": "0 0% 100%",
101
+ "--foreground": "222.2 84% 4.9%",
102
+ "--card": "0 0% 100%",
103
+ "--card-foreground": "222.2 84% 4.9%",
104
+ "--primary": "222.2 47.4% 11.2%",
105
+ "--primary-foreground": "210 40% 98%",
106
+ "--secondary": "210 40% 96.1%",
107
+ "--secondary-foreground": "222.2 47.4% 11.2%",
108
+ "--muted": "210 40% 96.1%",
109
+ "--muted-foreground": "215.4 16.3% 46.9%",
110
+ "--accent": "210 40% 96.1%",
111
+ "--accent-foreground": "222.2 47.4% 11.2%",
112
+ "--destructive": "0 84.2% 60.2%",
113
+ "--destructive-foreground": "210 40% 98%",
114
+ "--border": "214.3 31.8% 91.4%",
115
+ "--input": "214.3 31.8% 91.4%",
116
+ "--ring": "222.2 84% 4.9%",
117
+ "--radius": "0.5rem",
118
+ ...uiMap,
119
+ },
120
+ components: {
121
+ input: {
122
+ base: { ...field, ...fieldHeights.base },
123
+ sizes: fieldHeights.sizes,
124
+ },
125
+ textarea: { base: { ...field, "min-height": "4rem" } },
126
+ select: {
127
+ base: { ...field, ...fieldHeights.base },
128
+ sizes: fieldHeights.sizes,
129
+ },
130
+ checkbox: {
131
+ base: {
132
+ "--ui-check-size": "1rem",
133
+ "border-radius": "4px",
134
+ "border-color": "hsl(var(--primary))",
135
+ "box-shadow": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
136
+ "&:focus-visible": {
137
+ outline: "none",
138
+ "box-shadow": "0 0 0 3px hsl(var(--ring) / 0.5)",
139
+ },
140
+ },
141
+ },
142
+ radio: {
143
+ base: {
144
+ "--ui-radio-size": "1rem",
145
+ "--ui-radio-dot-size": "0.5em",
146
+ "--ui-radio-dot": "var(--ui-c-text)",
147
+ "border-color": "hsl(var(--primary))",
148
+ /* shadcn: ring stays transparent, a primary dot marks the choice */
149
+ '&:checked, &[aria-checked="true"]': { "background-color": "transparent" },
150
+ "box-shadow": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
151
+ "&:focus-visible": {
152
+ outline: "none",
153
+ "box-shadow": "0 0 0 3px hsl(var(--ring) / 0.5)",
154
+ },
155
+ },
156
+ },
157
+ switch: {
158
+ base: {
159
+ "--ui-switch-size": "1.25rem",
160
+ "--ui-switch-pad": "2px",
161
+ /* shadcn Switch: primary when on. The off track is deliberately
162
+ stronger than upstream's very light --input so it keeps 3:1. */
163
+ "box-shadow": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
164
+ "&::after": { "box-shadow": "0 1px 3px 0 rgb(0 0 0 / 0.25)" },
165
+ "&:focus-visible": {
166
+ outline: "none",
167
+ "box-shadow": "0 0 0 3px hsl(var(--ring) / 0.5)",
168
+ },
169
+ },
170
+ states: {
171
+ /* the default active halo would otherwise out-rank the focus ring */
172
+ active: {
173
+ "&:focus-visible": { "box-shadow": "0 0 0 3px hsl(var(--ring) / 0.5)" },
174
+ },
175
+ },
176
+ },
177
+ field: { base: { "--ui-field-gap": "0.5rem" } },
178
+ "field-hint": { base: { "--ui-field-hint": "hsl(var(--muted-foreground))" } },
179
+ card: {
180
+ base: {
181
+ "border-radius": "calc(var(--radius) + 4px)",
182
+ "box-shadow": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
183
+ },
184
+ },
185
+ "card-header": { base: { padding: "1.5rem", "border-bottom": "0" } },
186
+ "card-body": { base: { padding: "0 1.5rem 1.5rem" } },
187
+ "card-footer": {
188
+ base: {
189
+ padding: "0 1.5rem 1.5rem",
190
+ "border-top": "0",
191
+ "background-color": "transparent",
192
+ },
193
+ },
194
+ badge: {
195
+ base: {
196
+ "border-radius": "calc(var(--radius) - 2px)",
197
+ padding: "0.125rem 0.5rem",
198
+ "font-size": "0.75rem",
199
+ },
200
+ styles: {
201
+ outline: {
202
+ color: "hsl(var(--foreground))",
203
+ "border-color": "hsl(var(--border))",
204
+ },
205
+ /* shadcn's secondary is near-white — keep ghost text readable */
206
+ ghost: { color: "hsl(var(--foreground))" },
207
+ },
208
+ },
209
+ alert: {
210
+ base: {
211
+ "--ui-c": "hsl(var(--card))",
212
+ "--ui-on-c": "hsl(var(--card-foreground))",
213
+ "border-radius": "calc(var(--radius) + 2px)",
214
+ "border-color": "hsl(var(--border))",
215
+ "font-size": "0.875rem",
216
+ },
217
+ intents: {
218
+ primary: alertIntent,
219
+ secondary: alertIntent,
220
+ success: alertIntent,
221
+ warning: alertIntent,
222
+ danger: alertIntent,
223
+ },
224
+ styles: { ghost: { color: "hsl(var(--foreground))" } },
225
+ },
226
+ "modal-box": {
227
+ base: {
228
+ "border-radius": "calc(var(--radius) + 2px)",
229
+ border: "1px solid hsl(var(--border))",
230
+ "border-top-width": "1px",
231
+ "box-shadow": "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
232
+ },
233
+ },
234
+ tabs: {
235
+ base: {
236
+ display: "inline-flex",
237
+ gap: "0",
238
+ padding: "3px",
239
+ "border-bottom": "0",
240
+ "border-radius": "calc(var(--radius) + 2px)",
241
+ "background-color": "hsl(var(--muted))",
242
+ "--ui-tab-active-bg": "hsl(var(--background))",
243
+ "--ui-tab-active-fg": "hsl(var(--foreground))",
244
+ "--ui-tab-active-line": "transparent",
245
+ "--ui-tab-active-shadow": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
246
+ "--ui-tab-radius": "calc(var(--radius) - 2px)",
247
+ },
248
+ },
249
+ tab: {
250
+ base: {
251
+ margin: "0",
252
+ padding: "0.25rem 0.75rem",
253
+ "font-size": "0.875rem",
254
+ color: "hsl(var(--muted-foreground))",
255
+ "&:hover": { color: "hsl(var(--foreground))" },
256
+ },
257
+ },
258
+ button: {
259
+ base: {
260
+ /* shadcn button: h-9 px-4, font-medium, shadow-xs */
261
+ height: "2.25rem",
262
+ padding: "0 1rem",
263
+ "font-size": "0.875rem",
264
+ "box-shadow": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
265
+ "&:focus-visible": {
266
+ outline: "none",
267
+ "box-shadow": "0 0 0 1px hsl(var(--background)), 0 0 0 4px hsl(var(--ring) / 0.5)",
268
+ },
269
+ },
270
+ intents: {
271
+ /* shadcn hover = bg-<intent>/90 (opacity, not a darker shade) */
272
+ primary: { "--ui-c-hover": "hsl(var(--primary) / 0.9)" },
273
+ danger: { "--ui-c-hover": "hsl(var(--destructive) / 0.9)" },
274
+ },
275
+ styles: {
276
+ /* shadcn outline: neutral border + accent hover — intent colors
277
+ intentionally don't tint it (faithful to shadcn) */
278
+ outline: {
279
+ "background-color": "hsl(var(--background))",
280
+ "border-color": "hsl(var(--border))",
281
+ color: "hsl(var(--foreground))",
282
+ "&:hover": {
283
+ "background-color": "hsl(var(--accent))",
284
+ "border-color": "hsl(var(--border))",
285
+ color: "hsl(var(--accent-foreground))",
286
+ },
287
+ },
288
+ ghost: {
289
+ color: "hsl(var(--foreground))",
290
+ "&:hover": {
291
+ "background-color": "hsl(var(--accent))",
292
+ color: "hsl(var(--accent-foreground))",
293
+ },
294
+ },
295
+ },
296
+ states: {
297
+ /* the default pressed look is an inset shadow, which would replace the
298
+ ring while the button is focused — keep both */
299
+ active: {
300
+ "&:focus-visible": {
301
+ "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)",
302
+ },
303
+ },
304
+ },
305
+ sizes: {
306
+ sm: { height: "2rem", padding: "0 0.75rem", "font-size": "0.75rem" },
307
+ lg: { height: "2.5rem", padding: "0 2rem" },
308
+ },
309
+ },
310
+ },
311
+ });
312
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot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BACjB,OAAO,EAAE,QAAQ;gBACjB,WAAW,EAAE,UAAU;gBACvB,YAAY,EAAE,+BAA+B;gBAC7C,iBAAiB,EAAE;oBACjB,OAAO,EAAE,MAAM;oBACf,YAAY,EACV,oEAAoE;iBACvE;aACF;YACD,OAAO,EAAE;gBACP,iEAAiE;gBACjE,OAAO,EAAE,EAAE,cAAc,EAAE,2BAA2B,EAAE;gBACxD,MAAM,EAAE,EAAE,cAAc,EAAE,+BAA+B,EAAE;aAC5D;YACD,MAAM,EAAE;gBACN;sEACsD;gBACtD,OAAO,EAAE;oBACP,kBAAkB,EAAE,wBAAwB;oBAC5C,cAAc,EAAE,oBAAoB;oBACpC,KAAK,EAAE,wBAAwB;oBAC/B,SAAS,EAAE;wBACT,kBAAkB,EAAE,oBAAoB;wBACxC,cAAc,EAAE,oBAAoB;wBACpC,KAAK,EAAE,+BAA+B;qBACvC;iBACF;gBACD,KAAK,EAAE;oBACL,KAAK,EAAE,wBAAwB;oBAC/B,SAAS,EAAE;wBACT,kBAAkB,EAAE,oBAAoB;wBACxC,KAAK,EAAE,+BAA+B;qBACvC;iBACF;aACF;YACD,MAAM,EAAE;gBACN;kEACkD;gBAClD,MAAM,EAAE;oBACN,iBAAiB,EAAE;wBACjB,YAAY,EACV,sGAAsG;qBACzG;iBACF;aACF;YACD,KAAK,EAAE;gBACL,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE;gBACpE,EAAE,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE;aAC5C;SACF;KACF;CACF,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,52 @@
1
1
  {
2
2
  "name": "@uniskin/shadcn",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.3.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
+ "bugs": {
34
+ "url": "https://github.com/Munawarhussain729/uniskin/issues"
35
+ },
36
+ "publishConfig": {
37
+ "access": "public"
38
+ },
39
+ "peerDependencies": {
40
+ "tailwindcss": "^4.3.3",
41
+ "uniskin": ">=0.1.0 <1.0.0"
42
+ },
43
+ "devDependencies": {
44
+ "tailwindcss": "^4.3.5",
45
+ "typescript": "^5.9.3",
46
+ "uniskin": "0.3.0"
47
+ },
48
+ "scripts": {
49
+ "build": "tsc -p tsconfig.json",
50
+ "typecheck": "tsc -p tsconfig.json --noEmit"
51
+ }
6
52
  }