@passui/tokens 0.1.3 → 0.1.5
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/dist/accent.d.ts +28 -0
- package/dist/accent.js +127 -0
- package/dist/color.d.ts +56 -0
- package/dist/color.js +63 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +7 -0
- package/dist/layout.d.ts +33 -0
- package/dist/layout.js +35 -0
- package/dist/motion.d.ts +65 -0
- package/dist/motion.js +90 -0
- package/dist/theme-css.d.ts +10 -0
- package/dist/theme-css.js +92 -0
- package/dist/typography.d.ts +94 -0
- package/dist/typography.js +89 -0
- package/package.json +61 -56
- package/styles/base.css +94 -77
- package/styles/globals.css +5 -0
- package/styles/styles.css +40 -35
- package/styles/typeset.css +896 -681
- package/styles/utilities.css +367 -140
- package/theme.css +8 -0
- package/src/accent.ts +0 -157
- package/src/color.ts +0 -113
- package/src/index.ts +0 -6
- package/src/layout.ts +0 -34
- package/src/motion.ts +0 -31
- package/src/theme-css.ts +0 -101
- package/src/typography.ts +0 -99
package/styles/utilities.css
CHANGED
|
@@ -25,32 +25,32 @@
|
|
|
25
25
|
* by every glass surface.
|
|
26
26
|
*/
|
|
27
27
|
:root {
|
|
28
|
-
|
|
28
|
+
--grain-sea-salt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
/** Centered page container with comfortable gutters. */
|
|
32
32
|
@utility container {
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
margin-inline: auto;
|
|
34
|
+
padding-inline: 1.5rem;
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
@media (width >= --theme(--breakpoint-sm)) {
|
|
37
|
+
max-width: none;
|
|
38
|
+
}
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
@media (width >= 1440px) {
|
|
41
|
+
padding-inline: 2rem;
|
|
42
|
+
max-width: 1440px;
|
|
43
|
+
}
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
/** Scrollable without a visible scrollbar. */
|
|
47
47
|
@utility no-scrollbar {
|
|
48
|
-
|
|
49
|
-
|
|
48
|
+
scrollbar-width: none;
|
|
49
|
+
-ms-overflow-style: none;
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
&::-webkit-scrollbar {
|
|
52
|
+
display: none;
|
|
53
|
+
}
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
/**
|
|
@@ -58,13 +58,13 @@
|
|
|
58
58
|
* reads as "there's more" rather than as broken layout.
|
|
59
59
|
*/
|
|
60
60
|
@utility scroll-fade-x {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
61
|
+
mask-image: linear-gradient(
|
|
62
|
+
to right,
|
|
63
|
+
transparent,
|
|
64
|
+
#000 14px,
|
|
65
|
+
#000 calc(100% - 14px),
|
|
66
|
+
transparent
|
|
67
|
+
);
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
/**
|
|
@@ -73,36 +73,36 @@
|
|
|
73
73
|
* slight tilt in opposite directions.
|
|
74
74
|
*/
|
|
75
75
|
@utility dualTone {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
76
|
+
cursor: pointer;
|
|
77
|
+
color: currentcolor;
|
|
78
|
+
stroke-width: 2;
|
|
79
|
+
|
|
80
|
+
& path {
|
|
81
|
+
transform-box: fill-box;
|
|
82
|
+
transition:
|
|
83
|
+
opacity 200ms ease,
|
|
84
|
+
transform 200ms var(--ease-emphasized);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
& path:first-child {
|
|
88
|
+
opacity: 80%;
|
|
89
|
+
transform-origin: 0% 100%;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
& path:not(:first-child) {
|
|
93
|
+
opacity: 40%;
|
|
94
|
+
transform-origin: 100% 100%;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.group:hover & path:first-child {
|
|
98
|
+
opacity: 100%;
|
|
99
|
+
transform: rotate(-3deg);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.group:hover & path:not(:first-child) {
|
|
103
|
+
opacity: 100%;
|
|
104
|
+
transform: rotate(3deg);
|
|
105
|
+
}
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
/**
|
|
@@ -118,29 +118,32 @@
|
|
|
118
118
|
* With Reduce Transparency it becomes solid, as on Apple platforms.
|
|
119
119
|
*/
|
|
120
120
|
@utility glass {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
121
|
+
background-color: var(--color-glass-tint);
|
|
122
|
+
background-image:
|
|
123
|
+
linear-gradient(
|
|
124
|
+
135deg,
|
|
125
|
+
var(--color-glass-sheen),
|
|
126
|
+
transparent 42%,
|
|
127
|
+
transparent 70%,
|
|
128
|
+
color-mix(in srgb, var(--color-glass-sheen) 50%, transparent)
|
|
129
|
+
),
|
|
130
|
+
var(--grain-sea-salt);
|
|
131
|
+
backdrop-filter: blur(14px) saturate(150%) brightness(1);
|
|
132
|
+
box-shadow:
|
|
133
|
+
inset 1px 1.5px 0 -0.5px
|
|
134
|
+
color-mix(in srgb, var(--color-glass-specular) 75%, transparent),
|
|
135
|
+
inset -1px -1px 0 -0.5px
|
|
136
|
+
color-mix(in srgb, var(--color-glass-specular) 35%, transparent),
|
|
137
|
+
inset 0 0 0 0.5px var(--color-glass-rim),
|
|
138
|
+
inset 0 0 16px 0
|
|
139
|
+
color-mix(in srgb, var(--color-glass-sheen) 50%, transparent),
|
|
140
|
+
0 10px 30px -10px var(--color-shadow-floating);
|
|
141
|
+
|
|
142
|
+
@media (prefers-reduced-transparency: reduce) {
|
|
143
|
+
background-color: var(--color-elevated);
|
|
144
|
+
background-image: none;
|
|
145
|
+
backdrop-filter: none;
|
|
146
|
+
}
|
|
144
147
|
}
|
|
145
148
|
|
|
146
149
|
/*
|
|
@@ -149,12 +152,13 @@
|
|
|
149
152
|
* Apple platforms keep the clear glass above.
|
|
150
153
|
*/
|
|
151
154
|
:root[data-os="android"] .glass {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
155
|
+
background-color: var(--color-elevated);
|
|
156
|
+
background-image: none;
|
|
157
|
+
backdrop-filter: none;
|
|
158
|
+
box-shadow:
|
|
159
|
+
inset 0 0 0 0.5px
|
|
160
|
+
color-mix(in srgb, var(--color-separator) 60%, transparent),
|
|
161
|
+
0 8px 24px -10px var(--color-shadow-floating);
|
|
158
162
|
}
|
|
159
163
|
|
|
160
164
|
/**
|
|
@@ -162,44 +166,45 @@
|
|
|
162
166
|
* as the selected tab: the accent at a quarter strength, lit at its rim.
|
|
163
167
|
*/
|
|
164
168
|
@utility glass-lens {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
169
|
+
background-color: color-mix(in srgb, var(--color-accent) 24%, transparent);
|
|
170
|
+
background-image: linear-gradient(
|
|
171
|
+
160deg,
|
|
172
|
+
color-mix(in srgb, var(--color-glass-specular) 55%, transparent),
|
|
173
|
+
transparent 45%
|
|
174
|
+
);
|
|
175
|
+
box-shadow:
|
|
176
|
+
inset 1px 1.5px 0 -0.5px var(--color-glass-specular),
|
|
177
|
+
inset 0 0 0 0.5px color-mix(in srgb, var(--color-accent) 45%, transparent),
|
|
178
|
+
inset 0 0 14px 0 color-mix(in srgb, var(--color-accent) 30%, transparent),
|
|
179
|
+
0 3px 10px -3px color-mix(in srgb, var(--color-accent) 55%, transparent);
|
|
176
180
|
}
|
|
177
181
|
|
|
178
182
|
/* On Android the current choice is a plain tinted pill, matching its solid bar. */
|
|
179
183
|
:root[data-os="android"] .glass-lens {
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
184
|
+
background-color: color-mix(in srgb, var(--color-accent) 22%, transparent);
|
|
185
|
+
background-image: none;
|
|
186
|
+
box-shadow: none;
|
|
183
187
|
}
|
|
184
188
|
|
|
185
189
|
/** A quieter glass for large panes such as the sidebar. */
|
|
186
190
|
@utility glass-pane {
|
|
187
|
-
|
|
188
|
-
|
|
191
|
+
background-color: color-mix(in srgb, var(--color-sidebar) 78%, transparent);
|
|
192
|
+
backdrop-filter: blur(30px) saturate(160%);
|
|
189
193
|
}
|
|
190
194
|
|
|
191
195
|
/** Glass for edge-attached bars (headers): content scrolls beneath it. */
|
|
192
196
|
@utility glass-bar {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
197
|
+
background-color: color-mix(in srgb, var(--color-paper) 72%, transparent);
|
|
198
|
+
backdrop-filter: blur(20px) saturate(180%);
|
|
199
|
+
box-shadow: inset 0 -1px 0 0
|
|
200
|
+
color-mix(in srgb, var(--color-separator) 30%, transparent);
|
|
196
201
|
}
|
|
197
202
|
|
|
198
203
|
/* Android's web view drops the blur under sticky bars, which left them see-through;
|
|
199
204
|
Android's own top bars are solid anyway. */
|
|
200
205
|
:root[data-os="android"] .glass-bar {
|
|
201
|
-
|
|
202
|
-
|
|
206
|
+
background-color: var(--color-paper);
|
|
207
|
+
backdrop-filter: none;
|
|
203
208
|
}
|
|
204
209
|
|
|
205
210
|
/**
|
|
@@ -208,21 +213,22 @@
|
|
|
208
213
|
* through their parent's backdrop).
|
|
209
214
|
*/
|
|
210
215
|
@utility glass-menu {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
216
|
+
background-color: color-mix(in srgb, var(--color-elevated) 97%, transparent);
|
|
217
|
+
background-image: var(--grain-sea-salt);
|
|
218
|
+
backdrop-filter: blur(24px) saturate(180%);
|
|
219
|
+
box-shadow:
|
|
220
|
+
inset 0 0.5px 0
|
|
221
|
+
color-mix(in srgb, var(--color-glass-specular) 40%, transparent),
|
|
222
|
+
inset 0 0 0 0.5px var(--color-glass-rim),
|
|
223
|
+
0 18px 48px -12px var(--color-shadow-menu);
|
|
218
224
|
}
|
|
219
225
|
|
|
220
226
|
/** Neutral cards retain a subtle inset edge in either appearance. */
|
|
221
227
|
@utility card-surface {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
228
|
+
background-color: var(--color-paper);
|
|
229
|
+
box-shadow:
|
|
230
|
+
inset 0 0.5px 0 var(--color-glass-highlight),
|
|
231
|
+
inset 0 0 0 0.5px var(--color-glass-rim);
|
|
226
232
|
}
|
|
227
233
|
|
|
228
234
|
/**
|
|
@@ -230,39 +236,260 @@
|
|
|
230
236
|
* accent glow when focused.
|
|
231
237
|
*/
|
|
232
238
|
@utility control-field {
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
239
|
+
background-color: var(--color-fill);
|
|
240
|
+
box-shadow: inset 0 0 0 1px
|
|
241
|
+
color-mix(in srgb, var(--color-separator) 55%, transparent);
|
|
242
|
+
transition:
|
|
243
|
+
background-color 160ms var(--ease-standard),
|
|
244
|
+
box-shadow 160ms var(--ease-standard);
|
|
245
|
+
|
|
246
|
+
&:hover {
|
|
247
|
+
box-shadow: inset 0 0 0 1px var(--color-separator);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
&:focus,
|
|
251
|
+
&:focus-within {
|
|
252
|
+
outline: none;
|
|
253
|
+
background-color: var(--color-elevated);
|
|
254
|
+
box-shadow:
|
|
255
|
+
inset 0 0 0 1px
|
|
256
|
+
color-mix(in srgb, var(--color-accent) 70%, var(--color-separator)),
|
|
257
|
+
0 0 0 1px color-mix(in srgb, var(--color-accent) 30%, transparent);
|
|
258
|
+
}
|
|
251
259
|
}
|
|
252
260
|
|
|
253
261
|
/** A neutral window ground with quiet reflected accent at its edges. */
|
|
254
262
|
@utility app-ground {
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
263
|
+
background-color: var(--color-background);
|
|
264
|
+
background-image:
|
|
265
|
+
radial-gradient(
|
|
266
|
+
ellipse at 0% 0%,
|
|
267
|
+
color-mix(in srgb, var(--color-accent-soft) 24%, transparent),
|
|
268
|
+
transparent 62%
|
|
269
|
+
),
|
|
270
|
+
radial-gradient(
|
|
271
|
+
ellipse at 100% 100%,
|
|
272
|
+
color-mix(in srgb, var(--color-accent-soft) 12%, transparent),
|
|
273
|
+
transparent 58%
|
|
274
|
+
);
|
|
259
275
|
}
|
|
260
276
|
|
|
261
277
|
/** Native scrolling, with real content room below floating navigation. */
|
|
262
278
|
@utility scroll-surface {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
279
|
+
min-height: 0;
|
|
280
|
+
overflow-y: auto;
|
|
281
|
+
overscroll-behavior-y: contain;
|
|
282
|
+
scroll-padding-block: 1rem var(--scroll-clearance, 1rem);
|
|
283
|
+
padding-bottom: var(--scroll-clearance, 1rem);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/* Spring easing from the motion tokens, for transitions that settle like a
|
|
287
|
+
physical object: `transition spring-snappy` on a control, `spring-smooth` on a panel. */
|
|
288
|
+
@utility spring-smooth {
|
|
289
|
+
transition-timing-function: var(--spring-smooth);
|
|
290
|
+
transition-duration: var(--spring-smooth-duration);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
@utility spring-snappy {
|
|
294
|
+
transition-timing-function: var(--spring-snappy);
|
|
295
|
+
transition-duration: var(--spring-snappy-duration);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
@utility spring-bouncy {
|
|
299
|
+
transition-timing-function: var(--spring-bouncy);
|
|
300
|
+
transition-duration: var(--spring-bouncy-duration);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/* Zag writes the content's measured size to --height; these ease it open and shut. */
|
|
304
|
+
@keyframes passui-collapse-open {
|
|
305
|
+
from {
|
|
306
|
+
height: 0;
|
|
307
|
+
opacity: 0;
|
|
308
|
+
}
|
|
309
|
+
to {
|
|
310
|
+
height: var(--height);
|
|
311
|
+
opacity: 1;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
@keyframes passui-draw {
|
|
316
|
+
from {
|
|
317
|
+
stroke-dashoffset: 1;
|
|
318
|
+
}
|
|
319
|
+
to {
|
|
320
|
+
stroke-dashoffset: 0;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
@keyframes passui-grow {
|
|
325
|
+
from {
|
|
326
|
+
transform: scaleY(0);
|
|
327
|
+
}
|
|
328
|
+
to {
|
|
329
|
+
transform: scaleY(1);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
@keyframes passui-fade-in {
|
|
334
|
+
from {
|
|
335
|
+
opacity: 0;
|
|
336
|
+
}
|
|
337
|
+
to {
|
|
338
|
+
opacity: 1;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
@keyframes passui-step-in {
|
|
343
|
+
from {
|
|
344
|
+
opacity: 0;
|
|
345
|
+
transform: translateY(8px);
|
|
346
|
+
}
|
|
347
|
+
to {
|
|
348
|
+
opacity: 1;
|
|
349
|
+
transform: none;
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
@keyframes passui-collapse-close {
|
|
354
|
+
from {
|
|
355
|
+
height: var(--height);
|
|
356
|
+
opacity: 1;
|
|
357
|
+
}
|
|
358
|
+
to {
|
|
359
|
+
height: 0;
|
|
360
|
+
opacity: 0;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
@utility collapse-motion {
|
|
365
|
+
overflow: hidden;
|
|
366
|
+
|
|
367
|
+
&[data-state="open"] {
|
|
368
|
+
animation: passui-collapse-open var(--spring-smooth-duration)
|
|
369
|
+
var(--spring-smooth);
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
&[data-state="closed"] {
|
|
373
|
+
animation: passui-collapse-close var(--duration-fast) var(--ease-standard)
|
|
374
|
+
forwards;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
@media (prefers-reduced-motion: reduce) {
|
|
378
|
+
&[data-state] {
|
|
379
|
+
animation: none;
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/*
|
|
385
|
+
* iOS liquid glass. One material for every floating surface: a tinted
|
|
386
|
+
* translucent fill, 2xl blur with 180% saturation so what is behind it glows
|
|
387
|
+
* through, a lit top rim, a crisp hairline and layered elevation shadows.
|
|
388
|
+
* Continuous (squircle) corners apply wherever the browser supports them.
|
|
389
|
+
*/
|
|
390
|
+
@utility liquid-glass {
|
|
391
|
+
background-color: var(--color-glass-tint);
|
|
392
|
+
background-image:
|
|
393
|
+
linear-gradient(
|
|
394
|
+
180deg,
|
|
395
|
+
color-mix(in srgb, var(--color-glass-specular) 38%, transparent),
|
|
396
|
+
transparent 42%
|
|
397
|
+
),
|
|
398
|
+
var(--grain-sea-salt);
|
|
399
|
+
backdrop-filter: blur(40px) saturate(180%);
|
|
400
|
+
-webkit-backdrop-filter: blur(40px) saturate(180%);
|
|
401
|
+
box-shadow:
|
|
402
|
+
inset 0 1px 0 0 var(--color-glass-specular),
|
|
403
|
+
inset 0 0 0 0.5px var(--color-glass-rim),
|
|
404
|
+
0 1px 2px rgb(0 0 0 / 0.06),
|
|
405
|
+
0 8px 24px -8px var(--color-shadow-menu),
|
|
406
|
+
0 28px 64px -24px var(--color-shadow-floating);
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/* The same glass, denser, for menus and lists where text must stay crisp. */
|
|
410
|
+
@utility liquid-glass-dense {
|
|
411
|
+
background-color: color-mix(in srgb, var(--color-elevated) 86%, transparent);
|
|
412
|
+
background-image:
|
|
413
|
+
linear-gradient(
|
|
414
|
+
180deg,
|
|
415
|
+
color-mix(in srgb, var(--color-glass-specular) 30%, transparent),
|
|
416
|
+
transparent 36%
|
|
417
|
+
),
|
|
418
|
+
var(--grain-sea-salt);
|
|
419
|
+
backdrop-filter: blur(40px) saturate(180%);
|
|
420
|
+
-webkit-backdrop-filter: blur(40px) saturate(180%);
|
|
421
|
+
box-shadow:
|
|
422
|
+
inset 0 1px 0 0 var(--color-glass-specular),
|
|
423
|
+
inset 0 0 0 0.5px var(--color-glass-rim),
|
|
424
|
+
0 1px 2px rgb(0 0 0 / 0.06),
|
|
425
|
+
0 10px 30px -8px var(--color-shadow-menu),
|
|
426
|
+
0 30px 70px -26px var(--color-shadow-floating);
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
/*
|
|
430
|
+
* A panel the water drop animates (`data-morph`, set by `useWaterDrop`): its own
|
|
431
|
+
* scale, slide and fade transitions step aside so only the drop moves. Opacity is
|
|
432
|
+
* left alone on purpose, since the drop's animation overrides it anyway.
|
|
433
|
+
*/
|
|
434
|
+
@utility morph-reset {
|
|
435
|
+
/* The !important is deliberate: each panel's own `data-starting-style` and
|
|
436
|
+
`data-ending-style` utilities have the same specificity and must lose. */
|
|
437
|
+
&[data-morph] {
|
|
438
|
+
/* biome-ignore lint/complexity/noImportantStyles: must beat same-specificity state utilities */
|
|
439
|
+
transition: none !important;
|
|
440
|
+
/* biome-ignore lint/complexity/noImportantStyles: must beat same-specificity state utilities */
|
|
441
|
+
translate: none !important;
|
|
442
|
+
/* biome-ignore lint/complexity/noImportantStyles: must beat same-specificity state utilities */
|
|
443
|
+
scale: none !important;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
/* Android keeps the shapes on a solid surface. */
|
|
448
|
+
:root[data-os="android"] :is(.liquid-glass, .liquid-glass-dense) {
|
|
449
|
+
background-image: none;
|
|
450
|
+
background-color: var(--color-elevated);
|
|
451
|
+
backdrop-filter: none;
|
|
452
|
+
-webkit-backdrop-filter: none;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
/* Continuous iOS corners where `corner-shape` exists; plain rounding elsewhere. */
|
|
456
|
+
@utility squircle {
|
|
457
|
+
@supports (corner-shape: squircle) {
|
|
458
|
+
corner-shape: squircle;
|
|
459
|
+
border-radius: calc(var(--squircle-radius, 1.5rem) * 1.6);
|
|
460
|
+
}
|
|
461
|
+
border-radius: var(--squircle-radius, 1.5rem);
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
/* iOS inset grouped lists: rows on one rounded plate, with hairlines inset from the leading edge. */
|
|
465
|
+
@utility inset-group {
|
|
466
|
+
background-color: var(--color-elevated);
|
|
467
|
+
border-radius: 1.25rem;
|
|
468
|
+
overflow: hidden;
|
|
469
|
+
/* A visible hairline, a faint lit top rim for the glass edge, and a barely there lift. */
|
|
470
|
+
box-shadow:
|
|
471
|
+
inset 0 0 0 0.5px
|
|
472
|
+
color-mix(in srgb, var(--color-separator) 90%, transparent),
|
|
473
|
+
inset 0 1px 0 0
|
|
474
|
+
color-mix(in srgb, var(--color-glass-specular) 60%, transparent),
|
|
475
|
+
0 1px 2px rgb(0 0 0 / 0.04);
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
/* The hairline between grouped rows. */
|
|
479
|
+
@utility group-hairline {
|
|
480
|
+
& + & {
|
|
481
|
+
box-shadow: inset 0 0.5px 0 0 var(--color-separator);
|
|
482
|
+
background-clip: padding-box;
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
/* The component showcase sliding by. */
|
|
487
|
+
@theme {
|
|
488
|
+
--animate-marquee: marquee 60s linear infinite;
|
|
489
|
+
|
|
490
|
+
@keyframes marquee {
|
|
491
|
+
to {
|
|
492
|
+
transform: translateX(-100%);
|
|
493
|
+
}
|
|
494
|
+
}
|
|
268
495
|
}
|
package/theme.css
CHANGED
|
@@ -83,8 +83,16 @@
|
|
|
83
83
|
--duration-fast: 200ms;
|
|
84
84
|
--duration-normal: 300ms;
|
|
85
85
|
--duration-slow: 450ms;
|
|
86
|
+
--duration-sheet: 500ms;
|
|
86
87
|
--ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
|
|
87
88
|
--ease-emphasized: cubic-bezier(0.3, 1.3, 0.4, 1);
|
|
89
|
+
--ease-sheet: cubic-bezier(0.32, 0.72, 0, 1);
|
|
90
|
+
--spring-smooth: linear(0, 0.0273, 0.095, 0.1856, 0.2867, 0.3895, 0.4881, 0.579, 0.6602, 0.7308, 0.791, 0.8411, 0.8821, 0.9151, 0.9411, 0.9611, 0.9763, 0.9874, 0.9954, 1.0009, 1.0044, 1.0065, 1.0076, 1.0079, 1.0076, 1.0071, 1.0064, 1.0056, 1.0048, 1.004, 1.0033, 1.0027, 1.0021, 1.0017, 1.0013, 1);
|
|
91
|
+
--spring-smooth-duration: 567ms;
|
|
92
|
+
--spring-snappy: linear(0, 0.0443, 0.1553, 0.3036, 0.4655, 0.6236, 0.7656, 0.8845, 0.9774, 1.0442, 1.0872, 1.1101, 1.1168, 1.1117, 1.0989, 1.0816, 1.0627, 1.0442, 1.0276, 1.0137, 1.0028, 0.9949, 0.9899, 0.9872, 0.9864, 0.9869, 0.9884, 0.9904, 0.9927, 0.9948, 0.9968, 0.9984, 0.9997, 1.0006, 1.0012, 1.0015, 1.0016, 1.0015, 1.0014, 1.0011, 1);
|
|
93
|
+
--spring-snappy-duration: 650ms;
|
|
94
|
+
--spring-bouncy: linear(0, 0.0273, 0.1002, 0.2054, 0.3309, 0.4658, 0.6011, 0.7297, 0.8461, 0.9467, 1.0295, 1.0937, 1.1399, 1.1692, 1.1836, 1.1854, 1.1771, 1.1611, 1.14, 1.1158, 1.0905, 1.0657, 1.0424, 1.0217, 1.0042, 0.9899, 0.9792, 0.9717, 0.9673, 0.9655, 0.9659, 0.968, 0.9713, 0.9755, 0.9801, 0.9848, 0.9893, 0.9935, 0.9972, 1.0002, 1.0026, 1.0044, 1.0056, 1.0063, 1.0064, 1.0062, 1.0058, 1.0051, 1.0043, 1.0034, 1.0025, 1.0017, 1.001, 1.0003, 0.9998, 0.9994, 0.9991, 0.9989, 0.9988, 0.9988, 0.9989, 0.999, 1);
|
|
95
|
+
--spring-bouncy-duration: 1017ms;
|
|
88
96
|
}
|
|
89
97
|
|
|
90
98
|
:root { color-scheme: light dark; }
|