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