@shuriken-ui/tailwind 4.0.0-alpha.5 → 4.0.0-alpha.6

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.
@@ -3,97 +3,41 @@
3
3
  @utility nui-select-wrapper {
4
4
  @apply relative;
5
5
 
6
- .nui-select-label, .nui-label-float {
6
+ .nui-select-label, .nui-select-label-float-label {
7
7
  @apply nui-label;
8
8
  }
9
9
 
10
10
  &:not(.nui-select-loading) {
11
- .nui-select ~ .nui-label-float {
11
+ .nui-select ~ .nui-select-label-float-label {
12
12
  @apply text-transparent;
13
13
  }
14
14
  }
15
15
 
16
- &:not(.nui-has-icon).nui-select-sm {
16
+ &:not(.nui-select-has-icon).nui-select-sm {
17
17
  .nui-select {
18
18
  @apply h-8 py-1 text-xs leading-4 ps-2 pe-7;
19
19
  }
20
20
  }
21
21
 
22
- &:not(.nui-has-icon).nui-select-md {
22
+ &:not(.nui-select-has-icon).nui-select-md {
23
23
  .nui-select {
24
24
  @apply h-10 py-2 text-sm leading-5 ps-3 pe-8;
25
25
  }
26
26
  }
27
27
 
28
- &:not(.nui-has-icon).nui-select-lg {
28
+ &:not(.nui-select-has-icon).nui-select-lg {
29
29
  .nui-select {
30
30
  @apply h-12 py-2 text-sm leading-5 ps-4 pe-9;
31
31
  }
32
32
  }
33
33
 
34
- &:not(.nui-has-icon).nui-select-xl {
34
+ &:not(.nui-select-has-icon).nui-select-xl {
35
35
  .nui-select {
36
36
  @apply h-14 py-2 text-base leading-5 ps-4 pe-9;
37
37
  }
38
38
  }
39
-
40
- &.nui-select-label-float:not(.nui-has-icon).nui-select-sm {
41
- .nui-label-float {
42
- @apply start-3 -ms-3 -mt-7 text-xs;
43
- }
44
-
45
- .nui-select:focus-visible ~ .nui-label-float {
46
- @apply !-ms-3 !-mt-7;
47
- }
48
-
49
- .nui-select ~ .nui-label-float {
50
- @apply ms-0 mt-0;
51
- }
52
- }
53
-
54
- &.nui-select-label-float:not(.nui-has-icon).nui-select-md {
55
- .nui-label-float {
56
- @apply start-3 -ms-3 -mt-8 text-xs;
57
- }
58
-
59
- .nui-select:focus-visible ~ .nui-label-float {
60
- @apply !-ms-3 !-mt-8 !text-xs;
61
- }
62
-
63
- .nui-select ~ .nui-label-float {
64
- @apply ms-0 mt-0 text-[0.825rem];
65
- }
66
- }
67
-
68
- &.nui-select-label-float:not(.nui-has-icon).nui-select-lg {
69
- .nui-label-float {
70
- @apply start-3 -ms-3 -mt-9 text-xs;
71
- }
72
-
73
- .nui-select:focus-visible ~ .nui-label-float {
74
- @apply !-ms-3 !-mt-9 !text-xs;
75
- }
76
-
77
- .nui-select ~ .nui-label-float {
78
- @apply ms-0 mt-0 text-[0.825rem];
79
- }
80
- }
81
-
82
- &.nui-select-label-float:not(.nui-has-icon).nui-select-xl {
83
- .nui-label-float {
84
- @apply start-3 -ms-3 -mt-10 text-xs;
85
- }
86
-
87
- .nui-select:focus-visible ~ .nui-label-float {
88
- @apply !-ms-3 !-mt-10 !text-xs;
89
- }
90
-
91
- .nui-select ~ .nui-label-float {
92
- @apply ms-0 mt-0 text-[0.825rem];
93
- }
94
- }
95
39
  }
96
- @utility nui-label-float {
40
+ @utility nui-select-label-float-label {
97
41
  @apply h-5 absolute inline-flex items-center select-none pointer-events-none;
98
42
  @apply font-sans text-primary-500 leading-none;
99
43
  @apply transition-all duration-300;
@@ -110,7 +54,7 @@
110
54
  @apply nui-focus appearance-none w-full font-sans disabled:cursor-not-allowed disabled:opacity-75;
111
55
  @apply transition-all duration-300;
112
56
 
113
- &:focus-visible ~ .nui-label-float {
57
+ &:focus-visible ~ .nui-select-label-float-label {
114
58
  @apply !text-primary-500 dark:!text-primary-500;
115
59
  }
116
60
 
@@ -126,10 +70,10 @@
126
70
  @apply cursor-not-allowed opacity-75;
127
71
  }
128
72
  }
129
- @utility nui-select-placeload {
73
+ @utility nui-select-placeload-wrapper {
130
74
  @apply absolute start-0 top-0 flex w-full items-center px-4;
131
75
 
132
- .nui-placeload {
76
+ .nui-select-placeload {
133
77
  @apply h-3 w-full max-w-[75%] rounded;
134
78
  }
135
79
  }
@@ -173,7 +117,7 @@
173
117
  @apply pb-1 text-xs;
174
118
  }
175
119
 
176
- .nui-label-float {
120
+ .nui-select-label-float-label {
177
121
  @apply top-1.5;
178
122
  }
179
123
 
@@ -185,7 +129,7 @@
185
129
  }
186
130
  }
187
131
 
188
- .nui-select-placeload {
132
+ .nui-select-placeload-wrapper {
189
133
  @apply h-8;
190
134
  }
191
135
  }
@@ -198,7 +142,7 @@
198
142
  @apply pb-1 text-[0.825rem];
199
143
  }
200
144
 
201
- .nui-label-float {
145
+ .nui-select-label-float-label {
202
146
  @apply top-2.5;
203
147
  }
204
148
 
@@ -210,7 +154,7 @@
210
154
  }
211
155
  }
212
156
 
213
- .nui-select-placeload {
157
+ .nui-select-placeload-wrapper {
214
158
  @apply h-10;
215
159
  }
216
160
  }
@@ -223,7 +167,7 @@
223
167
  @apply pb-1 text-sm;
224
168
  }
225
169
 
226
- .nui-label-float {
170
+ .nui-select-label-float-label {
227
171
  @apply top-3.5;
228
172
  }
229
173
 
@@ -235,7 +179,7 @@
235
179
  }
236
180
  }
237
181
 
238
- .nui-select-placeload {
182
+ .nui-select-placeload-wrapper {
239
183
  @apply h-12;
240
184
  }
241
185
  }
@@ -248,7 +192,7 @@
248
192
  @apply pb-1 text-sm;
249
193
  }
250
194
 
251
- .nui-label-float {
195
+ .nui-select-label-float-label {
252
196
  @apply top-[1.1rem];
253
197
  }
254
198
 
@@ -260,7 +204,7 @@
260
204
  }
261
205
  }
262
206
 
263
- .nui-select-placeload {
207
+ .nui-select-placeload-wrapper {
264
208
  @apply h-14;
265
209
  }
266
210
  }
@@ -307,7 +251,7 @@
307
251
  @apply !text-transparent placeholder:!text-transparent dark:placeholder:!text-transparent;
308
252
  }
