@cbrl/design 0.0.0-stage → 0.1.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.
Files changed (104) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +100 -2
  3. package/dist/components/alert-dialog.d.ts +14 -0
  4. package/dist/components/alert-dialog.js +82 -0
  5. package/dist/components/app-shell.d.ts +38 -0
  6. package/dist/components/app-shell.js +72 -0
  7. package/dist/components/auth-split-screen.d.ts +30 -0
  8. package/dist/components/auth-split-screen.js +45 -0
  9. package/dist/components/avatar.d.ts +11 -0
  10. package/dist/components/avatar.js +50 -0
  11. package/dist/components/badge.d.ts +9 -0
  12. package/dist/components/badge.js +27 -0
  13. package/dist/components/breadcrumb.d.ts +11 -0
  14. package/dist/components/breadcrumb.js +69 -0
  15. package/dist/components/button.d.ts +10 -0
  16. package/dist/components/button.js +47 -0
  17. package/dist/components/calendar.d.ts +7 -0
  18. package/dist/components/calendar.js +142 -0
  19. package/dist/components/card.d.ts +13 -0
  20. package/dist/components/card.js +57 -0
  21. package/dist/components/checkbox.d.ts +4 -0
  22. package/dist/components/checkbox.js +20 -0
  23. package/dist/components/collapsible.d.ts +5 -0
  24. package/dist/components/collapsible.js +23 -0
  25. package/dist/components/date-field.d.ts +31 -0
  26. package/dist/components/date-field.js +129 -0
  27. package/dist/components/dialog.d.ts +17 -0
  28. package/dist/components/dialog.js +95 -0
  29. package/dist/components/dropdown-menu.d.ts +29 -0
  30. package/dist/components/dropdown-menu.js +127 -0
  31. package/dist/components/empty-state.d.ts +32 -0
  32. package/dist/components/empty-state.js +61 -0
  33. package/dist/components/field.d.ts +25 -0
  34. package/dist/components/field.js +121 -0
  35. package/dist/components/highlighted-textarea.d.ts +6 -0
  36. package/dist/components/highlighted-textarea.js +68 -0
  37. package/dist/components/input-group.d.ts +8 -0
  38. package/dist/components/input-group.js +28 -0
  39. package/dist/components/input.d.ts +3 -0
  40. package/dist/components/input.js +13 -0
  41. package/dist/components/label.d.ts +4 -0
  42. package/dist/components/label.js +14 -0
  43. package/dist/components/list.d.ts +174 -0
  44. package/dist/components/list.js +281 -0
  45. package/dist/components/main.d.ts +10 -0
  46. package/dist/components/main.js +36 -0
  47. package/dist/components/pagination.d.ts +25 -0
  48. package/dist/components/pagination.js +104 -0
  49. package/dist/components/popover.d.ts +6 -0
  50. package/dist/components/popover.js +28 -0
  51. package/dist/components/radio-group.d.ts +5 -0
  52. package/dist/components/radio-group.js +27 -0
  53. package/dist/components/scroll-area.d.ts +5 -0
  54. package/dist/components/scroll-area.js +35 -0
  55. package/dist/components/select.d.ts +15 -0
  56. package/dist/components/select.js +95 -0
  57. package/dist/components/separator.d.ts +4 -0
  58. package/dist/components/separator.js +16 -0
  59. package/dist/components/setting-row.d.ts +8 -0
  60. package/dist/components/setting-row.js +36 -0
  61. package/dist/components/settings-section.d.ts +7 -0
  62. package/dist/components/settings-section.js +36 -0
  63. package/dist/components/sheet.d.ts +14 -0
  64. package/dist/components/sheet.js +89 -0
  65. package/dist/components/sidebar-core.d.ts +33 -0
  66. package/dist/components/sidebar-core.js +220 -0
  67. package/dist/components/sidebar-menu.d.ts +38 -0
  68. package/dist/components/sidebar-menu.js +168 -0
  69. package/dist/components/sidebar.d.ts +3 -0
  70. package/dist/components/skeleton.d.ts +2 -0
  71. package/dist/components/skeleton.js +11 -0
  72. package/dist/components/sonner.d.ts +3 -0
  73. package/dist/components/sonner.js +31 -0
  74. package/dist/components/stepper.d.ts +8 -0
  75. package/dist/components/stepper.js +58 -0
  76. package/dist/components/switch.d.ts +6 -0
  77. package/dist/components/switch.js +19 -0
  78. package/dist/components/table.d.ts +10 -0
  79. package/dist/components/table.js +65 -0
  80. package/dist/components/tabs.d.ts +7 -0
  81. package/dist/components/tabs.js +35 -0
  82. package/dist/components/textarea.d.ts +3 -0
  83. package/dist/components/textarea.js +12 -0
  84. package/dist/components/tooltip.d.ts +7 -0
  85. package/dist/components/tooltip.js +35 -0
  86. package/dist/components/typography.d.ts +9 -0
  87. package/dist/components/typography.js +45 -0
  88. package/dist/components/user-menu.d.ts +24 -0
  89. package/dist/components/user-menu.js +48 -0
  90. package/dist/globals.css +60 -0
  91. package/dist/hooks/use-mobile.d.ts +1 -0
  92. package/dist/hooks/use-mobile.js +17 -0
  93. package/dist/index.d.ts +48 -0
  94. package/dist/index.js +47 -0
  95. package/dist/lib/cn.d.ts +2 -0
  96. package/dist/lib/cn.js +7 -0
  97. package/dist/lib/css-vars.js +5 -0
  98. package/dist/lib/date.js +38 -0
  99. package/dist/lib/nav.d.ts +15 -0
  100. package/dist/lib/nav.js +11 -0
  101. package/dist/lib/toaster-theme.js +5 -0
  102. package/dist/shadcn.css +635 -0
  103. package/dist/tokens.css +160 -0
  104. package/package.json +85 -3
