@yuhuanowo/yunui 0.2.13 → 0.2.15
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/README.md +17 -1
- package/README.zh-CN.md +17 -1
- package/README.zh-TW.md +17 -1
- package/dist/ai.d.ts +37 -1
- package/dist/ai.js +261 -125
- package/dist/ai.js.map +1 -1
- package/dist/{chunk-MTEICYIC.js → chunk-6MZN3GOP.js} +312 -209
- package/dist/chunk-6MZN3GOP.js.map +1 -0
- package/dist/chunk-LLNTUA5K.js +155 -0
- package/dist/chunk-LLNTUA5K.js.map +1 -0
- package/dist/index.d.ts +111 -6
- package/dist/index.js +2 -2
- package/dist/patterns.d.ts +236 -2
- package/dist/patterns.js +445 -28
- package/dist/patterns.js.map +1 -1
- package/package.json +1 -1
- package/styles/tokens.css +704 -352
- package/styles/yunui.css +224 -19
- package/dist/chunk-MTEICYIC.js.map +0 -1
- package/dist/chunk-TFZKMJGF.js +0 -85
- package/dist/chunk-TFZKMJGF.js.map +0 -1
package/styles/yunui.css
CHANGED
|
@@ -84,10 +84,18 @@
|
|
|
84
84
|
--accent-subtle: #f4f4f5;
|
|
85
85
|
--accent-muted: #e4e4e7;
|
|
86
86
|
|
|
87
|
+
/* Interaction surfaces — aliases consumed by hover / selected / muted states
|
|
88
|
+
across components (accordion, combobox, custom-select, pagination, table).
|
|
89
|
+
Defined once: nested var() resolves at use-site, so these track the active
|
|
90
|
+
theme's --accent-subtle / --bg-elevated automatically. */
|
|
91
|
+
--bg-hover: var(--accent-subtle);
|
|
92
|
+
--bg-muted: var(--bg-elevated);
|
|
93
|
+
|
|
87
94
|
/* Semantic */
|
|
88
95
|
--success: #10b981;
|
|
89
96
|
--warning: #f59e0b;
|
|
90
97
|
--error: #ef4444;
|
|
98
|
+
--info: #3b82f6;
|
|
91
99
|
|
|
92
100
|
/* Code Block */
|
|
93
101
|
--code-bg: #f4f4f5;
|
|
@@ -154,12 +162,15 @@
|
|
|
154
162
|
[data-theme="true-black"] {
|
|
155
163
|
color-scheme: dark;
|
|
156
164
|
|
|
157
|
-
/* Core Colors - True Black
|
|
165
|
+
/* Core Colors - True Black. The PAGE stays pure #000 (OLED), but elevated
|
|
166
|
+
surfaces lift a hair so fills that rely on a background — bg-muted (hover
|
|
167
|
+
states, tiles, switch tracks, sticky headers), bg-card — are actually
|
|
168
|
+
visible instead of vanishing into the black. Borders/rings still delineate. */
|
|
158
169
|
--bg-base: #000000;
|
|
159
|
-
--bg-elevated: #
|
|
170
|
+
--bg-elevated: #141414;
|
|
160
171
|
--bg-glass: rgba(0, 0, 0, 0.8);
|
|
161
172
|
--bg-glass-hover: rgba(20, 20, 20, 0.9);
|
|
162
|
-
--bg-card: #
|
|
173
|
+
--bg-card: #0a0a0a;
|
|
163
174
|
|
|
164
175
|
/* High Contrast Borders */
|
|
165
176
|
--border-hairline: #1a1a1a;
|
|
@@ -491,7 +502,7 @@ summary {
|
|
|
491
502
|
backdrop-filter: blur(16px);
|
|
492
503
|
-webkit-backdrop-filter: blur(16px);
|
|
493
504
|
border: 1px solid var(--border-subtle);
|
|
494
|
-
border-radius:
|
|
505
|
+
border-radius: 20px;
|
|
495
506
|
transition: all 0.2s ease;
|
|
496
507
|
}
|
|
497
508
|
|
|
@@ -523,7 +534,7 @@ summary {
|
|
|
523
534
|
.card {
|
|
524
535
|
background: var(--bg-card);
|
|
525
536
|
border: 1px solid var(--border-hairline);
|
|
526
|
-
border-radius:
|
|
537
|
+
border-radius: 20px;
|
|
527
538
|
box-shadow: var(--shadow-xs);
|
|
528
539
|
transition: all 0.15s ease;
|
|
529
540
|
}
|
|
@@ -537,6 +548,11 @@ summary {
|
|
|
537
548
|
cursor: pointer;
|
|
538
549
|
}
|
|
539
550
|
|
|
551
|
+
.card-interactive:focus-visible {
|
|
552
|
+
outline: 2px solid var(--border-strong);
|
|
553
|
+
outline-offset: 2px;
|
|
554
|
+
}
|
|
555
|
+
|
|
540
556
|
.card-interactive:hover {
|
|
541
557
|
transform: translateY(-1px);
|
|
542
558
|
box-shadow: var(--shadow-md);
|
|
@@ -567,7 +583,7 @@ summary {
|
|
|
567
583
|
backdrop-filter: blur(12px);
|
|
568
584
|
-webkit-backdrop-filter: blur(12px);
|
|
569
585
|
border: 1px solid var(--border-hairline);
|
|
570
|
-
border-radius:
|
|
586
|
+
border-radius: 24px;
|
|
571
587
|
}
|
|
572
588
|
|
|
573
589
|
/* =====================================================
|
|
@@ -630,7 +646,7 @@ summary {
|
|
|
630
646
|
gap: 0.5rem;
|
|
631
647
|
font-weight: 500;
|
|
632
648
|
font-size: 0.875rem;
|
|
633
|
-
border-radius:
|
|
649
|
+
border-radius: 14px;
|
|
634
650
|
padding: 0.625rem 1.125rem;
|
|
635
651
|
transition: all 0.15s ease;
|
|
636
652
|
cursor: pointer;
|
|
@@ -638,6 +654,13 @@ summary {
|
|
|
638
654
|
border: 1px solid;
|
|
639
655
|
}
|
|
640
656
|
|
|
657
|
+
/* Keyboard focus ring — applies to every .btn variant. Uses :focus-visible so
|
|
658
|
+
it only shows for keyboard users, not on mouse click. */
|
|
659
|
+
.btn:focus-visible {
|
|
660
|
+
outline: 2px solid var(--border-strong);
|
|
661
|
+
outline-offset: 2px;
|
|
662
|
+
}
|
|
663
|
+
|
|
641
664
|
/* Primary - dark outline with subtle bg */
|
|
642
665
|
.btn-primary {
|
|
643
666
|
color: #09090b;
|
|
@@ -738,14 +761,14 @@ summary {
|
|
|
738
761
|
.btn-sm {
|
|
739
762
|
padding: 0.375rem 0.75rem;
|
|
740
763
|
font-size: 0.8125rem;
|
|
741
|
-
border-radius:
|
|
764
|
+
border-radius: 11px;
|
|
742
765
|
gap: 0.375rem;
|
|
743
766
|
}
|
|
744
767
|
|
|
745
768
|
.btn-lg {
|
|
746
769
|
padding: 0.875rem 1.5rem;
|
|
747
770
|
font-size: 1rem;
|
|
748
|
-
border-radius:
|
|
771
|
+
border-radius: 16px;
|
|
749
772
|
}
|
|
750
773
|
|
|
751
774
|
.btn:disabled {
|
|
@@ -978,7 +1001,7 @@ select.input option,
|
|
|
978
1001
|
padding: 0.5rem 0.75rem;
|
|
979
1002
|
background: var(--bg-glass);
|
|
980
1003
|
border: 1px solid var(--border-default);
|
|
981
|
-
border-radius:
|
|
1004
|
+
border-radius: 14px;
|
|
982
1005
|
font-size: 0.875rem;
|
|
983
1006
|
color: var(--text-primary);
|
|
984
1007
|
outline: none;
|
|
@@ -994,6 +1017,19 @@ select.input option,
|
|
|
994
1017
|
box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.03);
|
|
995
1018
|
}
|
|
996
1019
|
|
|
1020
|
+
/* iOS Safari auto-zooms the page when focusing a form field whose font-size is
|
|
1021
|
+
< 16px (our inputs use text-sm = 14px). On touch devices only, floor text
|
|
1022
|
+
fields at 16px so the page doesn't jump on focus. Desktop keeps the 14px look.
|
|
1023
|
+
The stacked :not() attribute selectors out-specify the `text-sm` utility, so
|
|
1024
|
+
no !important is needed; non-text controls are excluded. */
|
|
1025
|
+
@media (hover: none) and (pointer: coarse) {
|
|
1026
|
+
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]),
|
|
1027
|
+
textarea,
|
|
1028
|
+
select {
|
|
1029
|
+
font-size: 16px;
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
|
|
997
1033
|
.input-glass {
|
|
998
1034
|
background: var(--bg-glass);
|
|
999
1035
|
backdrop-filter: blur(8px);
|
|
@@ -1011,9 +1047,14 @@ select.input option,
|
|
|
1011
1047
|
padding: 0.25rem 0.625rem;
|
|
1012
1048
|
font-size: 0.6875rem;
|
|
1013
1049
|
font-weight: 500;
|
|
1014
|
-
border-radius:
|
|
1050
|
+
border-radius: 8px;
|
|
1015
1051
|
background: var(--bg-glass-hover);
|
|
1016
1052
|
color: var(--text-secondary);
|
|
1053
|
+
/* A badge is an atomic unit: icon + label stay on one line, and the badge
|
|
1054
|
+
keeps its natural width inside a flex row (wraps as a whole, never gets
|
|
1055
|
+
squeezed so its CJK label breaks per-character in a narrow column). */
|
|
1056
|
+
white-space: nowrap;
|
|
1057
|
+
flex-shrink: 0;
|
|
1017
1058
|
}
|
|
1018
1059
|
|
|
1019
1060
|
.badge-accent {
|
|
@@ -1056,7 +1097,48 @@ select.input option,
|
|
|
1056
1097
|
}
|
|
1057
1098
|
|
|
1058
1099
|
.text-info {
|
|
1059
|
-
color:
|
|
1100
|
+
color: var(--info);
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
/* White ink that STAYS white on a colored/dark fill — badges, icon overlays,
|
|
1104
|
+
solid-button text. Distinct from `.text-white`, which true-black deliberately
|
|
1105
|
+
dims to #d4d4d8 for body-text eye comfort (that dim wrecks contrast when the
|
|
1106
|
+
white sits on red/primary). Defined as a real class so it always generates
|
|
1107
|
+
(an arbitrary `text-[#fff]` can be dropped by a consumer's JIT). */
|
|
1108
|
+
.text-pure-white {
|
|
1109
|
+
color: #ffffff;
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
/* Soft semantic-color backgrounds — the proven, themeable counterpart to the
|
|
1113
|
+
.text-* helpers above. Use for medallions / icon tiles / soft banners that
|
|
1114
|
+
need a ~10% tint of a status color (the `bg-error/10` Tailwind utility does
|
|
1115
|
+
NOT resolve — there is no --color-error). color-mix tracks the token across
|
|
1116
|
+
light / dark / true-black. */
|
|
1117
|
+
.bg-error-soft {
|
|
1118
|
+
background-color: color-mix(in srgb, var(--error) 10%, transparent);
|
|
1119
|
+
}
|
|
1120
|
+
.bg-success-soft {
|
|
1121
|
+
background-color: color-mix(in srgb, var(--success) 10%, transparent);
|
|
1122
|
+
}
|
|
1123
|
+
.bg-warning-soft {
|
|
1124
|
+
background-color: color-mix(in srgb, var(--warning) 10%, transparent);
|
|
1125
|
+
}
|
|
1126
|
+
.bg-info-soft {
|
|
1127
|
+
background-color: color-mix(in srgb, var(--info) 10%, transparent);
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
/* Matching tinted borders for soft semantic callouts (Alert, banners). */
|
|
1131
|
+
.border-error-soft {
|
|
1132
|
+
border-color: color-mix(in srgb, var(--error) 30%, transparent);
|
|
1133
|
+
}
|
|
1134
|
+
.border-success-soft {
|
|
1135
|
+
border-color: color-mix(in srgb, var(--success) 30%, transparent);
|
|
1136
|
+
}
|
|
1137
|
+
.border-warning-soft {
|
|
1138
|
+
border-color: color-mix(in srgb, var(--warning) 30%, transparent);
|
|
1139
|
+
}
|
|
1140
|
+
.border-info-soft {
|
|
1141
|
+
border-color: color-mix(in srgb, var(--info) 30%, transparent);
|
|
1060
1142
|
}
|
|
1061
1143
|
|
|
1062
1144
|
.badge-neutral {
|
|
@@ -1078,7 +1160,7 @@ select.input option,
|
|
|
1078
1160
|
font-size: 0.875rem;
|
|
1079
1161
|
font-weight: 500;
|
|
1080
1162
|
color: var(--text-tertiary);
|
|
1081
|
-
border-radius:
|
|
1163
|
+
border-radius: 12px;
|
|
1082
1164
|
transition: all 0.12s ease;
|
|
1083
1165
|
white-space: nowrap;
|
|
1084
1166
|
}
|
|
@@ -1108,6 +1190,12 @@ select.input option,
|
|
|
1108
1190
|
background: rgba(0, 0, 0, 0.03);
|
|
1109
1191
|
}
|
|
1110
1192
|
|
|
1193
|
+
.nav-item:focus-visible {
|
|
1194
|
+
outline: 2px solid var(--border-strong);
|
|
1195
|
+
outline-offset: -2px;
|
|
1196
|
+
color: var(--text-primary);
|
|
1197
|
+
}
|
|
1198
|
+
|
|
1111
1199
|
.nav-item:hover::before {
|
|
1112
1200
|
transform: translateY(-50%) translateX(0);
|
|
1113
1201
|
opacity: 0.3;
|
|
@@ -1146,7 +1234,7 @@ select.input option,
|
|
|
1146
1234
|
font-weight: 500;
|
|
1147
1235
|
color: var(--text-tertiary);
|
|
1148
1236
|
background: transparent;
|
|
1149
|
-
border-radius:
|
|
1237
|
+
border-radius: 12px;
|
|
1150
1238
|
transition: color 0.15s ease, background 0.15s ease;
|
|
1151
1239
|
white-space: nowrap;
|
|
1152
1240
|
cursor: pointer;
|
|
@@ -1177,6 +1265,12 @@ select.input option,
|
|
|
1177
1265
|
background: var(--accent-subtle);
|
|
1178
1266
|
}
|
|
1179
1267
|
|
|
1268
|
+
.nav-tab:focus-visible {
|
|
1269
|
+
outline: 2px solid var(--border-strong);
|
|
1270
|
+
outline-offset: -2px;
|
|
1271
|
+
color: var(--text-primary);
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1180
1274
|
.nav-tab:hover::after {
|
|
1181
1275
|
width: 24%;
|
|
1182
1276
|
opacity: 0.4;
|
|
@@ -1206,7 +1300,7 @@ select.input option,
|
|
|
1206
1300
|
.code-block {
|
|
1207
1301
|
background: var(--code-bg);
|
|
1208
1302
|
border: 1px solid var(--code-border);
|
|
1209
|
-
border-radius:
|
|
1303
|
+
border-radius: 14px;
|
|
1210
1304
|
font-family: 'JetBrains Mono', monospace;
|
|
1211
1305
|
font-size: 0.8125rem;
|
|
1212
1306
|
overflow: hidden;
|
|
@@ -1501,7 +1595,7 @@ select.input option,
|
|
|
1501
1595
|
font-size: 0.875rem;
|
|
1502
1596
|
font-weight: 500;
|
|
1503
1597
|
color: var(--text-tertiary);
|
|
1504
|
-
border-radius:
|
|
1598
|
+
border-radius: 12px;
|
|
1505
1599
|
transition: all 0.12s ease;
|
|
1506
1600
|
white-space: nowrap;
|
|
1507
1601
|
}
|
|
@@ -1525,6 +1619,12 @@ select.input option,
|
|
|
1525
1619
|
background: rgba(0, 0, 0, 0.03);
|
|
1526
1620
|
}
|
|
1527
1621
|
|
|
1622
|
+
.dropdown-item:focus-visible {
|
|
1623
|
+
outline: 2px solid var(--border-strong);
|
|
1624
|
+
outline-offset: -2px;
|
|
1625
|
+
color: var(--text-primary);
|
|
1626
|
+
}
|
|
1627
|
+
|
|
1528
1628
|
.dropdown-item:hover::before {
|
|
1529
1629
|
transform: translateY(-50%) translateX(0);
|
|
1530
1630
|
opacity: 0.3;
|
|
@@ -1565,6 +1665,56 @@ select.input option,
|
|
|
1565
1665
|
opacity: 1;
|
|
1566
1666
|
}
|
|
1567
1667
|
|
|
1668
|
+
/* Radix-driven states — let the SAME .dropdown-item drive @radix-ui Select /
|
|
1669
|
+
DropdownMenu rows (keyboard `data-highlighted`, selected `data-state=checked`),
|
|
1670
|
+
so hand-rolled and Radix dropdowns share one look. Hand-rolled lists can also
|
|
1671
|
+
set `data-highlighted` for keyboard highlight and `.active` for the selection. */
|
|
1672
|
+
.dropdown-item[data-highlighted] {
|
|
1673
|
+
color: var(--text-primary);
|
|
1674
|
+
background: rgba(0, 0, 0, 0.03);
|
|
1675
|
+
outline: none;
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
.dropdown-item[data-highlighted]::before {
|
|
1679
|
+
transform: translateY(-50%) translateX(0);
|
|
1680
|
+
opacity: 0.3;
|
|
1681
|
+
}
|
|
1682
|
+
|
|
1683
|
+
.dropdown-item[data-state="checked"] {
|
|
1684
|
+
color: var(--text-primary);
|
|
1685
|
+
font-weight: 500;
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1688
|
+
.dropdown-item[data-state="checked"]::before {
|
|
1689
|
+
transform: translateY(-50%) translateX(0);
|
|
1690
|
+
opacity: 1;
|
|
1691
|
+
height: 18px;
|
|
1692
|
+
}
|
|
1693
|
+
|
|
1694
|
+
.dark .dropdown-item[data-highlighted],
|
|
1695
|
+
.true-black .dropdown-item[data-highlighted] {
|
|
1696
|
+
background: var(--accent-subtle);
|
|
1697
|
+
color: var(--text-primary);
|
|
1698
|
+
}
|
|
1699
|
+
|
|
1700
|
+
.dark .dropdown-item[data-highlighted]::before,
|
|
1701
|
+
.true-black .dropdown-item[data-highlighted]::before {
|
|
1702
|
+
background: var(--text-primary);
|
|
1703
|
+
opacity: 0.4;
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
.dark .dropdown-item[data-state="checked"],
|
|
1707
|
+
.true-black .dropdown-item[data-state="checked"] {
|
|
1708
|
+
color: var(--text-primary);
|
|
1709
|
+
font-weight: 600;
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1712
|
+
.dark .dropdown-item[data-state="checked"]::before,
|
|
1713
|
+
.true-black .dropdown-item[data-state="checked"]::before {
|
|
1714
|
+
background: var(--text-primary);
|
|
1715
|
+
opacity: 1;
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1568
1718
|
/* Input dark mode fixes */
|
|
1569
1719
|
.dark .input:focus,
|
|
1570
1720
|
.true-black .input:focus {
|
|
@@ -1841,14 +1991,14 @@ select.input option,
|
|
|
1841
1991
|
.gradient-card {
|
|
1842
1992
|
position: relative;
|
|
1843
1993
|
background: var(--bg-card);
|
|
1844
|
-
border-radius:
|
|
1994
|
+
border-radius: 24px;
|
|
1845
1995
|
padding: 1px;
|
|
1846
1996
|
background: linear-gradient(135deg, var(--border-subtle) 0%, var(--border-default) 100%);
|
|
1847
1997
|
}
|
|
1848
1998
|
|
|
1849
1999
|
.gradient-card-inner {
|
|
1850
2000
|
background: var(--bg-card);
|
|
1851
|
-
border-radius:
|
|
2001
|
+
border-radius: 23px;
|
|
1852
2002
|
padding: 1.5rem;
|
|
1853
2003
|
}
|
|
1854
2004
|
|
|
@@ -2284,7 +2434,7 @@ html {
|
|
|
2284
2434
|
backdrop-filter: blur(20px);
|
|
2285
2435
|
-webkit-backdrop-filter: blur(20px);
|
|
2286
2436
|
border: 1px solid rgba(255, 255, 255, 0.3);
|
|
2287
|
-
border-radius:
|
|
2437
|
+
border-radius: 24px;
|
|
2288
2438
|
box-shadow:
|
|
2289
2439
|
0 8px 32px rgba(0, 0, 0, 0.08),
|
|
2290
2440
|
inset 0 1px 0 rgba(255, 255, 255, 0.5);
|
|
@@ -2472,3 +2622,58 @@ html {
|
|
|
2472
2622
|
animation: fadeInScale 0.2s ease-out;
|
|
2473
2623
|
}
|
|
2474
2624
|
}
|
|
2625
|
+
|
|
2626
|
+
/* =====================================================
|
|
2627
|
+
THEME EFFECTS — token-driven, so they restyle automatically with the active
|
|
2628
|
+
brand/accent palette (and any YUNUI_THEME_PRESETS combo). Drive a whole hero
|
|
2629
|
+
or CTA off the current theme with one class.
|
|
2630
|
+
===================================================== */
|
|
2631
|
+
|
|
2632
|
+
/* Diagonal brand → accent gradient fill. */
|
|
2633
|
+
.bg-brand-gradient {
|
|
2634
|
+
background-image: linear-gradient(135deg, var(--brand-solid-strong), var(--accent-solid-strong));
|
|
2635
|
+
}
|
|
2636
|
+
|
|
2637
|
+
/* Same gradient, clipped to text — for headlines that pick up the theme. */
|
|
2638
|
+
.text-brand-gradient {
|
|
2639
|
+
background-image: linear-gradient(120deg, var(--brand-solid-strong), var(--accent-solid-strong));
|
|
2640
|
+
-webkit-background-clip: text;
|
|
2641
|
+
background-clip: text;
|
|
2642
|
+
color: transparent;
|
|
2643
|
+
}
|
|
2644
|
+
|
|
2645
|
+
/* Soft brand glow (a hairline ring + diffuse shadow), tuned via alpha tokens. */
|
|
2646
|
+
.glow-brand {
|
|
2647
|
+
box-shadow: 0 0 0 1px var(--brand-alpha-weak), 0 10px 34px -8px var(--brand-alpha-medium);
|
|
2648
|
+
}
|
|
2649
|
+
.glow-accent {
|
|
2650
|
+
box-shadow: 0 0 0 1px var(--accent-alpha-weak), 0 10px 34px -8px var(--accent-alpha-medium);
|
|
2651
|
+
}
|
|
2652
|
+
|
|
2653
|
+
/* Slowly drifting brand→accent sheen for hero surfaces (pauses on reduced-motion). */
|
|
2654
|
+
.bg-brand-sheen {
|
|
2655
|
+
background-image: linear-gradient(110deg, var(--brand-solid-strong), var(--accent-solid-strong), var(--brand-solid-strong));
|
|
2656
|
+
background-size: 200% 100%;
|
|
2657
|
+
animation: yunui-sheen 6s linear infinite;
|
|
2658
|
+
}
|
|
2659
|
+
@keyframes yunui-sheen {
|
|
2660
|
+
to {
|
|
2661
|
+
background-position: -200% 0;
|
|
2662
|
+
}
|
|
2663
|
+
}
|
|
2664
|
+
|
|
2665
|
+
/* Reduced-motion reset — when the user asks for less motion, neutralize all
|
|
2666
|
+
animations/transitions (skeleton shimmer, marquee, shimmer buttons, pulses,
|
|
2667
|
+
typing cursors, particles, framer-motion, Radix data-state animations…).
|
|
2668
|
+
Kept last so it wins the cascade. Animations collapse to a single, instant
|
|
2669
|
+
frame rather than vanishing, so end-states still render. */
|
|
2670
|
+
@media (prefers-reduced-motion: reduce) {
|
|
2671
|
+
*,
|
|
2672
|
+
::before,
|
|
2673
|
+
::after {
|
|
2674
|
+
animation-duration: 0.01ms !important;
|
|
2675
|
+
animation-iteration-count: 1 !important;
|
|
2676
|
+
transition-duration: 0.01ms !important;
|
|
2677
|
+
scroll-behavior: auto !important;
|
|
2678
|
+
}
|
|
2679
|
+
}
|