309
253
 
310
- .nui-select ~ .nui-label-float {
254
+ .nui-select ~ .nui-select-label-float-label {
311
255
  @apply text-transparent;
312
256
  }
313
257
 
@@ -329,75 +273,135 @@
329
273
  @apply !text-danger-500 dark:!text-danger-500;
330
274
  }
331
275
  }
332
- @utility nui-has-icon {
333
- .nui-select {
334
- @apply h-8 py-1 text-xs leading-4 pe-7 ps-8;
276
+ @utility nui-select-has-icon {
277
+ &.nui-select-sm {
278
+ .nui-select {
279
+ @apply h-8 py-1 text-xs leading-4 pe-7 ps-8;
280
+ }
335
281
  }
336
- }
337
- @utility nui-has-icon {
338
- .nui-select {
339
- @apply h-10 py-2 text-sm leading-5 pe-8 ps-10;
282
+ &.nui-select-md {
283
+ .nui-select {
284
+ @apply h-10 py-2 text-sm leading-5 pe-8 ps-10;
285
+ }
340
286
  }
341
- }
342
- @utility nui-has-icon {
343
- .nui-select {
344
- @apply h-12 py-2 text-sm leading-5 pe-9 ps-11;
287
+ &.nui-select-lg {
288
+ .nui-select {
289
+ @apply h-12 py-2 text-sm leading-5 pe-9 ps-11;
290
+ }
345
291
  }
346
- }
347
- @utility nui-has-icon {
348
- .nui-select {
349
- @apply h-14 py-2 text-base leading-5 pe-9 ps-12;
292
+ &.nui-select-xl {
293
+ .nui-select {
294
+ @apply h-14 py-2 text-base leading-5 pe-9 ps-12;
295
+ }
350
296
  }
351
297
  }
352
298
  @utility nui-select-label-float {
353
- .nui-label-float {
354
- @apply start-8 -ms-8 -mt-7 text-xs;
355
- }
299
+ &.nui-select-has-icon.nui-select-sm {
300
+ .nui-select-label-float-label {
301
+ @apply start-8 -ms-8 -mt-6 text-xs;
302
+ }
356
303
 
357
- .nui-select:focus-visible ~ .nui-label-float {
358
- @apply !-ms-8 !-mt-7;
359
- }
304
+ .nui-select:focus-visible ~ .nui-select-label-float-label {
305
+ @apply !-ms-8 !-mt-6;
306
+ }
360
307
 
361
- .nui-select ~ .nui-label-float {
362
- @apply ms-0 mt-0;
363
- }
364
- }
365
- @utility nui-select-label-float {
366
- .nui-label-float {
367
- @apply start-10 -ms-10 -mt-8 text-xs;
308
+ .nui-select ~ .nui-select-label-float-label {
309
+ @apply ms-0 mt-1;
310
+ }
368
311
  }
312
+ &.nui-select-has-icon.nui-select-md {
313
+ .nui-select-label-float-label {
314
+ @apply start-10 -ms-10 -mt-7 text-xs;
315
+ }
369
316
 
370
- .nui-select:focus-visible ~ .nui-label-float {
371
- @apply !-ms-10 !-mt-8 !text-xs;
372
- }
317
+ .nui-select:focus-visible ~ .nui-select-label-float-label {
318
+ @apply !-ms-10 !-mt-7 !text-xs;
319
+ }
373
320
 
374
- .nui-select ~ .nui-label-float {
375
- @apply ms-0 mt-0 text-[0.825rem];
321
+ .nui-select ~ .nui-select-label-float-label {
322
+ @apply ms-0 mt-1 text-[0.825rem];
323
+ }
376
324
  }
377
- }
378
- @utility nui-select-label-float {
379
- .nui-label-float {
380
- @apply start-11 -ms-10 -mt-9 text-xs;
325
+ &.nui-select-has-icon.nui-select-lg {
326
+ .nui-select-label-float-label {
327
+ @apply start-11 -ms-10 -mt-8 text-xs;
328
+ }
329
+
330
+ .nui-select:focus-visible ~ .nui-select-label-float-label {
331
+ @apply !-ms-10 !-mt-8 !text-xs;
332
+ }
333
+
334
+ .nui-select ~ .nui-select-label-float-label {
335
+ @apply ms-0 mt-1 text-[0.825rem];
336
+ }
381
337
  }
338
+ &.nui-select-has-icon.nui-select-xl {
339
+ .nui-select-label-float-label {
340
+ @apply start-[3.25rem] -ms-[3.25rem] -mt-9 text-xs;
341
+ }
342
+
343
+ .nui-select:focus-visible ~ .nui-select-label-float-label {
344
+ @apply !-ms-[3.25rem] !-mt-9 !text-xs;
345
+ }
382
346
 
383
- .nui-select:focus-visible ~ .nui-label-float {
384
- @apply !-ms-10 !-mt-9 !text-xs;
347
+ .nui-select ~ .nui-select-label-float-label {
348
+ @apply ms-0 mt-1 text-[0.825rem];
349
+ }
385
350
  }
386
351
 
387
- .nui-select ~ .nui-label-float {
388
- @apply ms-0 mt-0 text-[0.825rem];
352
+ &:not(.nui-select-has-icon).nui-select-sm {
353
+ .nui-select-label-float-label {
354
+ @apply start-3 -ms-3 -mt-6 text-xs;
355
+ }
356
+
357
+ .nui-select:focus-visible ~ .nui-select-label-float-label {
358
+ @apply !-ms-3 !-mt-6;
359
+ }
360
+
361
+ .nui-select ~ .nui-select-label-float-label {
362
+ @apply ms-0 mt-1;
363
+ }
389
364
  }
390
- }
391
- @utility nui-select-label-float {
392
- .nui-label-float {
393
- @apply start-[3.25rem] -ms-[3.25rem] -mt-10 text-xs;
365
+
366
+ &:not(.nui-select-has-icon).nui-select-md {
367
+ .nui-select-label-float-label {
368
+ @apply start-3 -ms-3 -mt-7 text-xs;
369
+ }
370
+
371
+ .nui-select:focus-visible ~ .nui-select-label-float-label {
372
+ @apply !-ms-3 !-mt-7 !text-xs;
373
+ }
374
+
375
+ .nui-select ~ .nui-select-label-float-label {
376
+ @apply ms-0 mt-1 text-[0.825rem];
377
+ }
394
378
  }
395
379
 
396
- .nui-select:focus-visible ~ .nui-label-float {
397
- @apply !-ms-[3.25rem] !-mt-10 !text-xs;
380
+ &:not(.nui-select-has-icon).nui-select-lg {
381
+ .nui-select-label-float-label {
382
+ @apply start-3 -ms-3 -mt-8 text-xs;
383
+ }
384
+
385
+ .nui-select:focus-visible ~ .nui-select-label-float-label {
386
+ @apply !-ms-3 !-mt-8 !text-xs;
387
+ }
388
+
389
+ .nui-select ~ .nui-select-label-float-label {
390
+ @apply ms-0 mt-1 text-[0.825rem];
391
+ }
398
392
  }
399
393
 
400
- .nui-select ~ .nui-label-float {
401
- @apply ms-0 mt-0 text-[0.825rem];
394
+ &:not(.nui-select-has-icon).nui-select-xl {
395
+ .nui-select-label-float-label {
396
+ @apply start-3 -ms-3 -mt-9 text-xs;
397
+ }
398
+
399
+ .nui-select:focus-visible ~ .nui-select-label-float-label {
400
+ @apply !-ms-3 !-mt-9 !text-xs;
401
+ }
402
+
403
+ .nui-select ~ .nui-select-label-float-label {
404
+ @apply ms-0 mt-1 text-[0.825rem];
405
+ }
402
406
  }
403
407
  }
@@ -22,10 +22,11 @@
22
22
  @apply w-[6px] h-[6px];
23
23
  }
24
24
 
25
+ &::-webkit-scrollbar-thumb {
26
+ @apply rounded-lg bg-transparent duration-300 transition-all;
27
+ }
28
+
25
29
  &:hover::-webkit-scrollbar-thumb {
26
30
  @apply bg-black/20 dark:bg-white/20;
27
31
  }
28
32
  }
29
- @utility undefined {
30
- @apply rounded-lg bg-transparent duration-300 transition-all;
31
- }
package/lib/css/snack.css CHANGED
@@ -19,7 +19,7 @@
19
19
  @apply text-muted-600 dark:text-muted-300;
20
20
  }
21
21
  @utility nui-snack-xs {
22
- &:not(.nui-has-media) {
22
+ &:not(.nui-snack-has-media) {
23
23
  @apply !ps-2;
24
24
  }
25
25
 
@@ -41,7 +41,7 @@
41
41
  }
42
42
  }
43
43
  @utility nui-snack-sm {
44
- &:not(.nui-has-media) {
44
+ &:not(.nui-snack-has-media) {
45
45
  @apply !ps-3;
46
46
  }
47
47
 
@@ -63,7 +63,7 @@
63
63
  }
64
64
  }
65
65
  @utility nui-snack-md {
66
- &:not(.nui-has-media) {
66
+ &:not(.nui-snack-has-media) {
67
67
  @apply !ps-4;
68
68
  }
69
69
 
@@ -3,23 +3,23 @@
3
3
  @utility nui-textarea-wrapper {
4
4
  @apply relative;
5
5
 
6
- .nui-textarea-label, .nui-label-float {
6
+ .nui-textarea-label, .nui-textarea-label-float-label {
7
7
  @apply nui-label;
8
8
  }
9
9
 
10
10
  &:not(.nui-textarea-loading) {
11
- .nui-textarea:placeholder-shown ~ .nui-label-float {
11
+ .nui-textarea:placeholder-shown ~ .nui-textarea-label-float-label {
12
12
  @apply text-muted-300 dark:text-muted-600;
13
13
  }
14
14
  }
15
15
 
16
- &:not(.nui-has-addon) {
16
+ &:not(.nui-textarea-has-addon) {
17
17
  .nui-textarea {
18
18
  @apply p-2;
19
19
  }
20
20
  }
21
21
  }
22
- @utility nui-label-float {
22
+ @utility nui-textarea-label-float-label {
23
23
  @apply h-5 absolute inline-flex items-center select-none pointer-events-none;
24
24
  @apply font-sans text-primary-500 leading-none;
25
25
  @apply transition-all duration-300;
@@ -30,7 +30,7 @@
30
30
  @utility nui-textarea {
31
31
  @apply nui-focus w-full enabled:cursor-text cursor-not-allowed;
32
32
 
33
- &:focus-visible ~ .nui-label-float {
33
+ &:focus-visible ~ .nui-textarea-label-float-label {
34
34
  @apply !text-primary-500 dark:!text-primary-500;
35
35
  }
36
36
 
@@ -39,10 +39,10 @@
39
39
  @apply transition-colors duration-300;
40
40
  }
41
41
  }
42
- @utility nui-textarea-placeload {
42
+ @utility nui-textarea-placeload-wrapper {
43
43
  @apply absolute start-0 top-4 flex h-full w-full flex-col space-y-2 px-3;
44
44
 
45
- .nui-placeload {
45
+ .nui-textarea-placeload {
46
46
  @apply h-3 w-full rounded;
47
47
 
48
48
  &:first-child {
@@ -126,7 +126,7 @@
126
126
  @apply !text-transparent placeholder:!text-transparent dark:placeholder:!text-transparent;
127
127
  }
128
128
 
129
- .nui-textarea:placeholder-shown ~ .nui-label-float {
129
+ .nui-textarea:placeholder-shown ~ .nui-textarea-label-float {
130
130
  @apply text-transparent;
131
131
  }
132
132
  }
@@ -146,27 +146,33 @@
146
146
  }
147
147
  }
148
148
  @utility nui-textarea-sm {
149
- @apply min-h-[2rem] text-xs;
149
+ .nui-textarea {
150
+ @apply min-h-[2rem] text-xs;
151
+ }
150
152
 
151
- .nui-textarea-label {
153
+ .nui-textarea-label, .nui-textarea-label-float-label {
152
154
  @apply pb-1 text-xs;
153
155
  }
154
156
  }
155
157
  @utility nui-textarea-md {
156
- @apply min-h-[2.5rem] text-sm;
158
+ .nui-textarea {
159
+ @apply min-h-[2.5rem] text-sm;
160
+ }
157
161
 
158
- .nui-textarea-label {
162
+ .nui-textarea-label, .nui-textarea-label-float-label {
159
163
  @apply pb-1 text-sm;
160
164
  }
161
165
  }
162
166
  @utility nui-textarea-lg {
163
- @apply min-h-[3rem] text-sm;
167
+ .nui-textarea {
168
+ @apply min-h-[3rem] text-base;
169
+ }
164
170
 
165
- .nui-textarea-label {
166
- @apply pb-1 text-sm;
171
+ .nui-textarea-label, .nui-textarea-label-float-label {
172
+ @apply pb-1 text-base;
167
173
  }
168
174
  }
169
- @utility nui-has-addon {
175
+ @utility nui-textarea-has-addon {
170
176
  .nui-textarea {
171
177
  @apply px-2 pb-14 pt-2;
172
178
  }
@@ -187,41 +193,47 @@
187
193
  }
188
194
  }
189
195
  @utility nui-textarea-label-float {
190
- .nui-label-float {
191
- @apply start-3 -ms-3 -mt-7 text-xs;
192
- }
196
+ &.nui-textarea-sm {
197
+ .nui-textarea-label-float-label {
198
+ @apply start-3 -ms-3 -mt-5 text-xs;
199
+ }
193
200
 
194
- .nui-textarea:focus-visible ~ .nui-label-float {
195
- @apply !-ms-3 !-mt-6;
196
- }
201
+ .nui-textarea:focus-visible ~ .nui-textarea-label-float-label {
202
+ @apply !-ms-3 !-mt-5;
203
+ }
197
204
 
198
- .nui-textarea:placeholder-shown ~ .nui-label-float {
199
- @apply ms-0 mt-[0.35rem];
205
+ .nui-textarea:placeholder-shown ~ .nui-textarea-label-float-label {
206
+ @apply ms-0 mt-2;
207
+ }
200
208
  }
201
209
  }
202
210
  @utility nui-textarea-label-float {
203
- .nui-label-float {
204
- @apply start-3 -ms-3 -mt-8 text-xs;
205
- }
211
+ &.nui-textarea-md {
212
+ .nui-textarea-label-float-label {
213
+ @apply start-3 -ms-3 -mt-5 text-xs;
214
+ }
206
215
 
207
- .nui-textarea:focus-visible ~ .nui-label-float {
208
- @apply !-ms-3 !-mt-7 !text-xs;
209
- }
216
+ .nui-textarea:focus-visible ~ .nui-textarea-label-float-label {
217
+ @apply !-ms-3 !-mt-5 !text-xs;
218
+ }
210
219
 
211
- .nui-textarea:placeholder-shown ~ .nui-label-float {
212
- @apply ms-0 mt-2.5 text-[0.825rem];
220
+ .nui-textarea:placeholder-shown ~ .nui-textarea-label-float-label {
221
+ @apply ms-0 mt-2.5 text-[0.825rem];
222
+ }
213
223
  }
214
224
  }
215
225
  @utility nui-textarea-label-float {
216
- .nui-label-float {
217
- @apply start-3 -ms-3 -mt-8 text-xs;
218
- }
226
+ &.nui-textarea-lg {
227
+ .nui-textarea-label-float-label {
228
+ @apply start-3 -ms-3 -mt-5 text-xs;
229
+ }
219
230
 
220
- .nui-textarea:focus-visible ~ .nui-label-float {
221
- @apply !-ms-3 !-mt-7 !text-xs;
222
- }
231
+ .nui-textarea:focus-visible ~ .nui-textarea-label-float-label {
232
+ @apply !-ms-3 !-mt-5 !text-xs;
233
+ }
223
234
 
224
- .nui-textarea:placeholder-shown ~ .nui-label-float {
225
- @apply ms-0 mt-3 text-[0.825rem];
235
+ .nui-textarea:placeholder-shown ~ .nui-textarea-label-float-label {
236
+ @apply ms-0 mt-3 text-[0.825rem];
237
+ }
226
238
  }
227
239
  }
@@ -8,19 +8,19 @@
8
8
  @apply ms-[45%] rotate-[360deg];
9
9
  }
10
10
 
11
- .nui-theme-switch-input:not(:checked) ~ .nui-theme-switch-inner .nui-sun {
11
+ .nui-theme-switch-input:not(:checked) ~ .nui-theme-switch-inner .nui-theme-switch-sun {
12
12
  @apply block;
13
13
  }
14
14
 
15
- .nui-theme-switch-input:checked ~ .nui-theme-switch-inner .nui-sun {
15
+ .nui-theme-switch-input:checked ~ .nui-theme-switch-inner .nui-theme-switch-sun {
16
16
  @apply hidden;
17
17
  }
18
18
 
19
- .nui-theme-switch-input:not(:checked) ~ .nui-theme-switch-inner .nui-moon {
19
+ .nui-theme-switch-input:not(:checked) ~ .nui-theme-switch-inner .nui-theme-switch-moon {
20
20
  @apply hidden;
21
21
  }
22
22
 
23
- .nui-theme-switch-input:checked ~ .nui-theme-switch-inner .nui-moon {
23
+ .nui-theme-switch-input:checked ~ .nui-theme-switch-inner .nui-theme-switch-moon {
24
24
  @apply block;
25
25
  }
26
26
 
@@ -43,13 +43,13 @@
43
43
  @apply border border-muted-200 dark:border-muted-800;
44
44
  @apply transition-all duration-300;
45
45
  }
46
- @utility nui-sun {
46
+ @utility nui-theme-switch-sun {
47
47
  @apply pointer-events-none;
48
48
  @apply text-yellow-400 dark:text-yellow-400;
49
49
  @apply h-6 w-6;
50
50
  @apply transition-all duration-300;
51
51
  }
52
- @utility nui-moon {
52
+ @utility nui-theme-switch-moon {
53
53
  @apply pointer-events-none;
54
54
  @apply text-yellow-400 dark:text-yellow-400;
55
55
  @apply h-6 w-6;
@@ -6,26 +6,26 @@
6
6
  @apply focus-visible:outline-2 ring-2 ring-transparent ring-offset-muted-200 dark:ring-offset-muted-900;
7
7
  @apply transition-all duration-300;
8
8
 
9
- .nui-theme-toggle-input:not(:checked) ~ .nui-theme-toggle-inner .nui-sun {
9
+ .nui-theme-toggle-input:not(:checked) ~ .nui-theme-toggle-inner .nui-theme-toggle-sun {
10
10
  @apply -translate-y-1/2 opacity-100;
11
11
  }
12
12
 
13
- .nui-theme-toggle-input:checked ~ .nui-theme-toggle-inner .nui-sun {
13
+ .nui-theme-toggle-input:checked ~ .nui-theme-toggle-inner .nui-theme-toggle-sun {
14
14
  @apply translate-y-[-150%] opacity-0;
15
15
  }
16
16
 
17
- .nui-theme-toggle-input:not(:checked) ~ .nui-theme-toggle-inner .nui-moon {
17
+ .nui-theme-toggle-input:not(:checked) ~ .nui-theme-toggle-inner .nui-theme-toggle-moon {
18
18
  @apply translate-y-[-150%] opacity-0;
19
19
  }
20
20
 
21
- .nui-theme-toggle-input:checked ~ .nui-theme-toggle-inner .nui-moon {
21
+ .nui-theme-toggle-input:checked ~ .nui-theme-toggle-inner .nui-theme-toggle-moon {
22
22
  @apply -translate-y-1/2 opacity-100;
23
23
  }
24
24
 
25
25
  &:not(nui-theme-toggle-inverted) {
26
26
  @apply ring-offset-muted-500 dark:ring-offset-muted-900;
27
27
 
28
- .nui-toggle-inner {
28
+ .nui-theme-toggle-inner {
29
29
  @apply border border-white dark:border-muted-800;
30
30
  @apply bg-white dark:bg-muted-800;
31
31
  }
@@ -40,13 +40,13 @@
40
40
  @utility nui-theme-toggle-input {
41
41
  @apply absolute start-0 top-0 z-[2] h-full w-full cursor-pointer opacity-0;
42
42
  }
43
- @utility nui-sun {
43
+ @utility nui-theme-toggle-sun {
44
44
  @apply pointer-events-none absolute start-1/2 top-1/2 block -translate-y-1/2 translate-x-[-50%] rtl:translate-x-[50%];
45
45
  @apply h-5 w-5;
46
46
  @apply text-yellow-400 dark:text-yellow-400;
47
47
  @apply transition-all duration-300;
48
48
  }
49
- @utility nui-moon {
49
+ @utility nui-theme-toggle-moon {
50
50
  @apply pointer-events-none absolute start-1/2 top-1/2 block translate-x-[-50%] rtl:translate-x-[45%];
51
51
  @apply h-5 w-5;
52
52
  @apply text-yellow-400 dark:text-yellow-400;
@@ -55,7 +55,7 @@
55
55
  @utility nui-theme-toggle-inverted {
56
56
  @apply ring-offset-muted-500 dark:ring-offset-muted-400;
57
57
 
58
- .nui-toggle-inner {
58
+ .nui-theme-toggle-inner {
59
59
  @apply !bg-primary-700 dark:!bg-primary-700;
60
60
  }
61
61
  }