@uniskin/daisyui 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 +21 -0
- package/README.md +56 -2
- package/dist/index.d.ts +306 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +227 -0
- package/dist/index.js.map +1 -0
- package/package.json +55 -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/README.md
CHANGED
|
@@ -1,3 +1,57 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @uniskin/daisyui
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The daisyUI look for [uniskin](https://www.npmjs.com/package/uniskin): the
|
|
4
|
+
`ui-*` class vocabulary styled from your live daisyUI theme variables, as pure
|
|
5
|
+
CSS.
|
|
6
|
+
|
|
7
|
+
```css
|
|
8
|
+
@import "tailwindcss";
|
|
9
|
+
@plugin "daisyui";
|
|
10
|
+
@plugin "uniskin" { adapter: "daisyui"; }
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
```html
|
|
14
|
+
<button class="ui-button ui-primary">Save</button>
|
|
15
|
+
<button class="ui-button ui-danger ui-outline">Delete</button>
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Install
|
|
19
|
+
|
|
20
|
+
```sh
|
|
21
|
+
npx uniskin init --adapter daisyui --yes
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
or by hand:
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
npm install uniskin @uniskin/daisyui daisyui
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
and add the two `@plugin` lines shown above to your Tailwind v4 entry CSS.
|
|
31
|
+
`daisyui` is an optional peer dependency: the adapter uses the live daisyUI
|
|
32
|
+
theme variables when they are present, and sensible fallbacks when they are
|
|
33
|
+
not.
|
|
34
|
+
|
|
35
|
+
Requires **tailwindcss 4.3.3 or newer** and the `uniskin` core package.
|
|
36
|
+
|
|
37
|
+
## What you get
|
|
38
|
+
|
|
39
|
+
- Every uniskin component restyled from daisyUI's theme tokens: button, input,
|
|
40
|
+
textarea, select, checkbox, radio, switch, field, card, badge, alert, modal
|
|
41
|
+
and tabs.
|
|
42
|
+
- Your daisyUI themes apply automatically: tokens re-resolve on every
|
|
43
|
+
`[data-theme]` element, so switching themes just works.
|
|
44
|
+
- Form-control boundaries and error text tuned to meet WCAG contrast
|
|
45
|
+
(3:1 for borders, 4.5:1 for text).
|
|
46
|
+
- Anything this adapter doesn't override falls back to the uniskin default
|
|
47
|
+
skin, so the whole vocabulary always works.
|
|
48
|
+
|
|
49
|
+
## Customise
|
|
50
|
+
|
|
51
|
+
Write your own adapter on top of this one. See the uniskin
|
|
52
|
+
[adapter guide](https://github.com/Munawarhussain729/uniskin/blob/main/docs/writing-adapters.md)
|
|
53
|
+
and the [vocabulary reference](https://github.com/Munawarhussain729/uniskin/blob/main/docs/vocabulary.md).
|
|
54
|
+
|
|
55
|
+
## License
|
|
56
|
+
|
|
57
|
+
MIT
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* daisyUI 5 visual style for Uniskin.
|
|
3
|
+
*
|
|
4
|
+
* Every color/radius is a var() reference to daisyUI's own theme
|
|
5
|
+
* variables (`--color-primary`, `--radius-field`, …) with the daisyUI
|
|
6
|
+
* "light" theme value as fallback. So:
|
|
7
|
+
*
|
|
8
|
+
* - with `@plugin "daisyui"` also loaded, Uniskin classes follow the
|
|
9
|
+
* user's active daisyUI theme — including dark mode and custom themes;
|
|
10
|
+
* - without daisyUI installed, they still render in daisyUI's light look.
|
|
11
|
+
*
|
|
12
|
+
* See docs/decisions/001-daisyui-adapter.md for why we map variables
|
|
13
|
+
* instead of @apply-ing daisyUI's component classes.
|
|
14
|
+
*/
|
|
15
|
+
declare const _default: {
|
|
16
|
+
readonly name: "daisyui";
|
|
17
|
+
readonly rootSelector: ":root, [data-theme]";
|
|
18
|
+
readonly darkTokens: {};
|
|
19
|
+
readonly tokens: {
|
|
20
|
+
readonly "--ui-primary": "var(--color-primary, oklch(45% 0.24 277.023))";
|
|
21
|
+
readonly "--ui-primary-fg": "var(--color-primary-content, oklch(93% 0.034 272.788))";
|
|
22
|
+
readonly "--ui-secondary": "var(--color-secondary, oklch(65% 0.241 354.308))";
|
|
23
|
+
readonly "--ui-secondary-fg": "var(--color-secondary-content, oklch(94% 0.028 342.258))";
|
|
24
|
+
readonly "--ui-success": "var(--color-success, oklch(76% 0.177 163.223))";
|
|
25
|
+
readonly "--ui-success-fg": "var(--color-success-content, oklch(37% 0.077 168.94))";
|
|
26
|
+
readonly "--ui-warning": "var(--color-warning, oklch(82% 0.189 84.429))";
|
|
27
|
+
readonly "--ui-warning-fg": "var(--color-warning-content, oklch(41% 0.112 45.904))";
|
|
28
|
+
readonly "--ui-danger": "var(--color-error, oklch(71% 0.194 13.428))";
|
|
29
|
+
readonly "--ui-danger-fg": "var(--color-error-content, oklch(27% 0.105 12.094))";
|
|
30
|
+
readonly "--ui-secondary-text": "color-mix(in oklab, var(--ui-secondary) 80%, var(--ui-surface-fg))";
|
|
31
|
+
readonly "--ui-success-text": "color-mix(in oklab, var(--ui-success) 55%, var(--ui-surface-fg))";
|
|
32
|
+
readonly "--ui-danger-text": "color-mix(in oklab, var(--ui-danger) 70%, var(--ui-surface-fg))";
|
|
33
|
+
readonly "--ui-neutral": "var(--color-neutral, oklch(14% 0.005 285.823))";
|
|
34
|
+
readonly "--ui-neutral-fg": "var(--color-neutral-content, oklch(92% 0.004 286.32))";
|
|
35
|
+
readonly "--ui-neutral-soft": "var(--color-base-200, oklch(98% 0 0))";
|
|
36
|
+
readonly "--ui-neutral-soft-fg": "var(--color-base-content, oklch(21% 0.006 285.885))";
|
|
37
|
+
readonly "--ui-surface": "var(--color-base-100, oklch(100% 0 0))";
|
|
38
|
+
readonly "--ui-surface-fg": "var(--color-base-content, oklch(21% 0.006 285.885))";
|
|
39
|
+
readonly "--ui-surface-muted": "var(--color-base-200, oklch(98% 0 0))";
|
|
40
|
+
readonly "--ui-border": "var(--color-base-300, oklch(95% 0 0))";
|
|
41
|
+
readonly "--ui-ring": "var(--color-primary, oklch(45% 0.24 277.023))";
|
|
42
|
+
readonly "--ui-radius": "var(--radius-field, 0.25rem)";
|
|
43
|
+
};
|
|
44
|
+
readonly components: {
|
|
45
|
+
readonly input: {
|
|
46
|
+
readonly base: {
|
|
47
|
+
height: string;
|
|
48
|
+
padding: string;
|
|
49
|
+
"border-width": string;
|
|
50
|
+
"border-color": string;
|
|
51
|
+
"&:hover": {};
|
|
52
|
+
"&:focus-visible": {
|
|
53
|
+
outline: string;
|
|
54
|
+
"outline-offset": string;
|
|
55
|
+
"box-shadow": string;
|
|
56
|
+
"border-color": string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
readonly sizes: {
|
|
60
|
+
sm: {
|
|
61
|
+
height: string;
|
|
62
|
+
padding: string;
|
|
63
|
+
"font-size": string;
|
|
64
|
+
};
|
|
65
|
+
lg: {
|
|
66
|
+
height: string;
|
|
67
|
+
padding: string;
|
|
68
|
+
"font-size": string;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
readonly textarea: {
|
|
73
|
+
readonly base: {
|
|
74
|
+
"border-width": string;
|
|
75
|
+
"border-color": string;
|
|
76
|
+
"&:hover": {};
|
|
77
|
+
"&:focus-visible": {
|
|
78
|
+
outline: string;
|
|
79
|
+
"outline-offset": string;
|
|
80
|
+
"box-shadow": string;
|
|
81
|
+
"border-color": string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
readonly select: {
|
|
86
|
+
readonly base: {
|
|
87
|
+
height: string;
|
|
88
|
+
padding: string;
|
|
89
|
+
"border-width": string;
|
|
90
|
+
"border-color": string;
|
|
91
|
+
"&:hover": {};
|
|
92
|
+
"&:focus-visible": {
|
|
93
|
+
outline: string;
|
|
94
|
+
"outline-offset": string;
|
|
95
|
+
"box-shadow": string;
|
|
96
|
+
"border-color": string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
readonly sizes: {
|
|
100
|
+
sm: {
|
|
101
|
+
height: string;
|
|
102
|
+
padding: string;
|
|
103
|
+
"font-size": string;
|
|
104
|
+
};
|
|
105
|
+
lg: {
|
|
106
|
+
height: string;
|
|
107
|
+
padding: string;
|
|
108
|
+
"font-size": string;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
readonly checkbox: {
|
|
113
|
+
readonly base: {
|
|
114
|
+
readonly "--ui-check-size": "calc(var(--size-selector, 0.25rem) * 6)";
|
|
115
|
+
readonly "border-radius": "var(--radius-selector, 0.5rem)";
|
|
116
|
+
readonly "border-color": "color-mix(in oklab, var(--ui-border) 55%, var(--ui-surface-fg))";
|
|
117
|
+
};
|
|
118
|
+
readonly sizes: {
|
|
119
|
+
readonly sm: {
|
|
120
|
+
readonly "--ui-check-size": "calc(var(--size-selector, 0.25rem) * 5)";
|
|
121
|
+
};
|
|
122
|
+
readonly lg: {
|
|
123
|
+
readonly "--ui-check-size": "calc(var(--size-selector, 0.25rem) * 7)";
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
readonly radio: {
|
|
128
|
+
readonly base: {
|
|
129
|
+
readonly "--ui-radio-size": "calc(var(--size-selector, 0.25rem) * 6)";
|
|
130
|
+
};
|
|
131
|
+
readonly sizes: {
|
|
132
|
+
readonly sm: {
|
|
133
|
+
readonly "--ui-radio-size": "calc(var(--size-selector, 0.25rem) * 5)";
|
|
134
|
+
};
|
|
135
|
+
readonly lg: {
|
|
136
|
+
readonly "--ui-radio-size": "calc(var(--size-selector, 0.25rem) * 7)";
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
readonly switch: {
|
|
141
|
+
readonly base: {
|
|
142
|
+
readonly "--ui-switch-size": "calc(var(--size-selector, 0.25rem) * 6)";
|
|
143
|
+
};
|
|
144
|
+
readonly sizes: {
|
|
145
|
+
readonly sm: {
|
|
146
|
+
readonly "--ui-switch-size": "calc(var(--size-selector, 0.25rem) * 5)";
|
|
147
|
+
};
|
|
148
|
+
readonly lg: {
|
|
149
|
+
readonly "--ui-switch-size": "calc(var(--size-selector, 0.25rem) * 7)";
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
};
|
|
153
|
+
readonly field: {
|
|
154
|
+
readonly base: {
|
|
155
|
+
readonly "--ui-field-gap": "0.25rem";
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
readonly "field-label": {
|
|
159
|
+
readonly base: {
|
|
160
|
+
readonly "font-weight": "600";
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
readonly card: {
|
|
164
|
+
readonly base: {
|
|
165
|
+
readonly "border-radius": "var(--radius-box, 1rem)";
|
|
166
|
+
readonly "box-shadow": "0 1px 3px rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)";
|
|
167
|
+
};
|
|
168
|
+
};
|
|
169
|
+
readonly "card-header": {
|
|
170
|
+
readonly base: {
|
|
171
|
+
readonly "border-bottom": "0";
|
|
172
|
+
readonly "padding-bottom": "0";
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
readonly "card-footer": {
|
|
176
|
+
readonly base: {
|
|
177
|
+
readonly "background-color": "transparent";
|
|
178
|
+
readonly "border-top": "0";
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
readonly badge: {
|
|
182
|
+
readonly base: {
|
|
183
|
+
readonly height: "calc(var(--size-selector, 0.25rem) * 6)";
|
|
184
|
+
readonly "border-radius": "var(--radius-selector, 0.5rem)";
|
|
185
|
+
readonly "font-size": "0.875rem";
|
|
186
|
+
readonly padding: "0 0.5rem";
|
|
187
|
+
};
|
|
188
|
+
readonly sizes: {
|
|
189
|
+
readonly sm: {
|
|
190
|
+
readonly height: "calc(var(--size-selector, 0.25rem) * 5)";
|
|
191
|
+
readonly "font-size": "0.75rem";
|
|
192
|
+
};
|
|
193
|
+
readonly lg: {
|
|
194
|
+
readonly height: "calc(var(--size-selector, 0.25rem) * 7)";
|
|
195
|
+
readonly "font-size": "1rem";
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
readonly alert: {
|
|
200
|
+
readonly base: {
|
|
201
|
+
readonly "border-radius": "var(--radius-box, 1rem)";
|
|
202
|
+
readonly "background-color": "var(--ui-surface-muted)";
|
|
203
|
+
readonly color: "var(--ui-surface-fg)";
|
|
204
|
+
readonly "border-color": "var(--ui-border)";
|
|
205
|
+
readonly "font-size": "0.875rem";
|
|
206
|
+
};
|
|
207
|
+
readonly intents: {
|
|
208
|
+
readonly primary: {
|
|
209
|
+
"background-color": string;
|
|
210
|
+
"border-color": string;
|
|
211
|
+
color: string;
|
|
212
|
+
};
|
|
213
|
+
readonly secondary: {
|
|
214
|
+
"background-color": string;
|
|
215
|
+
"border-color": string;
|
|
216
|
+
color: string;
|
|
217
|
+
};
|
|
218
|
+
readonly success: {
|
|
219
|
+
"background-color": string;
|
|
220
|
+
"border-color": string;
|
|
221
|
+
color: string;
|
|
222
|
+
};
|
|
223
|
+
readonly warning: {
|
|
224
|
+
"background-color": string;
|
|
225
|
+
"border-color": string;
|
|
226
|
+
color: string;
|
|
227
|
+
};
|
|
228
|
+
readonly danger: {
|
|
229
|
+
"background-color": string;
|
|
230
|
+
"border-color": string;
|
|
231
|
+
color: string;
|
|
232
|
+
};
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
readonly "modal-box": {
|
|
236
|
+
readonly base: {
|
|
237
|
+
readonly "border-radius": "var(--radius-box, 1rem)";
|
|
238
|
+
readonly "box-shadow": "0 25px 50px -12px rgb(0 0 0 / 0.25)";
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
readonly button: {
|
|
242
|
+
readonly base: {
|
|
243
|
+
readonly "font-weight": "600";
|
|
244
|
+
readonly height: "calc(var(--size-field, 0.25rem) * 10)";
|
|
245
|
+
readonly padding: "0 1rem";
|
|
246
|
+
readonly transition: "background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease";
|
|
247
|
+
readonly "&:hover": {
|
|
248
|
+
readonly "background-color": "color-mix(in oklab, var(--ui-c) 90%, black)";
|
|
249
|
+
readonly "border-color": "color-mix(in oklab, var(--ui-c) 90%, black)";
|
|
250
|
+
};
|
|
251
|
+
readonly "&:active": {
|
|
252
|
+
readonly transform: "scale(0.97)";
|
|
253
|
+
};
|
|
254
|
+
readonly "&:focus-visible": {
|
|
255
|
+
readonly outline: "2px solid var(--ui-c-text)";
|
|
256
|
+
readonly "outline-offset": "2px";
|
|
257
|
+
};
|
|
258
|
+
};
|
|
259
|
+
readonly styles: {
|
|
260
|
+
readonly outline: {
|
|
261
|
+
readonly "background-color": "transparent";
|
|
262
|
+
readonly color: "var(--ui-c-text)";
|
|
263
|
+
readonly "border-color": "var(--ui-c)";
|
|
264
|
+
readonly "&:hover": {
|
|
265
|
+
readonly "background-color": "var(--ui-c)";
|
|
266
|
+
readonly "border-color": "var(--ui-c)";
|
|
267
|
+
readonly color: "var(--ui-on-c)";
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
readonly ghost: {
|
|
271
|
+
readonly "background-color": "transparent";
|
|
272
|
+
readonly "border-color": "transparent";
|
|
273
|
+
readonly color: "var(--ui-c-text)";
|
|
274
|
+
readonly "&:hover": {
|
|
275
|
+
readonly "background-color": "color-mix(in oklab, var(--ui-c) 20%, transparent)";
|
|
276
|
+
readonly "border-color": "transparent";
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
readonly soft: {
|
|
280
|
+
readonly "background-color": "color-mix(in oklab, var(--ui-c) 12%, var(--ui-surface))";
|
|
281
|
+
readonly "border-color": "transparent";
|
|
282
|
+
readonly color: "var(--ui-c-text)";
|
|
283
|
+
readonly "&:hover": {
|
|
284
|
+
readonly "background-color": "var(--ui-c)";
|
|
285
|
+
readonly "border-color": "var(--ui-c)";
|
|
286
|
+
readonly color: "var(--ui-on-c)";
|
|
287
|
+
};
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
readonly sizes: {
|
|
291
|
+
readonly sm: {
|
|
292
|
+
readonly height: "calc(var(--size-field, 0.25rem) * 8)";
|
|
293
|
+
readonly padding: "0 0.75rem";
|
|
294
|
+
readonly "font-size": "0.75rem";
|
|
295
|
+
};
|
|
296
|
+
readonly lg: {
|
|
297
|
+
readonly height: "calc(var(--size-field, 0.25rem) * 12)";
|
|
298
|
+
readonly padding: "0 1.5rem";
|
|
299
|
+
readonly "font-size": "1.125rem";
|
|
300
|
+
};
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
};
|
|
305
|
+
export default _default;
|
|
306
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAiCA;;;;;;;;;;;;;GAaG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACH,wBA2LG"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import { defineAdapter } from "uniskin/adapter";
|
|
2
|
+
/* daisyUI input/select: field-height box, 1px base-content border, outline focus */
|
|
3
|
+
const field = {
|
|
4
|
+
"border-width": "var(--border, 1px)",
|
|
5
|
+
"border-color": "var(--ui-field-c, color-mix(in oklab, var(--ui-border) 55%, var(--ui-surface-fg)))",
|
|
6
|
+
"&:hover": {},
|
|
7
|
+
"&:focus-visible": {
|
|
8
|
+
outline: "2px solid var(--ui-c-text)",
|
|
9
|
+
"outline-offset": "2px",
|
|
10
|
+
"box-shadow": "none",
|
|
11
|
+
"border-color": "var(--ui-field-c, color-mix(in oklab, var(--ui-border) 55%, var(--ui-surface-fg)))",
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
const singleLine = {
|
|
15
|
+
...field,
|
|
16
|
+
height: "calc(var(--size-field, 0.25rem) * 10)",
|
|
17
|
+
padding: "0 0.75rem",
|
|
18
|
+
};
|
|
19
|
+
const fieldSizes = {
|
|
20
|
+
sm: { height: "calc(var(--size-field, 0.25rem) * 8)", padding: "0 0.625rem", "font-size": "0.75rem" },
|
|
21
|
+
lg: { height: "calc(var(--size-field, 0.25rem) * 12)", padding: "0 1rem", "font-size": "1.125rem" },
|
|
22
|
+
};
|
|
23
|
+
/* daisyUI alert: tinted surface with a matching border, text in the intent color */
|
|
24
|
+
const alertIntent = {
|
|
25
|
+
"background-color": "color-mix(in oklab, var(--ui-c) 10%, var(--ui-surface))",
|
|
26
|
+
"border-color": "color-mix(in oklab, var(--ui-c) 40%, transparent)",
|
|
27
|
+
color: "color-mix(in oklab, var(--ui-c) 85%, var(--ui-surface-fg))",
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* daisyUI 5 visual style for Uniskin.
|
|
31
|
+
*
|
|
32
|
+
* Every color/radius is a var() reference to daisyUI's own theme
|
|
33
|
+
* variables (`--color-primary`, `--radius-field`, …) with the daisyUI
|
|
34
|
+
* "light" theme value as fallback. So:
|
|
35
|
+
*
|
|
36
|
+
* - with `@plugin "daisyui"` also loaded, Uniskin classes follow the
|
|
37
|
+
* user's active daisyUI theme — including dark mode and custom themes;
|
|
38
|
+
* - without daisyUI installed, they still render in daisyUI's light look.
|
|
39
|
+
*
|
|
40
|
+
* See docs/decisions/001-daisyui-adapter.md for why we map variables
|
|
41
|
+
* instead of @apply-ing daisyUI's component classes.
|
|
42
|
+
*/
|
|
43
|
+
export default defineAdapter({
|
|
44
|
+
name: "daisyui",
|
|
45
|
+
/* the --ui-* tokens are var() aliases of daisyUI's theme variables; re-declare
|
|
46
|
+
them on every [data-theme] element so nested/switched themes re-resolve */
|
|
47
|
+
rootSelector: ":root, [data-theme]",
|
|
48
|
+
/* dark mode is handled by daisyUI's own themes, not by Uniskin */
|
|
49
|
+
darkTokens: {},
|
|
50
|
+
tokens: {
|
|
51
|
+
"--ui-primary": "var(--color-primary, oklch(45% 0.24 277.023))",
|
|
52
|
+
"--ui-primary-fg": "var(--color-primary-content, oklch(93% 0.034 272.788))",
|
|
53
|
+
"--ui-secondary": "var(--color-secondary, oklch(65% 0.241 354.308))",
|
|
54
|
+
"--ui-secondary-fg": "var(--color-secondary-content, oklch(94% 0.028 342.258))",
|
|
55
|
+
"--ui-success": "var(--color-success, oklch(76% 0.177 163.223))",
|
|
56
|
+
"--ui-success-fg": "var(--color-success-content, oklch(37% 0.077 168.94))",
|
|
57
|
+
"--ui-warning": "var(--color-warning, oklch(82% 0.189 84.429))",
|
|
58
|
+
"--ui-warning-fg": "var(--color-warning-content, oklch(41% 0.112 45.904))",
|
|
59
|
+
"--ui-danger": "var(--color-error, oklch(71% 0.194 13.428))",
|
|
60
|
+
"--ui-danger-fg": "var(--color-error-content, oklch(27% 0.105 12.094))",
|
|
61
|
+
/* daisyUI's bright intent colours are too light to read as text or focus
|
|
62
|
+
rings on a light page: use a darkened mix (against base-content) wherever
|
|
63
|
+
the intent colour is the foreground. Fills keep daisyUI's exact colours. */
|
|
64
|
+
"--ui-secondary-text": "color-mix(in oklab, var(--ui-secondary) 80%, var(--ui-surface-fg))",
|
|
65
|
+
"--ui-success-text": "color-mix(in oklab, var(--ui-success) 55%, var(--ui-surface-fg))",
|
|
66
|
+
"--ui-danger-text": "color-mix(in oklab, var(--ui-danger) 70%, var(--ui-surface-fg))",
|
|
67
|
+
"--ui-neutral": "var(--color-neutral, oklch(14% 0.005 285.823))",
|
|
68
|
+
"--ui-neutral-fg": "var(--color-neutral-content, oklch(92% 0.004 286.32))",
|
|
69
|
+
"--ui-neutral-soft": "var(--color-base-200, oklch(98% 0 0))",
|
|
70
|
+
"--ui-neutral-soft-fg": "var(--color-base-content, oklch(21% 0.006 285.885))",
|
|
71
|
+
"--ui-surface": "var(--color-base-100, oklch(100% 0 0))",
|
|
72
|
+
"--ui-surface-fg": "var(--color-base-content, oklch(21% 0.006 285.885))",
|
|
73
|
+
"--ui-surface-muted": "var(--color-base-200, oklch(98% 0 0))",
|
|
74
|
+
"--ui-border": "var(--color-base-300, oklch(95% 0 0))",
|
|
75
|
+
"--ui-ring": "var(--color-primary, oklch(45% 0.24 277.023))",
|
|
76
|
+
"--ui-radius": "var(--radius-field, 0.25rem)",
|
|
77
|
+
},
|
|
78
|
+
components: {
|
|
79
|
+
input: { base: singleLine, sizes: fieldSizes },
|
|
80
|
+
textarea: { base: field },
|
|
81
|
+
select: { base: singleLine, sizes: fieldSizes },
|
|
82
|
+
checkbox: {
|
|
83
|
+
base: {
|
|
84
|
+
"--ui-check-size": "calc(var(--size-selector, 0.25rem) * 6)",
|
|
85
|
+
"border-radius": "var(--radius-selector, 0.5rem)",
|
|
86
|
+
"border-color": "color-mix(in oklab, var(--ui-border) 55%, var(--ui-surface-fg))",
|
|
87
|
+
},
|
|
88
|
+
sizes: {
|
|
89
|
+
sm: { "--ui-check-size": "calc(var(--size-selector, 0.25rem) * 5)" },
|
|
90
|
+
lg: { "--ui-check-size": "calc(var(--size-selector, 0.25rem) * 7)" },
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
radio: {
|
|
94
|
+
base: {
|
|
95
|
+
"--ui-radio-size": "calc(var(--size-selector, 0.25rem) * 6)",
|
|
96
|
+
},
|
|
97
|
+
sizes: {
|
|
98
|
+
sm: { "--ui-radio-size": "calc(var(--size-selector, 0.25rem) * 5)" },
|
|
99
|
+
lg: { "--ui-radio-size": "calc(var(--size-selector, 0.25rem) * 7)" },
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
switch: {
|
|
103
|
+
/* daisyUI toggle: sized from --size-selector like checkbox/radio; the off
|
|
104
|
+
track stays the default >= 3:1 grey rather than 20% base-content. */
|
|
105
|
+
base: {
|
|
106
|
+
"--ui-switch-size": "calc(var(--size-selector, 0.25rem) * 6)",
|
|
107
|
+
},
|
|
108
|
+
sizes: {
|
|
109
|
+
sm: { "--ui-switch-size": "calc(var(--size-selector, 0.25rem) * 5)" },
|
|
110
|
+
lg: { "--ui-switch-size": "calc(var(--size-selector, 0.25rem) * 7)" },
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
/* daisyUI fieldset: tighter gap, semibold label, hint in softened base-content */
|
|
114
|
+
field: { base: { "--ui-field-gap": "0.25rem" } },
|
|
115
|
+
"field-label": { base: { "font-weight": "600" } },
|
|
116
|
+
card: {
|
|
117
|
+
base: {
|
|
118
|
+
"border-radius": "var(--radius-box, 1rem)",
|
|
119
|
+
"box-shadow": "0 1px 3px rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
"card-header": { base: { "border-bottom": "0", "padding-bottom": "0" } },
|
|
123
|
+
"card-footer": { base: { "background-color": "transparent", "border-top": "0" } },
|
|
124
|
+
badge: {
|
|
125
|
+
base: {
|
|
126
|
+
height: "calc(var(--size-selector, 0.25rem) * 6)",
|
|
127
|
+
"border-radius": "var(--radius-selector, 0.5rem)",
|
|
128
|
+
"font-size": "0.875rem",
|
|
129
|
+
padding: "0 0.5rem",
|
|
130
|
+
},
|
|
131
|
+
sizes: {
|
|
132
|
+
sm: { height: "calc(var(--size-selector, 0.25rem) * 5)", "font-size": "0.75rem" },
|
|
133
|
+
lg: { height: "calc(var(--size-selector, 0.25rem) * 7)", "font-size": "1rem" },
|
|
134
|
+
},
|
|
135
|
+
},
|
|
136
|
+
alert: {
|
|
137
|
+
base: {
|
|
138
|
+
"border-radius": "var(--radius-box, 1rem)",
|
|
139
|
+
"background-color": "var(--ui-surface-muted)",
|
|
140
|
+
color: "var(--ui-surface-fg)",
|
|
141
|
+
"border-color": "var(--ui-border)",
|
|
142
|
+
"font-size": "0.875rem",
|
|
143
|
+
},
|
|
144
|
+
intents: {
|
|
145
|
+
primary: alertIntent,
|
|
146
|
+
secondary: alertIntent,
|
|
147
|
+
success: alertIntent,
|
|
148
|
+
warning: alertIntent,
|
|
149
|
+
danger: alertIntent,
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
"modal-box": {
|
|
153
|
+
base: {
|
|
154
|
+
"border-radius": "var(--radius-box, 1rem)",
|
|
155
|
+
"box-shadow": "0 25px 50px -12px rgb(0 0 0 / 0.25)",
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
button: {
|
|
159
|
+
base: {
|
|
160
|
+
/* daisyUI btn: semibold, snappy press animation */
|
|
161
|
+
"font-weight": "600",
|
|
162
|
+
height: "calc(var(--size-field, 0.25rem) * 10)",
|
|
163
|
+
padding: "0 1rem",
|
|
164
|
+
transition: "background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease",
|
|
165
|
+
"&:hover": {
|
|
166
|
+
"background-color": "color-mix(in oklab, var(--ui-c) 90%, black)",
|
|
167
|
+
"border-color": "color-mix(in oklab, var(--ui-c) 90%, black)",
|
|
168
|
+
},
|
|
169
|
+
"&:active": {
|
|
170
|
+
transform: "scale(0.97)",
|
|
171
|
+
},
|
|
172
|
+
"&:focus-visible": {
|
|
173
|
+
outline: "2px solid var(--ui-c-text)",
|
|
174
|
+
"outline-offset": "2px",
|
|
175
|
+
},
|
|
176
|
+
},
|
|
177
|
+
styles: {
|
|
178
|
+
/* daisyUI btn-outline: colored border + text, hover fills and
|
|
179
|
+
inverts to the intent's content color */
|
|
180
|
+
outline: {
|
|
181
|
+
"background-color": "transparent",
|
|
182
|
+
color: "var(--ui-c-text)",
|
|
183
|
+
"border-color": "var(--ui-c)",
|
|
184
|
+
"&:hover": {
|
|
185
|
+
"background-color": "var(--ui-c)",
|
|
186
|
+
"border-color": "var(--ui-c)",
|
|
187
|
+
color: "var(--ui-on-c)",
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
/* daisyUI btn-ghost */
|
|
191
|
+
ghost: {
|
|
192
|
+
"background-color": "transparent",
|
|
193
|
+
"border-color": "transparent",
|
|
194
|
+
color: "var(--ui-c-text)",
|
|
195
|
+
"&:hover": {
|
|
196
|
+
"background-color": "color-mix(in oklab, var(--ui-c) 20%, transparent)",
|
|
197
|
+
"border-color": "transparent",
|
|
198
|
+
},
|
|
199
|
+
},
|
|
200
|
+
/* btn-soft (daisyUI 5.4+) */
|
|
201
|
+
soft: {
|
|
202
|
+
"background-color": "color-mix(in oklab, var(--ui-c) 12%, var(--ui-surface))",
|
|
203
|
+
"border-color": "transparent",
|
|
204
|
+
color: "var(--ui-c-text)",
|
|
205
|
+
"&:hover": {
|
|
206
|
+
"background-color": "var(--ui-c)",
|
|
207
|
+
"border-color": "var(--ui-c)",
|
|
208
|
+
color: "var(--ui-on-c)",
|
|
209
|
+
},
|
|
210
|
+
},
|
|
211
|
+
},
|
|
212
|
+
sizes: {
|
|
213
|
+
sm: {
|
|
214
|
+
height: "calc(var(--size-field, 0.25rem) * 8)",
|
|
215
|
+
padding: "0 0.75rem",
|
|
216
|
+
"font-size": "0.75rem",
|
|
217
|
+
},
|
|
218
|
+
lg: {
|
|
219
|
+
height: "calc(var(--size-field, 0.25rem) * 12)",
|
|
220
|
+
padding: "0 1.5rem",
|
|
221
|
+
"font-size": "1.125rem",
|
|
222
|
+
},
|
|
223
|
+
},
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
});
|
|
227
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,oFAAoF;AACpF,MAAM,KAAK,GAAG;IACZ,cAAc,EAAE,oBAAoB;IACpC,cAAc,EACZ,oFAAoF;IACtF,SAAS,EAAE,EAAE;IACb,iBAAiB,EAAE;QACjB,OAAO,EAAE,4BAA4B;QACrC,gBAAgB,EAAE,KAAK;QACvB,YAAY,EAAE,MAAM;QACpB,cAAc,EACZ,oFAAoF;KACvF;CACF,CAAC;AACF,MAAM,UAAU,GAA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EAAE,aAAa;iBACzB;gBACD,iBAAiB,EAAE;oBACjB,OAAO,EAAE,4BAA4B;oBACrC,gBAAgB,EAAE,KAAK;iBACxB;aACF;YACD,MAAM,EAAE;gBACN;2DAC2C;gBAC3C,OAAO,EAAE;oBACP,kBAAkB,EAAE,aAAa;oBACjC,KAAK,EAAE,kBAAkB;oBACzB,cAAc,EAAE,aAAa;oBAC7B,SAAS,EAAE;wBACT,kBAAkB,EAAE,aAAa;wBACjC,cAAc,EAAE,aAAa;wBAC7B,KAAK,EAAE,gBAAgB;qBACxB;iBACF;gBACD,uBAAuB;gBACvB,KAAK,EAAE;oBACL,kBAAkB,EAAE,aAAa;oBACjC,cAAc,EAAE,aAAa;oBAC7B,KAAK,EAAE,kBAAkB;oBACzB,SAAS,EAAE;wBACT,kBAAkB,EAAE,mDAAmD;wBACvE,cAAc,EAAE,aAAa;qBAC9B;iBACF;gBACD,6BAA6B;gBAC7B,IAAI,EAAE;oBACJ,kBAAkB,EAAE,yDAAyD;oBAC7E,cAAc,EAAE,aAAa;oBAC7B,KAAK,EAAE,kBAAkB;oBACzB,SAAS,EAAE;wBACT,kBAAkB,EAAE,aAAa;wBACjC,cAAc,EAAE,aAAa;wBAC7B,KAAK,EAAE,gBAAgB;qBACxB;iBACF;aACF;YACD,KAAK,EAAE;gBACL,EAAE,EAAE;oBACF,MAAM,EAAE,sCAAsC;oBAC9C,OAAO,EAAE,WAAW;oBACpB,WAAW,EAAE,SAAS;iBACvB;gBACD,EAAE,EAAE;oBACF,MAAM,EAAE,uCAAuC;oBAC/C,OAAO,EAAE,UAAU;oBACnB,WAAW,EAAE,UAAU;iBACxB;aACF;SACF;KACF;CACF,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,58 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniskin/daisyui",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "daisyUI visual style adapter for Uniskin — uses live daisyUI theme vars when present",
|
|
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
|
+
"daisyui",
|
|
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-daisyui"
|
|
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
|
+
"daisyui": "^5.0.0",
|
|
41
|
+
"tailwindcss": "^4.3.3",
|
|
42
|
+
"uniskin": ">=0.1.0 <1.0.0"
|
|
43
|
+
},
|
|
44
|
+
"peerDependenciesMeta": {
|
|
45
|
+
"daisyui": {
|
|
46
|
+
"optional": true
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"tailwindcss": "^4.3.5",
|
|
51
|
+
"typescript": "^5.9.3",
|
|
52
|
+
"uniskin": "0.3.0"
|
|
53
|
+
},
|
|
54
|
+
"scripts": {
|
|
55
|
+
"build": "tsc -p tsconfig.json",
|
|
56
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
57
|
+
}
|
|
6
58
|
}
|