@@ -0,0 +1,635 @@
1
+ /*
2
+ * Vendored from shadcn@4.23.0 (dist/tailwind.css), MIT License,
3
+ * Copyright (c) 2023 shadcn. https://github.com/shadcn-ui/ui
4
+ * Shipped inline so consumers do not install the shadcn CLI to get this file.
5
+ */
6
+
7
+ @theme inline {
8
+ @keyframes accordion-down {
9
+ from {
10
+ height: 0;
11
+ }
12
+ to {
13
+ height: var(--radix-accordion-content-height, var(--accordion-panel-height, auto));
14
+ }
15
+ }
16
+
17
+ @keyframes accordion-up {
18
+ from {
19
+ height: var(--radix-accordion-content-height, var(--accordion-panel-height, auto));
20
+ }
21
+ to {
22
+ height: 0;
23
+ }
24
+ }
25
+ }
26
+
27
+ /* Custom variants */
28
+ @custom-variant data-open {
29
+ &:where([data-state='open']),
30
+ &:where([data-open]:not([data-open='false'])) {
31
+ @slot;
32
+ }
33
+ }
34
+
35
+ @custom-variant data-closed {
36
+ &:where([data-state='closed']),
37
+ &:where([data-closed]:not([data-closed='false'])) {
38
+ @slot;
39
+ }
40
+ }
41
+
42
+ @custom-variant data-checked {
43
+ &:where([data-state='checked']),
44
+ &:where([data-checked]:not([data-checked='false'])) {
45
+ @slot;
46
+ }
47
+ }
48
+
49
+ @custom-variant data-unchecked {
50
+ &:where([data-state='unchecked']),
51
+ &:where([data-unchecked]:not([data-unchecked='false'])) {
52
+ @slot;
53
+ }
54
+ }
55
+
56
+ @custom-variant data-selected {
57
+ &:where([data-selected='true']) {
58
+ @slot;
59
+ }
60
+ }
61
+
62
+ @custom-variant data-disabled {
63
+ &:where([data-disabled='true']),
64
+ &:where([data-disabled]:not([data-disabled='false'])) {
65
+ @slot;
66
+ }
67
+ }
68
+
69
+ @custom-variant data-active {
70
+ &:where([data-state='active']),
71
+ &:where([data-active]:not([data-active='false'])) {
72
+ @slot;
73
+ }
74
+ }
75
+
76
+ @custom-variant data-horizontal {
77
+ &:where([data-orientation='horizontal']) {
78
+ @slot;
79
+ }
80
+ }
81
+
82
+ @custom-variant data-vertical {
83
+ &:where([data-orientation='vertical']) {
84
+ @slot;
85
+ }
86
+ }
87
+
88
+ @utility no-scrollbar {
89
+ -ms-overflow-style: none;
90
+ scrollbar-width: none;
91
+
92
+ &::-webkit-scrollbar {
93
+ display: none;
94
+ }
95
+ }
96
+
97
+ /* scroll-fade */
98
+ @property --scroll-fade-t {
99
+ syntax: '<length-percentage>';
100
+ inherits: false;
101
+ initial-value: 0px;
102
+ }
103
+ @property --scroll-fade-b {
104
+ syntax: '<length-percentage>';
105
+ inherits: false;
106
+ initial-value: 0px;
107
+ }
108
+ @property --scroll-fade-s {
109
+ syntax: '<length-percentage>';
110
+ inherits: false;
111
+ initial-value: 0px;
112
+ }
113
+ @property --scroll-fade-e {
114
+ syntax: '<length-percentage>';
115
+ inherits: false;
116
+ initial-value: 0px;
117
+ }
118
+ @property --scroll-fade-mask {
119
+ syntax: '*';
120
+ inherits: false;
121
+ }
122
+
123
+ @theme inline {
124
+ @keyframes scroll-fade-reveal-t {
125
+ from {
126
+ --scroll-fade-t: 0px;
127
+ }
128
+ to {
129
+ --scroll-fade-t: var(
130
+ --_scroll-fade-size-t,
131
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
132
+ );
133
+ }
134
+ }
135
+ @keyframes scroll-fade-reveal-b {
136
+ from {
137
+ --scroll-fade-b: var(
138
+ --_scroll-fade-size-b,
139
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
140
+ );
141
+ }
142
+ to {
143
+ --scroll-fade-b: 0px;
144
+ }
145
+ }
146
+ @keyframes scroll-fade-reveal-s {
147
+ from {
148
+ --scroll-fade-s: 0px;
149
+ }
150
+ to {
151
+ --scroll-fade-s: var(
152
+ --_scroll-fade-size-s,
153
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
154
+ );
155
+ }
156
+ }
157
+ @keyframes scroll-fade-reveal-e {
158
+ from {
159
+ --scroll-fade-e: var(
160
+ --_scroll-fade-size-e,
161
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
162
+ );
163
+ }
164
+ to {
165
+ --scroll-fade-e: 0px;
166
+ }
167
+ }
168
+ }
169
+
170
+ @utility scroll-fade {
171
+ --_scroll-fade-size-t: var(
172
+ --scroll-fade-t-size,
173
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
174
+ );
175
+ --_scroll-fade-size-b: var(
176
+ --scroll-fade-b-size,
177
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
178
+ );
179
+ --scroll-fade-block: linear-gradient(
180
+ to bottom,
181
+ transparent 0,
182
+ #000 var(--scroll-fade-t, 0px),
183
+ #000 calc(100% - var(--scroll-fade-b, 0px)),
184
+ transparent 100%
185
+ );
186
+ -webkit-mask-image: var(--scroll-fade-mask, var(--scroll-fade-block));
187
+ mask-image: var(--scroll-fade-mask, var(--scroll-fade-block));
188
+ -webkit-mask-composite: source-in;
189
+ mask-composite: intersect;
190
+ -webkit-mask-repeat: no-repeat;
191
+ mask-repeat: no-repeat;
192
+
193
+ @supports (animation-timeline: scroll()) {
194
+ animation:
195
+ scroll-fade-reveal-t 1ms ease-in-out,
196
+ scroll-fade-reveal-b 1ms ease-in-out;
197
+ animation-timeline: scroll(self y), scroll(self y);
198
+ animation-range:
199
+ 0 var(--scroll-fade-reveal, calc(var(--spacing) * 24)),
200
+ calc(100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))) 100%;
201
+ animation-fill-mode: both;
202
+ }
203
+
204
+ @supports not (animation-timeline: scroll()) {
205
+ --scroll-fade-t: var(--_scroll-fade-size-t);
206
+ --scroll-fade-b: var(--_scroll-fade-size-b);
207
+ }
208
+ }
209
+
210
+ @utility scroll-fade-y {
211
+ --_scroll-fade-size-t: var(
212
+ --scroll-fade-t-size,
213
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
214
+ );
215
+ --_scroll-fade-size-b: var(
216
+ --scroll-fade-b-size,
217
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
218
+ );
219
+ --scroll-fade-block: linear-gradient(
220
+ to bottom,
221
+ transparent 0,
222
+ #000 var(--scroll-fade-t, 0px),
223
+ #000 calc(100% - var(--scroll-fade-b, 0px)),
224
+ transparent 100%
225
+ );
226
+ -webkit-mask-image: var(--scroll-fade-mask, var(--scroll-fade-block));
227
+ mask-image: var(--scroll-fade-mask, var(--scroll-fade-block));
228
+ -webkit-mask-composite: source-in;
229
+ mask-composite: intersect;
230
+ -webkit-mask-repeat: no-repeat;
231
+ mask-repeat: no-repeat;
232
+
233
+ @supports (animation-timeline: scroll()) {
234
+ animation:
235
+ scroll-fade-reveal-t 1ms ease-in-out,
236
+ scroll-fade-reveal-b 1ms ease-in-out;
237
+ animation-timeline: scroll(self y), scroll(self y);
238
+ animation-range:
239
+ 0 var(--scroll-fade-reveal, calc(var(--spacing) * 24)),
240
+ calc(100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))) 100%;
241
+ animation-fill-mode: both;
242
+ }
243
+
244
+ @supports not (animation-timeline: scroll()) {
245
+ --scroll-fade-t: var(--_scroll-fade-size-t);
246
+ --scroll-fade-b: var(--_scroll-fade-size-b);
247
+ }
248
+ }
249
+
250
+ @utility scroll-fade-x {
251
+ --_scroll-fade-size-s: var(
252
+ --scroll-fade-s-size,
253
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
254
+ );
255
+ --_scroll-fade-size-e: var(
256
+ --scroll-fade-e-size,
257
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
258
+ );
259
+ --scroll-fade-inline: linear-gradient(
260
+ to right,
261
+ transparent 0,
262
+ #000 var(--scroll-fade-s, 0px),
263
+ #000 calc(100% - var(--scroll-fade-e, 0px)),
264
+ transparent 100%
265
+ );
266
+ &:where([dir='rtl'], [dir='rtl'] *) {
267
+ --scroll-fade-inline: linear-gradient(
268
+ to left,
269
+ transparent 0,
270
+ #000 var(--scroll-fade-s, 0px),
271
+ #000 calc(100% - var(--scroll-fade-e, 0px)),
272
+ transparent 100%
273
+ );
274
+ }
275
+ -webkit-mask-image: var(--scroll-fade-mask, var(--scroll-fade-inline));
276
+ mask-image: var(--scroll-fade-mask, var(--scroll-fade-inline));
277
+ -webkit-mask-composite: source-in;
278
+ mask-composite: intersect;
279
+ -webkit-mask-repeat: no-repeat;
280
+ mask-repeat: no-repeat;
281
+
282
+ @supports (animation-timeline: scroll()) {
283
+ animation:
284
+ scroll-fade-reveal-s 1ms ease-in-out,
285
+ scroll-fade-reveal-e 1ms ease-in-out;
286
+ animation-timeline: scroll(self inline), scroll(self inline);
287
+ animation-range:
288
+ 0 var(--scroll-fade-reveal, calc(var(--spacing) * 24)),
289
+ calc(100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))) 100%;
290
+ animation-fill-mode: both;
291
+ }
292
+
293
+ @supports not (animation-timeline: scroll()) {
294
+ --scroll-fade-s: var(--_scroll-fade-size-s);
295
+ --scroll-fade-e: var(--_scroll-fade-size-e);
296
+ }
297
+ }
298
+
299
+ @utility scroll-fade-t {
300
+ --_scroll-fade-size-t: var(
301
+ --scroll-fade-t-size,
302
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
303
+ );
304
+ --scroll-fade-mask: linear-gradient(
305
+ to bottom,
306
+ transparent 0,
307
+ #000 var(--scroll-fade-t, 0px),
308
+ #000 100%
309
+ );
310
+ -webkit-mask-image: var(--scroll-fade-mask);
311
+ mask-image: var(--scroll-fade-mask);
312
+ -webkit-mask-composite: source-in;
313
+ mask-composite: intersect;
314
+ -webkit-mask-repeat: no-repeat;
315
+ mask-repeat: no-repeat;
316
+
317
+ @supports (animation-timeline: scroll()) {
318
+ animation: scroll-fade-reveal-t 1ms ease-in-out;
319
+ animation-timeline: scroll(self y);
320
+ animation-range: 0 var(--scroll-fade-reveal, calc(var(--spacing) * 24));
321
+ animation-fill-mode: both;
322
+ }
323
+
324
+ @supports not (animation-timeline: scroll()) {
325
+ --scroll-fade-t: var(--_scroll-fade-size-t);
326
+ }
327
+ }
328
+
329
+ @utility scroll-fade-b {
330
+ --_scroll-fade-size-b: var(
331
+ --scroll-fade-b-size,
332
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
333
+ );
334
+ --scroll-fade-mask: linear-gradient(
335
+ to bottom,
336
+ #000 0,
337
+ #000 calc(100% - var(--scroll-fade-b, 0px)),
338
+ transparent 100%
339
+ );
340
+ -webkit-mask-image: var(--scroll-fade-mask);
341
+ mask-image: var(--scroll-fade-mask);
342
+ -webkit-mask-composite: source-in;
343
+ mask-composite: intersect;
344
+ -webkit-mask-repeat: no-repeat;
345
+ mask-repeat: no-repeat;
346
+
347
+ @supports (animation-timeline: scroll()) {
348
+ animation: scroll-fade-reveal-b 1ms ease-in-out;
349
+ animation-timeline: scroll(self y);
350
+ animation-range: calc(100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))) 100%;
351
+ animation-fill-mode: both;
352
+ }
353
+
354
+ @supports not (animation-timeline: scroll()) {
355
+ --scroll-fade-b: var(--_scroll-fade-size-b);
356
+ }
357
+ }
358
+
359
+ @utility scroll-fade-l {
360
+ --_scroll-fade-size-s: var(
361
+ --scroll-fade-s-size,
362
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
363
+ );
364
+ --scroll-fade-mask: linear-gradient(
365
+ to right,
366
+ transparent 0,
367
+ #000 var(--scroll-fade-s, 0px),
368
+ #000 100%
369
+ );
370
+ -webkit-mask-image: var(--scroll-fade-mask);
371
+ mask-image: var(--scroll-fade-mask);
372
+ -webkit-mask-composite: source-in;
373
+ mask-composite: intersect;
374
+ -webkit-mask-repeat: no-repeat;
375
+ mask-repeat: no-repeat;
376
+
377
+ @supports (animation-timeline: scroll()) {
378
+ animation: scroll-fade-reveal-s 1ms ease-in-out;
379
+ animation-timeline: scroll(self x);
380
+ animation-range: 0 var(--scroll-fade-reveal, calc(var(--spacing) * 24));
381
+ animation-fill-mode: both;
382
+ }
383
+
384
+ @supports not (animation-timeline: scroll()) {
385
+ --scroll-fade-s: var(--_scroll-fade-size-s);
386
+ }
387
+ }
388
+
389
+ @utility scroll-fade-r {
390
+ --_scroll-fade-size-e: var(
391
+ --scroll-fade-e-size,
392
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
393
+ );
394
+ --scroll-fade-mask: linear-gradient(
395
+ to right,
396
+ #000 0,
397
+ #000 calc(100% - var(--scroll-fade-e, 0px)),
398
+ transparent 100%
399
+ );
400
+ -webkit-mask-image: var(--scroll-fade-mask);
401
+ mask-image: var(--scroll-fade-mask);
402
+ -webkit-mask-composite: source-in;
403
+ mask-composite: intersect;
404
+ -webkit-mask-repeat: no-repeat;
405
+ mask-repeat: no-repeat;
406
+
407
+ @supports (animation-timeline: scroll()) {
408
+ animation: scroll-fade-reveal-e 1ms ease-in-out;
409
+ animation-timeline: scroll(self x);
410
+ animation-range: calc(100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))) 100%;
411
+ animation-fill-mode: both;
412
+ }
413
+
414
+ @supports not (animation-timeline: scroll()) {
415
+ --scroll-fade-e: var(--_scroll-fade-size-e);
416
+ }
417
+ }
418
+
419
+ @utility scroll-fade-s {
420
+ --_scroll-fade-size-s: var(
421
+ --scroll-fade-s-size,
422
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
423
+ );
424
+ --scroll-fade-mask: linear-gradient(
425
+ to right,
426
+ transparent 0,
427
+ #000 var(--scroll-fade-s, 0px),
428
+ #000 100%
429
+ );
430
+ &:where([dir='rtl'], [dir='rtl'] *) {
431
+ --scroll-fade-mask: linear-gradient(
432
+ to left,
433
+ transparent 0,
434
+ #000 var(--scroll-fade-s, 0px),
435
+ #000 100%
436
+ );
437
+ }
438
+ -webkit-mask-image: var(--scroll-fade-mask);
439
+ mask-image: var(--scroll-fade-mask);
440
+ -webkit-mask-composite: source-in;
441
+ mask-composite: intersect;
442
+ -webkit-mask-repeat: no-repeat;
443
+ mask-repeat: no-repeat;
444
+
445
+ @supports (animation-timeline: scroll()) {
446
+ animation: scroll-fade-reveal-s 1ms ease-in-out;
447
+ animation-timeline: scroll(self inline);
448
+ animation-range: 0 var(--scroll-fade-reveal, calc(var(--spacing) * 24));
449
+ animation-fill-mode: both;
450
+ }
451
+
452
+ @supports not (animation-timeline: scroll()) {
453
+ --scroll-fade-s: var(--_scroll-fade-size-s);
454
+ }
455
+ }
456
+
457
+ @utility scroll-fade-e {
458
+ --_scroll-fade-size-e: var(
459
+ --scroll-fade-e-size,
460
+ var(--scroll-fade-size, min(12%, calc(var(--spacing) * 10)))
461
+ );
462
+ --scroll-fade-mask: linear-gradient(
463
+ to right,
464
+ #000 0,
465
+ #000 calc(100% - var(--scroll-fade-e, 0px)),
466
+ transparent 100%
467
+ );
468
+ &:where([dir='rtl'], [dir='rtl'] *) {
469
+ --scroll-fade-mask: linear-gradient(
470
+ to left,
471
+ #000 0,
472
+ #000 calc(100% - var(--scroll-fade-e, 0px)),
473
+ transparent 100%
474
+ );
475
+ }
476
+ -webkit-mask-image: var(--scroll-fade-mask);
477
+ mask-image: var(--scroll-fade-mask);
478
+ -webkit-mask-composite: source-in;
479
+ mask-composite: intersect;
480
+ -webkit-mask-repeat: no-repeat;
481
+ mask-repeat: no-repeat;
482
+
483
+ @supports (animation-timeline: scroll()) {
484
+ animation: scroll-fade-reveal-e 1ms ease-in-out;
485
+ animation-timeline: scroll(self inline);
486
+ animation-range: calc(100% - var(--scroll-fade-reveal, calc(var(--spacing) * 24))) 100%;
487
+ animation-fill-mode: both;
488
+ }
489
+
490
+ @supports not (animation-timeline: scroll()) {
491
+ --scroll-fade-e: var(--_scroll-fade-size-e);
492
+ }
493
+ }
494
+
495
+ @utility scroll-fade-* {
496
+ --scroll-fade-size: calc(var(--spacing) * --value(integer));
497
+ --scroll-fade-size: --value([length], [percentage]);
498
+ }
499
+
500
+ @utility scroll-fade-t-* {
501
+ --scroll-fade-t-size: calc(var(--spacing) * --value(integer));
502
+ --scroll-fade-t-size: --value([length], [percentage]);
503
+ }
504
+
505
+ @utility scroll-fade-b-* {
506
+ --scroll-fade-b-size: calc(var(--spacing) * --value(integer));
507
+ --scroll-fade-b-size: --value([length], [percentage]);
508
+ }
509
+
510
+ @utility scroll-fade-s-* {
511
+ --scroll-fade-s-size: calc(var(--spacing) * --value(integer));
512
+ --scroll-fade-s-size: --value([length], [percentage]);
513
+ }
514
+
515
+ @utility scroll-fade-e-* {
516
+ --scroll-fade-e-size: calc(var(--spacing) * --value(integer));
517
+ --scroll-fade-e-size: --value([length], [percentage]);
518
+ }
519
+
520
+ @utility scroll-fade-none {
521
+ --scroll-fade-mask: none;
522
+ }
523
+
524
+ /* shimmer */
525
+ @property --shimmer-angle {
526
+ syntax: '<angle>';
527
+ inherits: true;
528
+ initial-value: 20deg;
529
+ }
530
+ @property --shimmer-image {
531
+ syntax: '*';
532
+ inherits: false;
533
+ }
534
+ @property --shimmer-text-fill {
535
+ syntax: '*';
536
+ inherits: false;
537
+ }
538
+
539
+ @theme inline {
540
+ @keyframes tw-shimmer {
541
+ from {
542
+ background-position: 100% 0;
543
+ }
544
+ to {
545
+ background-position: 0 0;
546
+ }
547
+ }
548
+ }
549
+
550
+ @utility shimmer {
551
+ --_spread: var(--shimmer-spread, calc(3ch + 40px));
552
+ --_base: currentColor;
553
+ --_highlight: var(--shimmer-color, oklch(from currentColor l c h / calc(alpha* 0.2)));
554
+
555
+ background-image: var(
556
+ --shimmer-image,
557
+ linear-gradient(
558
+ calc(90deg + var(--shimmer-angle)),
559
+ var(--_base) calc(50% - var(--_spread)),
560
+ color-mix(in oklch, var(--_highlight), var(--_base) 50%) calc(50% - var(--_spread) * 0.5),
561
+ var(--_highlight) 50%,
562
+ color-mix(in oklch, var(--_highlight), var(--_base) 50%) calc(50% + var(--_spread) * 0.5),
563
+ var(--_base) calc(50% + var(--_spread))
564
+ )
565
+ );
566
+ background-repeat: no-repeat;
567
+ background-size: calc(200% + var(--_spread) * 2) 100%;
568
+ background-position: 0 0;
569
+ background-clip: text;
570
+ -webkit-background-clip: text;
571
+ -webkit-text-fill-color: var(--shimmer-text-fill, transparent);
572
+ animation: tw-shimmer var(--shimmer-duration, 2s) linear infinite;
573
+
574
+ @variant dark {
575
+ --_highlight: var(
576
+ --shimmer-color,
577
+ oklch(from currentColor max(0.8, calc(l + 0.4)) c h / calc(alpha + 0.4))
578
+ );
579
+ }
580
+
581
+ &:where([dir='rtl'], [dir='rtl'] *) {
582
+ animation-direction: reverse;
583
+ }
584
+
585
+ @media (prefers-reduced-motion: reduce) {
586
+ animation: none;
587
+ background-image: none;
588
+ -webkit-text-fill-color: currentColor;
589
+ }
590
+ }
591
+
592
+ @utility shimmer-once {
593
+ animation-iteration-count: 1;
594
+ }
595
+
596
+ @utility shimmer-reverse {
597
+ animation-direction: reverse;
598
+ }
599
+
600
+ @utility shimmer-none {
601
+ --shimmer-image: none;
602
+ --shimmer-text-fill: currentColor;
603
+ }
604
+
605
+ @utility shimmer-color-* {
606
+ --shimmer-color: --value(--color, [color]);
607
+ --shimmer-color: color-mix(
608
+ in oklch,
609
+ --value(--color, [color]) calc(--modifier(integer) * 1%),
610
+ transparent
611
+ );
612
+ }
613
+
614
+ @utility shimmer-duration-* {
615
+ --shimmer-duration: calc(--value(integer) * 1ms);
616
+ }
617
+
618
+ @utility shimmer-spread-* {
619
+ --shimmer-spread: calc(var(--spacing) * --value(integer));
620
+ --shimmer-spread: --value([length], [percentage]);
621
+ }
622
+
623
+ @utility shimmer-angle-* {
624
+ --shimmer-angle: calc(--value(integer) * 1deg);
625
+ }
626
+
627
+ /* Kept for backwards compatibility. Unlayered, so it still wins over other
628
+ utilities on a plain .shimmer element. Variants are handled in the utility. */
629
+ @media (prefers-reduced-motion: reduce) {
630
+ .shimmer {
631
+ animation: none;
632
+ background-image: none;
633
+ -webkit-text-fill-color: currentColor;
634
+ }
635
+ }