@glasshome/ui 1.21.1 → 1.22.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 (146) hide show
  1. package/dist/index.d.ts +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/lib/use-is-mobile.d.ts +3 -1
  4. package/dist/solid/index.d.ts +9 -9
  5. package/dist/solid/index.js +5431 -5424
  6. package/dist/solid/sonner.d.ts +1 -0
  7. package/dist/{utils-CMk7R3zM.js → utils-D5blHO4O.js} +624 -622
  8. package/package.json +128 -126
  9. package/scripts/check-gallery.ts +142 -142
  10. package/scripts/check-pack.ts +13 -13
  11. package/scripts/check-structural-classes.ts +20 -20
  12. package/scripts/check-tokens.ts +27 -27
  13. package/scripts/check-ui-drift.mjs +103 -103
  14. package/src/index.ts +75 -80
  15. package/src/lib/alert-tones.ts +41 -41
  16. package/src/lib/anchor-placement.ts +21 -21
  17. package/src/lib/button-variants.ts +28 -28
  18. package/src/lib/card-classes.ts +9 -9
  19. package/src/lib/carousel-classes.ts +14 -14
  20. package/src/lib/glass-tone.ts +11 -11
  21. package/src/lib/input-classes.ts +6 -6
  22. package/src/lib/layers.ts +4 -4
  23. package/src/lib/logo-lockup.ts +8 -8
  24. package/src/lib/menu-classes.ts +2 -2
  25. package/src/lib/motion-classes.ts +8 -8
  26. package/src/lib/motion-window.ts +24 -24
  27. package/src/lib/overlay-classes.ts +6 -6
  28. package/src/lib/pill-classes.ts +3 -3
  29. package/src/lib/position-bar-classes.ts +1 -1
  30. package/src/lib/spotlight-geometry.ts +67 -67
  31. package/src/lib/thumb-classes.ts +2 -2
  32. package/src/lib/tier-badge.ts +16 -16
  33. package/src/lib/use-is-mobile.ts +17 -14
  34. package/src/lib/utils.ts +1 -1
  35. package/src/solid/accordion.tsx +41 -41
  36. package/src/solid/alert-dialog.tsx +95 -95
  37. package/src/solid/alert.tsx +88 -88
  38. package/src/solid/area-picker.tsx +204 -204
  39. package/src/solid/aspect-ratio.tsx +13 -13
  40. package/src/solid/avatar.tsx +27 -27
  41. package/src/solid/badge.tsx +49 -49
  42. package/src/solid/bottom-sheet/arbitration.ts +22 -22
  43. package/src/solid/bottom-sheet/bottom-sheet.tsx +394 -394
  44. package/src/solid/bottom-sheet/drag-controller.ts +201 -201
  45. package/src/solid/bottom-sheet/focus-trap.ts +51 -47
  46. package/src/solid/bottom-sheet/index.ts +12 -12
  47. package/src/solid/bottom-sheet/keyboard.ts +25 -25
  48. package/src/solid/bottom-sheet/scroll-lock.ts +46 -46
  49. package/src/solid/bottom-sheet/state-machine.ts +28 -28
  50. package/src/solid/bottom-sheet/velocity.ts +29 -29
  51. package/src/solid/breadcrumb.tsx +76 -76
  52. package/src/solid/button-group.tsx +46 -46
  53. package/src/solid/button.tsx +19 -19
  54. package/src/solid/card.tsx +67 -67
  55. package/src/solid/carousel.tsx +246 -246
  56. package/src/solid/charts.tsx +253 -253
  57. package/src/solid/checkbox.tsx +51 -51
  58. package/src/solid/collapsible.tsx +22 -22
  59. package/src/solid/color-disc.tsx +213 -213
  60. package/src/solid/color-slider.tsx +81 -81
  61. package/src/solid/color-wheel.tsx +61 -61
  62. package/src/solid/context-menu.tsx +63 -63
  63. package/src/solid/copy-button.tsx +31 -31
  64. package/src/solid/count-pill.tsx +11 -11
  65. package/src/solid/dashboard-preview.tsx +104 -104
  66. package/src/solid/data-table.tsx +228 -228
  67. package/src/solid/dialog-parts.tsx +127 -127
  68. package/src/solid/dialog.tsx +113 -113
  69. package/src/solid/dock-paging.ts +9 -9
  70. package/src/solid/dock.tsx +339 -339
  71. package/src/solid/docked-panel.tsx +35 -35
  72. package/src/solid/dropdown-menu.tsx +77 -77
  73. package/src/solid/empty.tsx +70 -70
  74. package/src/solid/entity-data.ts +38 -38
  75. package/src/solid/entity-selector.tsx +634 -634
  76. package/src/solid/field.tsx +205 -205
  77. package/src/solid/form.tsx +159 -159
  78. package/src/solid/hero-action.tsx +85 -85
  79. package/src/solid/hover-card.tsx +11 -11
  80. package/src/solid/icon-picker.tsx +401 -401
  81. package/src/solid/icon.tsx +101 -78
  82. package/src/solid/image-picker.tsx +416 -414
  83. package/src/solid/index.ts +265 -304
  84. package/src/solid/input-group.tsx +123 -123
  85. package/src/solid/input-otp.tsx +143 -143
  86. package/src/solid/input.tsx +4 -4
  87. package/src/solid/item.tsx +130 -130
  88. package/src/solid/kbd.tsx +20 -20
  89. package/src/solid/label.tsx +12 -12
  90. package/src/solid/list-reorder.ts +122 -122
  91. package/src/solid/logo.tsx +60 -60
  92. package/src/solid/media-copy.ts +21 -21
  93. package/src/solid/media-store.ts +56 -56
  94. package/src/solid/media-tile.tsx +85 -85
  95. package/src/solid/menu-parts.tsx +164 -164
  96. package/src/solid/number-field.tsx +56 -56
  97. package/src/solid/option-card.tsx +164 -164
  98. package/src/solid/ornament.tsx +43 -43
  99. package/src/solid/overlay.tsx +4 -4
  100. package/src/solid/page-header.tsx +75 -75
  101. package/src/solid/pagination.tsx +80 -80
  102. package/src/solid/password-input.tsx +51 -51
  103. package/src/solid/picker-row.tsx +83 -83
  104. package/src/solid/picker-search.tsx +65 -63
  105. package/src/solid/picker-trigger.tsx +59 -57
  106. package/src/solid/popover.tsx +54 -54
  107. package/src/solid/preview-tile.tsx +67 -67
  108. package/src/solid/progress.tsx +21 -21
  109. package/src/solid/radio-group.tsx +51 -51
  110. package/src/solid/resizable.tsx +128 -128
  111. package/src/solid/responsive-dialog.tsx +134 -134
  112. package/src/solid/schema-form.tsx +743 -743
  113. package/src/solid/scope-indicator.tsx +5 -5
  114. package/src/solid/scroll-area.tsx +16 -16
  115. package/src/solid/section-card.tsx +281 -281
  116. package/src/solid/select.tsx +101 -101
  117. package/src/solid/separator.tsx +25 -25
  118. package/src/solid/settings-row.tsx +122 -122
  119. package/src/solid/sheet.tsx +96 -96
  120. package/src/solid/skeleton.tsx +8 -8
  121. package/src/solid/slider.tsx +132 -132
  122. package/src/solid/sliding-indicator.tsx +280 -265
  123. package/src/solid/sonner.tsx +165 -164
  124. package/src/solid/spinner.tsx +12 -12
  125. package/src/solid/spotlight.tsx +140 -140
  126. package/src/solid/step-indicator.tsx +18 -18
  127. package/src/solid/swatch-picker.tsx +38 -38
  128. package/src/solid/switch.tsx +52 -52
  129. package/src/solid/table.tsx +63 -63
  130. package/src/solid/tabs.tsx +93 -93
  131. package/src/solid/textarea.tsx +8 -8
  132. package/src/solid/toggle-group.tsx +83 -83
  133. package/src/solid/toggle.tsx +33 -33
  134. package/src/solid/tooltip.tsx +16 -16
  135. package/src/solid/widget-card.tsx +90 -90
  136. package/src/solid/widget-identity.tsx +99 -99
  137. package/src/solid/widget-trust-badge.tsx +20 -20
  138. package/src/styles/globals.css +316 -319
  139. package/src/styles/theme.css +448 -448
  140. package/src/tokens/hex.ts +29 -29
  141. package/src/tokens/material.ts +75 -75
  142. package/src/tokens/presets.ts +303 -303
  143. package/src/tokens/readability.ts +32 -32
  144. package/src/tokens/theme-colors.ts +95 -95
  145. package/src/tokens/theme-css.ts +22 -22
  146. package/src/tokens/theme-recipe.ts +106 -106
@@ -1,98 +1,98 @@
1
1
  @theme inline {
2
- --color-background: var(--background);
3
- --color-foreground: var(--foreground);
4
- --color-card: var(--card);
5
- --color-card-foreground: var(--card-foreground);
6
- --color-popover: var(--popover);
7
- --color-popover-foreground: var(--popover-foreground);
8
- --color-primary: var(--primary);
9
- --color-primary-foreground: var(--primary-foreground);
10
- --color-secondary: var(--secondary);
11
- --color-secondary-foreground: var(--secondary-foreground);
12
- --color-muted: var(--muted);
13
- --color-muted-foreground: var(--muted-foreground);
14
- --color-accent: var(--accent);
15
- --color-accent-foreground: var(--accent-foreground);
16
- --color-destructive: var(--destructive);
17
- --color-destructive-foreground: var(--destructive-foreground);
18
- --color-border: var(--border);
19
- --color-input: var(--input);
20
- --color-ring: var(--ring);
21
- --color-scrim: var(--scrim);
22
- --color-success: var(--success);
23
- --color-warning: var(--warning);
24
- --color-primary-tint-foreground: var(--primary-tint-foreground);
25
- --color-accent-tint-foreground: var(--accent-tint-foreground);
26
- --color-warning-tint-foreground: var(--warning-tint-foreground);
27
- --color-love: var(--love);
28
- --color-chart-1: var(--chart-1);
29
- --color-chart-2: var(--chart-2);
30
- --color-chart-3: var(--chart-3);
31
- --color-chart-4: var(--chart-4);
32
- --color-chart-5: var(--chart-5);
33
- --font-sans: var(--font-sans);
34
- --font-mono: var(--font-mono);
35
- --font-serif: var(--font-serif);
36
- --font-caveat: var(--font-caveat);
37
- --font-bebas: var(--font-bebas);
38
-
39
- /* Below --radius-sm: a box small enough that the theme's smallest token would
2
+ --color-background: var(--background);
3
+ --color-foreground: var(--foreground);
4
+ --color-card: var(--card);
5
+ --color-card-foreground: var(--card-foreground);
6
+ --color-popover: var(--popover);
7
+ --color-popover-foreground: var(--popover-foreground);
8
+ --color-primary: var(--primary);
9
+ --color-primary-foreground: var(--primary-foreground);
10
+ --color-secondary: var(--secondary);
11
+ --color-secondary-foreground: var(--secondary-foreground);
12
+ --color-muted: var(--muted);
13
+ --color-muted-foreground: var(--muted-foreground);
14
+ --color-accent: var(--accent);
15
+ --color-accent-foreground: var(--accent-foreground);
16
+ --color-destructive: var(--destructive);
17
+ --color-destructive-foreground: var(--destructive-foreground);
18
+ --color-border: var(--border);
19
+ --color-input: var(--input);
20
+ --color-ring: var(--ring);
21
+ --color-scrim: var(--scrim);
22
+ --color-success: var(--success);
23
+ --color-warning: var(--warning);
24
+ --color-primary-tint-foreground: var(--primary-tint-foreground);
25
+ --color-accent-tint-foreground: var(--accent-tint-foreground);
26
+ --color-warning-tint-foreground: var(--warning-tint-foreground);
27
+ --color-love: var(--love);
28
+ --color-chart-1: var(--chart-1);
29
+ --color-chart-2: var(--chart-2);
30
+ --color-chart-3: var(--chart-3);
31
+ --color-chart-4: var(--chart-4);
32
+ --color-chart-5: var(--chart-5);
33
+ --font-sans: var(--font-sans);
34
+ --font-mono: var(--font-mono);
35
+ --font-serif: var(--font-serif);
36
+ --font-caveat: var(--font-caveat);
37
+ --font-bebas: var(--font-bebas);
38
+
39
+ /* Below --radius-sm: a box small enough that the theme's smallest token would
40
40
  round it into a circle (checkbox, OTP slot). Clamped, so a tiny --radius
41
41
  theme never grows it. */
42
- --radius-xs: min(5px, var(--radius-sm));
43
- --radius-sm: calc(var(--radius) - 4px);
44
- --radius-md: calc(var(--radius) - 2px);
45
- --radius-lg: var(--radius);
46
- --radius-xl: calc(var(--radius) + 4px);
47
- --radius-2xl: calc(var(--radius) + 8px);
48
- --radius-3xl: calc(var(--radius) + 16px);
49
-
50
- --shadow-2xs: var(--shadow-2xs);
51
- --shadow-xs: var(--shadow-xs);
52
- --shadow-sm: var(--shadow-sm);
53
- --shadow: var(--shadow);
54
- --shadow-md: var(--shadow-md);
55
- --shadow-lg: var(--shadow-lg);
56
- --shadow-xl: var(--shadow-xl);
57
- --shadow-2xl: var(--shadow-2xl);
58
-
59
- --animate-collapsible-down: collapsible-down 0.2s ease-out;
60
- --animate-collapsible-up: collapsible-up 0.2s ease-out;
61
-
62
- /* Select "native expand": the panel unfolds out of the trigger edge. Kobalte
42
+ --radius-xs: min(5px, var(--radius-sm));
43
+ --radius-sm: calc(var(--radius) - 4px);
44
+ --radius-md: calc(var(--radius) - 2px);
45
+ --radius-lg: var(--radius);
46
+ --radius-xl: calc(var(--radius) + 4px);
47
+ --radius-2xl: calc(var(--radius) + 8px);
48
+ --radius-3xl: calc(var(--radius) + 16px);
49
+
50
+ --shadow-2xs: var(--shadow-2xs);
51
+ --shadow-xs: var(--shadow-xs);
52
+ --shadow-sm: var(--shadow-sm);
53
+ --shadow: var(--shadow);
54
+ --shadow-md: var(--shadow-md);
55
+ --shadow-lg: var(--shadow-lg);
56
+ --shadow-xl: var(--shadow-xl);
57
+ --shadow-2xl: var(--shadow-2xl);
58
+
59
+ --animate-collapsible-down: collapsible-down 0.2s ease-out;
60
+ --animate-collapsible-up: collapsible-up 0.2s ease-out;
61
+
62
+ /* Select "native expand": the panel unfolds out of the trigger edge. Kobalte
63
63
  * exposes no data-side, only --kb-select-content-transform-origin (set to the
64
64
  * trigger edge per placement), so a scaleY from that origin grows the panel
65
65
  * down when it opens below and up when above, no direction class needed. */
66
- --animate-select-in: select-in var(--duration-expand) var(--ease-expand) both;
67
- --animate-select-out: select-out var(--duration-micro) var(--ease-contract) both;
66
+ --animate-select-in: select-in var(--duration-expand) var(--ease-expand) both;
67
+ --animate-select-out: select-out var(--duration-micro) var(--ease-contract) both;
68
68
 
69
- /* Trigger morph: the panel is anchored over the trigger's top edge and starts
69
+ /* Trigger morph: the panel is anchored over the trigger's top edge and starts
70
70
  * clipped to the trigger's own box and radius (--morph-w/h/radius, written by
71
71
  * the content from its trigger; --morph-x/y when the panel had to shift off
72
72
  * the trigger's corner to stay on screen), then unrolls into its own box. The pill
73
73
  * becomes the panel; nothing scales, so no row or radius distorts. */
74
- --animate-morph-in: morph-in var(--duration-morph) var(--ease-morph) both;
75
- --animate-morph-out: morph-out calc(var(--duration-morph) / 2) var(--ease-contract) both;
76
- /* Unfilled once done, so the anchored panel's clip lets go and its shadow shows. */
77
- --animate-anchored-in: morph-in var(--duration-morph) var(--ease-morph) backwards;
74
+ --animate-morph-in: morph-in var(--duration-morph) var(--ease-morph) both;
75
+ --animate-morph-out: morph-out calc(var(--duration-morph) / 2) var(--ease-contract) both;
76
+ /* Unfilled once done, so the anchored panel's clip lets go and its shadow shows. */
77
+ --animate-anchored-in: morph-in var(--duration-morph) var(--ease-morph) backwards;
78
78
  }
79
79
 
80
80
  @keyframes collapsible-down {
81
- from {
82
- height: 0;
83
- }
84
- to {
85
- height: var(--kb-collapsible-content-height);
86
- }
81
+ from {
82
+ height: 0;
83
+ }
84
+ to {
85
+ height: var(--kb-collapsible-content-height);
86
+ }
87
87
  }
88
88
 
89
89
  @keyframes collapsible-up {
90
- from {
91
- height: var(--kb-collapsible-content-height);
92
- }
93
- to {
94
- height: 0;
95
- }
90
+ from {
91
+ height: var(--kb-collapsible-content-height);
92
+ }
93
+ to {
94
+ height: 0;
95
+ }
96
96
  }
97
97
 
98
98
  /* The listbox opens overlapping the trigger (overlap + gutter 0), so its top row
@@ -101,552 +101,552 @@
101
101
  * expand to the bottom rather than a separate box dropping in. No scale, so the
102
102
  * option text never squishes; opacity fades in slightly so it isn't a hard wipe. */
103
103
  @keyframes select-in {
104
- /* The trigger opens on pointerdown and the panel appears under the cursor, so
104
+ /* The trigger opens on pointerdown and the panel appears under the cursor, so
105
105
  * the same click's pointerup would land on an option (press-drag-select) and
106
106
  * instantly pick/close. Ignore pointer events for the open animation so that
107
107
  * release passes through and the panel stays open; a fresh click then selects. */
108
- from {
109
- opacity: 0;
110
- clip-path: inset(0 0 100% 0 round var(--radius-md));
111
- pointer-events: none;
112
- }
113
- 90% {
114
- pointer-events: none;
115
- }
116
- to {
117
- opacity: 1;
118
- clip-path: inset(0 0 0 0 round var(--radius-md));
119
- pointer-events: auto;
120
- }
108
+ from {
109
+ opacity: 0;
110
+ clip-path: inset(0 0 100% 0 round var(--radius-md));
111
+ pointer-events: none;
112
+ }
113
+ 90% {
114
+ pointer-events: none;
115
+ }
116
+ to {
117
+ opacity: 1;
118
+ clip-path: inset(0 0 0 0 round var(--radius-md));
119
+ pointer-events: auto;
120
+ }
121
121
  }
122
122
  @keyframes morph-in {
123
- from {
124
- opacity: 0;
125
- clip-path: inset(
126
- var(--morph-y, 0px) calc(100% - var(--morph-x, 0px) - var(--morph-w, 100%))
127
- calc(100% - var(--morph-y, 0px) - var(--morph-h, 2.5rem)) var(--morph-x, 0px) round
128
- var(--morph-radius, 9999px)
129
- );
130
- pointer-events: none;
131
- }
132
- 35% {
133
- opacity: 1;
134
- }
135
- 90% {
136
- pointer-events: none;
137
- }
138
- to {
139
- opacity: 1;
140
- clip-path: inset(0 0 0 0 round var(--radius-md));
141
- pointer-events: auto;
142
- }
123
+ from {
124
+ opacity: 0;
125
+ clip-path: inset(
126
+ var(--morph-y, 0px) calc(100% - var(--morph-x, 0px) - var(--morph-w, 100%))
127
+ calc(100% - var(--morph-y, 0px) - var(--morph-h, 2.5rem)) var(--morph-x, 0px) round
128
+ var(--morph-radius, 9999px)
129
+ );
130
+ pointer-events: none;
131
+ }
132
+ 35% {
133
+ opacity: 1;
134
+ }
135
+ 90% {
136
+ pointer-events: none;
137
+ }
138
+ to {
139
+ opacity: 1;
140
+ clip-path: inset(0 0 0 0 round var(--radius-md));
141
+ pointer-events: auto;
142
+ }
143
143
  }
144
144
  @keyframes morph-out {
145
- from {
146
- opacity: 1;
147
- clip-path: inset(0 0 0 0 round var(--radius-md));
148
- }
149
- to {
150
- opacity: 0;
151
- clip-path: inset(
152
- var(--morph-y, 0px) calc(100% - var(--morph-x, 0px) - var(--morph-w, 100%))
153
- calc(100% - var(--morph-y, 0px) - var(--morph-h, 2.5rem)) var(--morph-x, 0px) round
154
- var(--morph-radius, 9999px)
155
- );
156
- }
145
+ from {
146
+ opacity: 1;
147
+ clip-path: inset(0 0 0 0 round var(--radius-md));
148
+ }
149
+ to {
150
+ opacity: 0;
151
+ clip-path: inset(
152
+ var(--morph-y, 0px) calc(100% - var(--morph-x, 0px) - var(--morph-w, 100%))
153
+ calc(100% - var(--morph-y, 0px) - var(--morph-h, 2.5rem)) var(--morph-x, 0px) round
154
+ var(--morph-radius, 9999px)
155
+ );
156
+ }
157
157
  }
158
158
  @keyframes select-out {
159
- from {
160
- opacity: 1;
161
- clip-path: inset(0 0 0 0 round var(--radius-md));
162
- }
163
- to {
164
- opacity: 0;
165
- clip-path: inset(0 0 100% 0 round var(--radius-md));
166
- }
159
+ from {
160
+ opacity: 1;
161
+ clip-path: inset(0 0 0 0 round var(--radius-md));
162
+ }
163
+ to {
164
+ opacity: 0;
165
+ clip-path: inset(0 0 100% 0 round var(--radius-md));
166
+ }
167
167
  }
168
168
 
169
169
  :root {
170
- --background: oklch(0.995 0.003 250);
171
- --foreground: oklch(0 0 0);
172
- /* Light glass scatters light away from the eye, so a pane sits BELOW its
170
+ --background: oklch(0.995 0.003 250);
171
+ --foreground: oklch(0 0 0);
172
+ /* Light glass scatters light away from the eye, so a pane sits BELOW its
173
173
  * ground here, the opposite of dark: the page is the lightest thing on
174
174
  * screen, the card steps down, the popover down again. Ratios 1.11 and 1.07,
175
175
  * and --popover is the floor the semantic roles below can still sit on. */
176
- --card: oklch(0.96 0.005 250);
177
- --card-foreground: oklch(0 0 0);
178
- --popover: oklch(0.937 0.006 250);
179
- --popover-foreground: oklch(0 0 0);
180
- --primary: oklch(0.48 0.2 215.221);
181
- --primary-foreground: oklch(1 0 0);
182
- --secondary: oklch(0.96 0.01 250);
183
- --secondary-foreground: oklch(0.25 0.01 250);
184
- --muted: oklch(0.9702 0.008 250);
185
- --muted-foreground: oklch(0.34 0 0);
186
- --accent: oklch(0.6 0.2 195);
187
- --accent-foreground: oklch(1 0 0);
188
- /* Semantic roles are one value per role, used as fill AND as text, so they
176
+ --card: oklch(0.96 0.005 250);
177
+ --card-foreground: oklch(0 0 0);
178
+ --popover: oklch(0.937 0.006 250);
179
+ --popover-foreground: oklch(0 0 0);
180
+ --primary: oklch(0.48 0.2 215.221);
181
+ --primary-foreground: oklch(1 0 0);
182
+ --secondary: oklch(0.96 0.01 250);
183
+ --secondary-foreground: oklch(0.25 0.01 250);
184
+ --muted: oklch(0.9702 0.008 250);
185
+ --muted-foreground: oklch(0.34 0 0);
186
+ --accent: oklch(0.6 0.2 195);
187
+ --accent-foreground: oklch(1 0 0);
188
+ /* Semantic roles are one value per role, used as fill AND as text, so they
189
189
  * clear 4.5:1 on every ground they land on. --popover is the darkest of them
190
190
  * and therefore the binding one: it is what stops the ladder above sinking
191
191
  * further. Chroma comes down only as far as the sRGB gamut edge needs.
192
192
  * Measured vs --background / --card / --popover / white-on-fill:
193
193
  * success 5.56 / 5.01 / 4.66 / 5.63, warning 5.49 / 4.94 / 4.60 / 5.55,
194
194
  * destructive 5.53 / 4.98 / 4.63 / 5.59. */
195
- --success: oklch(0.5 0.15 145);
196
- --warning: oklch(0.52 0.13 85);
197
- --primary-tint-foreground: oklch(0.42 0.2 215.221);
198
- --accent-tint-foreground: oklch(0.46 0.16 195);
199
- --warning-tint-foreground: oklch(0.52 0.11 70);
200
- --love: oklch(0.66 0.22 16);
201
- --destructive: oklch(0.54 0.19 23.0704);
202
- --destructive-foreground: oklch(1 0 0);
203
- --border: oklch(0.855 0.014 250);
204
- /* Toggle wells (FIELD_CHROME), not text fields: the whole job is to read as
195
+ --success: oklch(0.5 0.15 145);
196
+ --warning: oklch(0.52 0.13 85);
197
+ --primary-tint-foreground: oklch(0.42 0.2 215.221);
198
+ --accent-tint-foreground: oklch(0.46 0.16 195);
199
+ --warning-tint-foreground: oklch(0.52 0.11 70);
200
+ --love: oklch(0.66 0.22 16);
201
+ --destructive: oklch(0.54 0.19 23.0704);
202
+ --destructive-foreground: oklch(1 0 0);
203
+ --border: oklch(0.855 0.014 250);
204
+ /* Toggle wells (FIELD_CHROME), not text fields: the whole job is to read as
205
205
  * empty, and the off knob has to show against it. 2.50:1 to the off thumb,
206
206
  * 1.40:1 to the card. */
207
- --input: oklch(0.85 0.016 250);
208
- /* The focus ring wears --primary, not --accent: the two are different hues,
207
+ --input: oklch(0.85 0.016 250);
208
+ /* The focus ring wears --primary, not --accent: the two are different hues,
209
209
  * so an accent ring landed teal on blue controls. */
210
- --ring: oklch(0.48 0.2 215.221);
211
- /* Modal scrim: a wash darker than the page. A scrim keyed to --background is
210
+ --ring: oklch(0.48 0.2 215.221);
211
+ /* Modal scrim: a wash darker than the page. A scrim keyed to --background is
212
212
  * the page colour at alpha, which computes to no darkening at all. */
213
- --scrim: oklch(0.2 0.012 250 / 0.45);
214
- /* Field material (INPUT_SURFACE). The recess is the .glass-sink rim, not a
213
+ --scrim: oklch(0.2 0.012 250 / 0.45);
214
+ /* Field material (INPUT_SURFACE). The recess is the .glass-sink rim, not a
215
215
  * darker fill: on a light ground an --input-deep fill reads as the `disabled`
216
216
  * cue, so a form of light fields would read switched off. Light fields sit AT
217
217
  * the card and carry a solid --border edge, 1.39:1, at 1px instead of a slab. */
218
- --field: var(--card);
219
- --field-edge: var(--border);
220
- /* The knob says the state too: on wears --primary's hue, off stays inert
218
+ --field: var(--card);
219
+ --field-edge: var(--border);
220
+ /* The knob says the state too: on wears --primary's hue, off stays inert
221
221
  * metal in the recessed well. Light reads lit by going darker than its pale
222
222
  * track, dark by going lighter; the hue is what carries across both. The
223
223
  * knob derives in its own scope (lib/thumb-classes.ts); --thumb-face-on is
224
224
  * the same expression at page scope, for anything else that reads it. */
225
- --thumb-on-l: 0.55;
226
- --thumb-on-c: 0.16;
227
- --thumb-face-on: oklch(from var(--primary) var(--thumb-on-l) min(c, var(--thumb-on-c)) h);
228
- --thumb-face-off: oklch(0.62 0.015 250);
229
- --chart-1: oklch(0.7459 0.1483 156.4499);
230
- --chart-2: oklch(0.48 0.2 215.221);
231
- --chart-3: oklch(0.7336 0.1758 50.5517);
232
- --chart-4: oklch(0.5828 0.1809 259.7276);
233
- --chart-5: oklch(0.559 0 0);
234
- --font-sans: "Geist Variable", ui-sans-serif, system-ui, sans-serif;
235
- --font-serif: "Geist Variable", ui-sans-serif, system-ui, sans-serif;
236
- --font-mono: "GeistMono Variable", "JetBrains Mono", "Fira Code", Consolas, monospace;
237
- --font-caveat: "Caveat Variable", cursive;
238
- --font-bebas: "Bebas Neue", ui-sans-serif, system-ui, sans-serif;
239
- --radius: 1.4rem;
240
- /* The material tier; the studio writes these per theme (Frosted defaults). */
241
- --material-blur: 24px;
242
- --material-clarity: 60%;
243
- --material-depth: 1;
244
- --material-tint: 1;
245
- --material-edge-width: 1px;
246
- --material-edge-ink: 0;
247
- --material-edge-accent: 0;
248
- --material-glow: 0px;
249
- --material-ink-level: 0;
250
- --material-ink-lift: 0;
251
- --material-ink: oklch(0.16 0 0);
252
- --shadow-x: 0px;
253
- --shadow-y: 2px;
254
- --shadow-blur: 3px;
255
- --shadow-spread: 0px;
256
- --shadow-opacity: 0.16;
257
- --shadow-color: hsl(0 0% 0%);
258
- --shadow-2xs: 0px 2px 3px 0px hsl(0 0% 0% / 0.08);
259
- --shadow-xs: 0px 2px 3px 0px hsl(0 0% 0% / 0.08);
260
- --shadow-sm: 0px 2px 3px 0px hsl(0 0% 0% / 0.16), 0px 1px 2px -1px hsl(0 0% 0% / 0.16);
261
- --shadow: 0px 2px 3px 0px hsl(0 0% 0% / 0.16), 0px 1px 2px -1px hsl(0 0% 0% / 0.16);
262
- --shadow-md: 0px 2px 3px 0px hsl(0 0% 0% / 0.16), 0px 2px 4px -1px hsl(0 0% 0% / 0.16);
263
- --shadow-lg: 0px 2px 3px 0px hsl(0 0% 0% / 0.16), 0px 4px 6px -1px hsl(0 0% 0% / 0.16);
264
- --shadow-xl: 0px 2px 3px 0px hsl(0 0% 0% / 0.16), 0px 8px 10px -1px hsl(0 0% 0% / 0.16);
265
- --shadow-2xl: 0px 2px 3px 0px hsl(0 0% 0% / 0.4);
266
- --tracking-normal: 0em;
267
- --spacing: 0.27rem;
268
-
269
- /* Motion. Durations name the gesture, not the number: micro is a hover or
225
+ --thumb-on-l: 0.55;
226
+ --thumb-on-c: 0.16;
227
+ --thumb-face-on: oklch(from var(--primary) var(--thumb-on-l) min(c, var(--thumb-on-c)) h);
228
+ --thumb-face-off: oklch(0.62 0.015 250);
229
+ --chart-1: oklch(0.7459 0.1483 156.4499);
230
+ --chart-2: oklch(0.48 0.2 215.221);
231
+ --chart-3: oklch(0.7336 0.1758 50.5517);
232
+ --chart-4: oklch(0.5828 0.1809 259.7276);
233
+ --chart-5: oklch(0.559 0 0);
234
+ --font-sans: "Geist Variable", ui-sans-serif, system-ui, sans-serif;
235
+ --font-serif: "Geist Variable", ui-sans-serif, system-ui, sans-serif;
236
+ --font-mono: "GeistMono Variable", "JetBrains Mono", "Fira Code", Consolas, monospace;
237
+ --font-caveat: "Caveat Variable", cursive;
238
+ --font-bebas: "Bebas Neue", ui-sans-serif, system-ui, sans-serif;
239
+ --radius: 1.4rem;
240
+ /* The material tier; the studio writes these per theme (Frosted defaults). */
241
+ --material-blur: 24px;
242
+ --material-clarity: 60%;
243
+ --material-depth: 1;
244
+ --material-tint: 1;
245
+ --material-edge-width: 1px;
246
+ --material-edge-ink: 0;
247
+ --material-edge-accent: 0;
248
+ --material-glow: 0px;
249
+ --material-ink-level: 0;
250
+ --material-ink-lift: 0;
251
+ --material-ink: oklch(0.16 0 0);
252
+ --shadow-x: 0px;
253
+ --shadow-y: 2px;
254
+ --shadow-blur: 3px;
255
+ --shadow-spread: 0px;
256
+ --shadow-opacity: 0.16;
257
+ --shadow-color: hsl(0 0% 0%);
258
+ --shadow-2xs: 0px 2px 3px 0px hsl(0 0% 0% / 0.08);
259
+ --shadow-xs: 0px 2px 3px 0px hsl(0 0% 0% / 0.08);
260
+ --shadow-sm: 0px 2px 3px 0px hsl(0 0% 0% / 0.16), 0px 1px 2px -1px hsl(0 0% 0% / 0.16);
261
+ --shadow: 0px 2px 3px 0px hsl(0 0% 0% / 0.16), 0px 1px 2px -1px hsl(0 0% 0% / 0.16);
262
+ --shadow-md: 0px 2px 3px 0px hsl(0 0% 0% / 0.16), 0px 2px 4px -1px hsl(0 0% 0% / 0.16);
263
+ --shadow-lg: 0px 2px 3px 0px hsl(0 0% 0% / 0.16), 0px 4px 6px -1px hsl(0 0% 0% / 0.16);
264
+ --shadow-xl: 0px 2px 3px 0px hsl(0 0% 0% / 0.16), 0px 8px 10px -1px hsl(0 0% 0% / 0.16);
265
+ --shadow-2xl: 0px 2px 3px 0px hsl(0 0% 0% / 0.4);
266
+ --tracking-normal: 0em;
267
+ --spacing: 0.27rem;
268
+
269
+ /* Motion. Durations name the gesture, not the number: micro is a hover or
270
270
  * border change, state a tone or chip swap, expand an open/close. Theme
271
271
  * independent, so declared once; zeroed under prefers-reduced-motion. */
272
- --ease-emphasis: cubic-bezier(0.22, 1, 0.36, 1);
273
- /* Arrivals overshoot-free and quick to settle; departures fall away. */
274
- --ease-expand: cubic-bezier(0.16, 1, 0.3, 1);
275
- --ease-contract: cubic-bezier(0.4, 0, 1, 1);
276
- /* A morph is a shape becoming another shape: slower than an arrival, and it
272
+ --ease-emphasis: cubic-bezier(0.22, 1, 0.36, 1);
273
+ /* Arrivals overshoot-free and quick to settle; departures fall away. */
274
+ --ease-expand: cubic-bezier(0.16, 1, 0.3, 1);
275
+ --ease-contract: cubic-bezier(0.4, 0, 1, 1);
276
+ /* A morph is a shape becoming another shape: slower than an arrival, and it
277
277
  * leaves the start shape gently instead of snapping out of it. */
278
- --duration-morph: 400ms;
279
- --ease-morph: cubic-bezier(0.32, 0.72, 0, 1);
280
- --duration-micro: 120ms;
281
- --duration-state: 160ms;
282
- --duration-expand: 200ms;
283
- /* Ambient motion is an event (SPEC motion rule 5): 1 while the host holds
278
+ --duration-morph: 400ms;
279
+ --ease-morph: cubic-bezier(0.32, 0.72, 0, 1);
280
+ --duration-micro: 120ms;
281
+ --duration-state: 160ms;
282
+ --duration-expand: 200ms;
283
+ /* Ambient motion is an event (SPEC motion rule 5): 1 while the host holds
284
284
  * html[data-motion="live"], else 0. Inherits into widget shadow roots, so a
285
285
  * loop multiplies its duration by it: calc(var(--motion-ambient, 0) * 1s).
286
286
  * --motion-play is its keyword twin for a loop that can only pause. */
287
- --motion-ambient: 0;
288
- --motion-play: paused;
287
+ --motion-ambient: 0;
288
+ --motion-play: paused;
289
289
  }
290
290
 
291
291
  html[data-motion="live"] {
292
- --motion-ambient: 1;
293
- --motion-play: running;
292
+ --motion-ambient: 1;
293
+ --motion-play: running;
294
294
  }
295
295
 
296
296
  .dark {
297
- --background: oklch(0.12 0.01 250);
298
- --foreground: oklch(0.9551 0 0);
299
- --card: oklch(0.17 0.01 250);
300
- --card-foreground: oklch(0.9551 0 0);
301
- --popover: oklch(0.11 0.005 250);
302
- --popover-foreground: oklch(0.9551 0 0);
303
- --primary: oklch(0.48 0.2 215.221);
304
- --primary-foreground: oklch(1 0 0);
305
- --secondary: oklch(0.14 0.01 250);
306
- --secondary-foreground: oklch(0.9551 0 0);
307
- --muted: oklch(0.22 0.02 250);
308
- --muted-foreground: oklch(0.81 0 0);
309
- --accent: oklch(0.6 0.2 195);
310
- --accent-foreground: oklch(1 0 0);
311
- --success: oklch(0.7 0.17 145);
312
- --warning: oklch(0.78 0.14 85);
313
- --primary-tint-foreground: oklch(0.78 0.16 215.221);
314
- --accent-tint-foreground: oklch(0.8 0.14 195);
315
- --warning-tint-foreground: oklch(0.82 0.13 85);
316
- --love: oklch(0.72 0.19 14);
317
- --destructive: oklch(0.7106 0.1661 22.2162);
318
- --destructive-foreground: oklch(1 0 0);
319
- --border: oklch(0.26 0.012 250);
320
- /* On a dark ground a dug-out surface catches more light than the wall around
297
+ --background: oklch(0.12 0.01 250);
298
+ --foreground: oklch(0.9551 0 0);
299
+ --card: oklch(0.17 0.01 250);
300
+ --card-foreground: oklch(0.9551 0 0);
301
+ --popover: oklch(0.11 0.005 250);
302
+ --popover-foreground: oklch(0.9551 0 0);
303
+ --primary: oklch(0.48 0.2 215.221);
304
+ --primary-foreground: oklch(1 0 0);
305
+ --secondary: oklch(0.14 0.01 250);
306
+ --secondary-foreground: oklch(0.9551 0 0);
307
+ --muted: oklch(0.22 0.02 250);
308
+ --muted-foreground: oklch(0.81 0 0);
309
+ --accent: oklch(0.6 0.2 195);
310
+ --accent-foreground: oklch(1 0 0);
311
+ --success: oklch(0.7 0.17 145);
312
+ --warning: oklch(0.78 0.14 85);
313
+ --primary-tint-foreground: oklch(0.78 0.16 215.221);
314
+ --accent-tint-foreground: oklch(0.8 0.14 195);
315
+ --warning-tint-foreground: oklch(0.82 0.13 85);
316
+ --love: oklch(0.72 0.19 14);
317
+ --destructive: oklch(0.7106 0.1661 22.2162);
318
+ --destructive-foreground: oklch(1 0 0);
319
+ --border: oklch(0.26 0.012 250);
320
+ /* On a dark ground a dug-out surface catches more light than the wall around
321
321
  * it, so the field sits a touch ABOVE the card (0.17) rather than below, and
322
322
  * the .glass-sink rim does the rest. A hair of the card's cool tint (chroma
323
323
  * 0.01) keeps it from going flat gray. Same rail color as the slider track. */
324
- --input: oklch(0.19 0.01 250);
325
- --ring: oklch(0.6 0.2 195);
326
- --scrim: color-mix(in oklab, var(--background) 70%, transparent);
327
- /* Dark fields keep the dug-out fill (it reads as depth here, not as disabled)
324
+ --input: oklch(0.19 0.01 250);
325
+ --ring: oklch(0.6 0.2 195);
326
+ --scrim: color-mix(in oklab, var(--background) 70%, transparent);
327
+ /* Dark fields keep the dug-out fill (it reads as depth here, not as disabled)
328
328
  * and the glass formula's own soft edge. See the light block. */
329
- --field: var(--input);
330
- --field-edge: color-mix(in srgb, var(--border) 60%, transparent);
331
- /* Lit through hue, not brightness: a neutral knob this light read as the
329
+ --field: var(--input);
330
+ --field-edge: color-mix(in srgb, var(--border) 60%, transparent);
331
+ /* Lit through hue, not brightness: a neutral knob this light read as the
332
332
  * loudest pixel in the row. Carries --primary's hue, so on ties to the rim. */
333
- --thumb-on-l: 0.78;
334
- --thumb-on-c: 0.1;
335
- --thumb-face-on: oklch(from var(--primary) var(--thumb-on-l) min(c, var(--thumb-on-c)) h);
336
- --thumb-face-off: oklch(0.45 0.015 250);
337
- --chart-1: oklch(0.8003 0.1821 151.711);
338
- --chart-2: oklch(0.48 0.2 215.221);
339
- --chart-3: oklch(0.8077 0.1035 19.5706);
340
- --chart-4: oklch(0.6691 0.1569 260.1063);
341
- --chart-5: oklch(0.7058 0 0);
342
- --font-sans: "Geist Variable", ui-sans-serif, system-ui, sans-serif;
343
- --font-serif: "Geist Variable", ui-sans-serif, system-ui, sans-serif;
344
- --font-mono: "GeistMono Variable", "JetBrains Mono", "Fira Code", Consolas, monospace;
345
- --font-caveat: "Caveat Variable", cursive;
346
- --font-bebas: "Bebas Neue", ui-sans-serif, system-ui, sans-serif;
347
- --radius: 1.4rem;
348
- --shadow-x: 0px;
349
- --shadow-y: 2px;
350
- --shadow-blur: 3px;
351
- --shadow-spread: 0px;
352
- --shadow-opacity: 0.16;
353
- --shadow-color: hsl(0 0% 0%);
354
- --shadow-2xs: 0px 2px 3px 0px hsl(0 0% 0% / 0.08);
355
- --shadow-xs: 0px 2px 3px 0px hsl(0 0% 0% / 0.08);
356
- --shadow-sm: 0px 2px 3px 0px hsl(0 0% 0% / 0.16), 0px 1px 2px -1px hsl(0 0% 0% / 0.16);
357
- --shadow: 0px 2px 3px 0px hsl(0 0% 0% / 0.16), 0px 1px 2px -1px hsl(0 0% 0% / 0.16);
358
- --shadow-md: 0px 2px 3px 0px hsl(0 0% 0% / 0.16), 0px 2px 4px -1px hsl(0 0% 0% / 0.16);
359
- --shadow-lg: 0px 2px 3px 0px hsl(0 0% 0% / 0.16), 0px 4px 6px -1px hsl(0 0% 0% / 0.16);
360
- --shadow-xl: 0px 2px 3px 0px hsl(0 0% 0% / 0.16), 0px 8px 10px -1px hsl(0 0% 0% / 0.16);
361
- --shadow-2xl: 0px 2px 3px 0px hsl(0 0% 0% / 0.4);
362
- --material-ink: oklch(0.68 0 0);
333
+ --thumb-on-l: 0.78;
334
+ --thumb-on-c: 0.1;
335
+ --thumb-face-on: oklch(from var(--primary) var(--thumb-on-l) min(c, var(--thumb-on-c)) h);
336
+ --thumb-face-off: oklch(0.45 0.015 250);
337
+ --chart-1: oklch(0.8003 0.1821 151.711);
338
+ --chart-2: oklch(0.48 0.2 215.221);
339
+ --chart-3: oklch(0.8077 0.1035 19.5706);
340
+ --chart-4: oklch(0.6691 0.1569 260.1063);
341
+ --chart-5: oklch(0.7058 0 0);
342
+ --font-sans: "Geist Variable", ui-sans-serif, system-ui, sans-serif;
343
+ --font-serif: "Geist Variable", ui-sans-serif, system-ui, sans-serif;
344
+ --font-mono: "GeistMono Variable", "JetBrains Mono", "Fira Code", Consolas, monospace;
345
+ --font-caveat: "Caveat Variable", cursive;
346
+ --font-bebas: "Bebas Neue", ui-sans-serif, system-ui, sans-serif;
347
+ --radius: 1.4rem;
348
+ --shadow-x: 0px;
349
+ --shadow-y: 2px;
350
+ --shadow-blur: 3px;
351
+ --shadow-spread: 0px;
352
+ --shadow-opacity: 0.16;
353
+ --shadow-color: hsl(0 0% 0%);
354
+ --shadow-2xs: 0px 2px 3px 0px hsl(0 0% 0% / 0.08);
355
+ --shadow-xs: 0px 2px 3px 0px hsl(0 0% 0% / 0.08);
356
+ --shadow-sm: 0px 2px 3px 0px hsl(0 0% 0% / 0.16), 0px 1px 2px -1px hsl(0 0% 0% / 0.16);
357
+ --shadow: 0px 2px 3px 0px hsl(0 0% 0% / 0.16), 0px 1px 2px -1px hsl(0 0% 0% / 0.16);
358
+ --shadow-md: 0px 2px 3px 0px hsl(0 0% 0% / 0.16), 0px 2px 4px -1px hsl(0 0% 0% / 0.16);
359
+ --shadow-lg: 0px 2px 3px 0px hsl(0 0% 0% / 0.16), 0px 4px 6px -1px hsl(0 0% 0% / 0.16);
360
+ --shadow-xl: 0px 2px 3px 0px hsl(0 0% 0% / 0.16), 0px 8px 10px -1px hsl(0 0% 0% / 0.16);
361
+ --shadow-2xl: 0px 2px 3px 0px hsl(0 0% 0% / 0.4);
362
+ --material-ink: oklch(0.68 0 0);
363
363
  }
364
364
 
365
365
  @layer base {
366
- * {
367
- @apply border-border outline-ring/50;
368
- }
369
- body {
370
- @apply bg-background text-foreground min-w-[320px] min-h-screen relative m-0;
371
- }
372
- /* Tailwind v4 Preflight drops the old cursor:pointer default on buttons, so
366
+ * {
367
+ @apply border-border outline-ring/50;
368
+ }
369
+ body {
370
+ @apply bg-background text-foreground relative m-0 min-h-screen min-w-[320px];
371
+ }
372
+ /* Tailwind v4 Preflight drops the old cursor:pointer default on buttons, so
373
373
  * native interactive elements (raw <button>, role=button, <summary>, control
374
374
  * labels, <select>) show the arrow. Restore the pointer affordance for every
375
375
  * clickable, minus disabled ones. Component primitives set their own cursor. */
376
- button:not(:disabled),
377
- [role="button"]:not([aria-disabled="true"]),
378
- summary,
379
- select:not(:disabled),
380
- label:has(> input:is([type="checkbox"], [type="radio"]):not(:disabled)) {
381
- cursor: pointer;
382
- }
376
+ button:not(:disabled),
377
+ [role="button"]:not([aria-disabled="true"]),
378
+ summary,
379
+ select:not(:disabled),
380
+ label:has(> input:is([type="checkbox"], [type="radio"]):not(:disabled)) {
381
+ cursor: pointer;
382
+ }
383
383
  }
384
384
 
385
385
  /* Utility classes */
386
386
  .scrollbar-hide {
387
- -ms-overflow-style: none;
388
- scrollbar-width: none;
387
+ -ms-overflow-style: none;
388
+ scrollbar-width: none;
389
389
  }
390
390
 
391
391
  .scrollbar-hide::-webkit-scrollbar {
392
- display: none;
392
+ display: none;
393
393
  }
394
394
 
395
395
  /* Weather widget animations */
396
396
  @keyframes rainFall {
397
- to {
398
- transform: translateY(110vh);
399
- }
397
+ to {
398
+ transform: translateY(110vh);
399
+ }
400
400
  }
401
401
 
402
402
  @keyframes snowFall {
403
- to {
404
- transform: translateY(110vh);
405
- }
403
+ to {
404
+ transform: translateY(110vh);
405
+ }
406
406
  }
407
407
 
408
408
  @keyframes sway {
409
- 0%,
410
- 100% {
411
- transform: translateX(0);
412
- }
413
- 50% {
414
- transform: translateX(20px);
415
- }
409
+ 0%,
410
+ 100% {
411
+ transform: translateX(0);
412
+ }
413
+ 50% {
414
+ transform: translateX(20px);
415
+ }
416
416
  }
417
417
 
418
418
  @keyframes windBlow {
419
- to {
420
- transform: translateX(calc(100vw + 200px));
421
- }
419
+ to {
420
+ transform: translateX(calc(100vw + 200px));
421
+ }
422
422
  }
423
423
 
424
424
  @keyframes swirl {
425
- 0%,
426
- 100% {
427
- transform: translate(0, 0) rotate(0deg);
428
- }
429
- 50% {
430
- transform: translate(30px, -20px) rotate(180deg);
431
- }
425
+ 0%,
426
+ 100% {
427
+ transform: translate(0, 0) rotate(0deg);
428
+ }
429
+ 50% {
430
+ transform: translate(30px, -20px) rotate(180deg);
431
+ }
432
432
  }
433
433
 
434
434
  @keyframes cloudDrift {
435
- to {
436
- transform: translateX(calc(100vw + 200px));
437
- }
435
+ to {
436
+ transform: translateX(calc(100vw + 200px));
437
+ }
438
438
  }
439
439
 
440
440
  @keyframes fogDrift {
441
- to {
442
- transform: translateX(50vw);
443
- }
441
+ to {
442
+ transform: translateX(50vw);
443
+ }
444
444
  }
445
445
 
446
446
  @keyframes shootingStar {
447
- 0% {
448
- transform: translate(0, 0) rotate(-45deg);
449
- opacity: 0;
450
- }
451
- 10% {
452
- opacity: 1;
453
- }
454
- 100% {
455
- transform: translate(-400px, 400px) rotate(-45deg);
456
- opacity: 0;
457
- }
447
+ 0% {
448
+ transform: translate(0, 0) rotate(-45deg);
449
+ opacity: 0;
450
+ }
451
+ 10% {
452
+ opacity: 1;
453
+ }
454
+ 100% {
455
+ transform: translate(-400px, 400px) rotate(-45deg);
456
+ opacity: 0;
457
+ }
458
458
  }
459
459
 
460
460
  /* Loading and Error screen animations */
461
461
  @keyframes float {
462
- 0%,
463
- 100% {
464
- transform: translateY(0px);
465
- }
466
- 50% {
467
- transform: translateY(-10px);
468
- }
462
+ 0%,
463
+ 100% {
464
+ transform: translateY(0px);
465
+ }
466
+ 50% {
467
+ transform: translateY(-10px);
468
+ }
469
469
  }
470
470
 
471
471
  @keyframes spin-slow {
472
- from {
473
- transform: rotate(0deg);
474
- }
475
- to {
476
- transform: rotate(360deg);
477
- }
472
+ from {
473
+ transform: rotate(0deg);
474
+ }
475
+ to {
476
+ transform: rotate(360deg);
477
+ }
478
478
  }
479
479
 
480
480
  .animate-float {
481
- animation: float 3s ease-in-out infinite;
481
+ animation: float 3s ease-in-out infinite;
482
482
  }
483
483
 
484
484
  .animate-spin-slow {
485
- animation: spin-slow 8s linear infinite;
485
+ animation: spin-slow 8s linear infinite;
486
486
  }
487
487
 
488
488
  /* Line clamp utilities */
489
489
  .line-clamp-1 {
490
- overflow: hidden;
491
- display: -webkit-box;
492
- -webkit-box-orient: vertical;
493
- -webkit-line-clamp: 1;
490
+ overflow: hidden;
491
+ display: -webkit-box;
492
+ -webkit-box-orient: vertical;
493
+ -webkit-line-clamp: 1;
494
494
  }
495
495
 
496
496
  .line-clamp-2 {
497
- overflow: hidden;
498
- display: -webkit-box;
499
- -webkit-box-orient: vertical;
500
- -webkit-line-clamp: 2;
497
+ overflow: hidden;
498
+ display: -webkit-box;
499
+ -webkit-box-orient: vertical;
500
+ -webkit-line-clamp: 2;
501
501
  }
502
502
 
503
503
  .line-clamp-3 {
504
- overflow: hidden;
505
- display: -webkit-box;
506
- -webkit-box-orient: vertical;
507
- -webkit-line-clamp: 3;
504
+ overflow: hidden;
505
+ display: -webkit-box;
506
+ -webkit-box-orient: vertical;
507
+ -webkit-line-clamp: 3;
508
508
  }
509
509
 
510
510
  /* Widget fade-in and slide animation */
511
511
  @keyframes widget-slot-in {
512
- from {
513
- opacity: 0;
514
- transform: translateY(30px);
515
- }
516
- to {
517
- opacity: 1;
518
- transform: translateY(0);
519
- }
512
+ from {
513
+ opacity: 0;
514
+ transform: translateY(30px);
515
+ }
516
+ to {
517
+ opacity: 1;
518
+ transform: translateY(0);
519
+ }
520
520
  }
521
521
 
522
522
  .widget-slot-in {
523
- opacity: 0;
524
- animation: widget-slot-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
523
+ opacity: 0;
524
+ animation: widget-slot-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
525
525
  }
526
526
 
527
527
  /* Area title transition animations only */
528
528
  ::view-transition-old(area-title),
529
529
  ::view-transition-new(area-title) {
530
- animation-duration: 0.4s;
531
- animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
530
+ animation-duration: 0.4s;
531
+ animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
532
532
  }
533
533
 
534
534
  ::view-transition-old(area-title) {
535
- animation-name: fade-out-scale;
535
+ animation-name: fade-out-scale;
536
536
  }
537
537
 
538
538
  ::view-transition-new(area-title) {
539
- animation-name: fade-in-scale;
539
+ animation-name: fade-in-scale;
540
540
  }
541
541
 
542
542
  @keyframes fade-out-scale {
543
- from {
544
- opacity: 1;
545
- transform: scale(1);
546
- }
547
- to {
548
- opacity: 0;
549
- transform: scale(0.95);
550
- }
543
+ from {
544
+ opacity: 1;
545
+ transform: scale(1);
546
+ }
547
+ to {
548
+ opacity: 0;
549
+ transform: scale(0.95);
550
+ }
551
551
  }
552
552
 
553
553
  @keyframes fade-in-scale {
554
- from {
555
- opacity: 0;
556
- transform: scale(1.05);
557
- }
558
- to {
559
- opacity: 1;
560
- transform: scale(1);
561
- }
554
+ from {
555
+ opacity: 0;
556
+ transform: scale(1.05);
557
+ }
558
+ to {
559
+ opacity: 1;
560
+ transform: scale(1);
561
+ }
562
562
  }
563
563
 
564
564
  @media (prefers-reduced-motion) {
565
- ::view-transition-old(area-title),
566
- ::view-transition-new(area-title) {
567
- animation: none !important;
568
- }
569
-
570
- /* Anything timed off the motion scale stops moving, no per-component opt-in. */
571
- :root {
572
- --duration-micro: 0ms;
573
- --duration-state: 0ms;
574
- --duration-expand: 0ms;
575
- --duration-morph: 0ms;
576
- }
577
- /* tw-animate enter/exit classes carry their own fallback duration. */
578
- .animate-in,
579
- .animate-out {
580
- --tw-animation-duration: 1ms;
581
- }
565
+ ::view-transition-old(area-title),
566
+ ::view-transition-new(area-title) {
567
+ animation: none !important;
568
+ }
569
+
570
+ /* Anything timed off the motion scale stops moving, no per-component opt-in. */
571
+ :root {
572
+ --duration-micro: 0ms;
573
+ --duration-state: 0ms;
574
+ --duration-expand: 0ms;
575
+ --duration-morph: 0ms;
576
+ }
577
+ /* tw-animate enter/exit classes carry their own fallback duration. */
578
+ .animate-in,
579
+ .animate-out {
580
+ --tw-animation-duration: 1ms;
581
+ }
582
582
  }
583
583
 
584
584
  /* Performance: disable all backdrop-filter when reduce-blur is active */
585
585
  .reduce-blur,
586
586
  .reduce-blur * {
587
- --tw-backdrop-blur: initial !important;
588
- backdrop-filter: none !important;
589
- -webkit-backdrop-filter: none !important;
587
+ --tw-backdrop-blur: initial !important;
588
+ backdrop-filter: none !important;
589
+ -webkit-backdrop-filter: none !important;
590
590
  }
591
591
  /* A control that cannot blur takes the opaque card fill, never bare see-through. */
592
592
  .reduce-blur .glass-control {
593
- --glass-base: var(--card);
593
+ --glass-base: var(--card);
594
594
  }
595
595
 
596
596
  /* Accessibility: minimize animations/transitions when reduce-motion is active */
597
597
  .reduce-motion,
598
598
  .reduce-motion * {
599
- animation-duration: 0.01ms !important;
600
- animation-iteration-count: 1 !important;
601
- transition-duration: 0.01ms !important;
602
- scroll-behavior: auto !important;
599
+ animation-duration: 0.01ms !important;
600
+ animation-iteration-count: 1 !important;
601
+ transition-duration: 0.01ms !important;
602
+ scroll-behavior: auto !important;
603
603
  }
604
604
 
605
605
  /* Inline SVG background houses: position lives in keyframes, restore static spot. */
606
606
  .reduce-motion .house-shape {
607
- animation: none !important;
608
- transform: translate(var(--tx), var(--ty)) rotate(var(--rot));
607
+ animation: none !important;
608
+ transform: translate(var(--tx), var(--ty)) rotate(var(--rot));
609
609
  }
610
610
 
611
611
  /* BottomSheet animations */
612
612
  @keyframes bs-slide-up {
613
- from {
614
- transform: translate3d(0, 100%, 0);
615
- }
616
- to {
617
- transform: translate3d(0, 0, 0);
618
- }
613
+ from {
614
+ transform: translate3d(0, 100%, 0);
615
+ }
616
+ to {
617
+ transform: translate3d(0, 0, 0);
618
+ }
619
619
  }
620
620
  @keyframes bs-slide-down {
621
- from {
622
- transform: translate3d(0, 0, 0);
623
- }
624
- to {
625
- transform: translate3d(0, 100%, 0);
626
- }
621
+ from {
622
+ transform: translate3d(0, 0, 0);
623
+ }
624
+ to {
625
+ transform: translate3d(0, 100%, 0);
626
+ }
627
627
  }
628
628
  /* --bs-duration and --bs-ease are published inline by BottomSheetContent from
629
629
  bottom-sheet/constants.ts; --modal-max-h comes from MODAL_MAX_H, the height
630
630
  cap every modal panel shares. */
631
631
  .bs-content {
632
- transform: translate3d(0, 100%, 0);
633
- bottom: var(--bs-keyboard-offset, 0);
632
+ transform: translate3d(0, 100%, 0);
633
+ bottom: var(--bs-keyboard-offset, 0);
634
634
  }
635
635
  .bs-content[data-keyboard-open] {
636
- max-height: calc(var(--modal-max-h) - var(--bs-keyboard-offset, 0px));
636
+ max-height: calc(var(--modal-max-h) - var(--bs-keyboard-offset, 0px));
637
637
  }
638
638
  .bs-content[data-state="opening"] {
639
- animation: bs-slide-up var(--bs-duration) var(--bs-ease) forwards;
639
+ animation: bs-slide-up var(--bs-duration) var(--bs-ease) forwards;
640
640
  }
641
641
  .bs-content[data-state="open"],
642
642
  .bs-content[data-state="pressing"],
643
643
  .bs-content[data-state="dragging"],
644
644
  .bs-content[data-state="snapping"] {
645
- transform: translate3d(0, 0, 0);
645
+ transform: translate3d(0, 0, 0);
646
646
  }
647
647
  .bs-content[data-state="closing"] {
648
- animation: bs-slide-down var(--bs-duration) var(--bs-ease) forwards;
648
+ animation: bs-slide-down var(--bs-duration) var(--bs-ease) forwards;
649
649
  }
650
650
  .bs-content[data-reduced-motion] {
651
- animation-duration: 0ms !important;
651
+ animation-duration: 0ms !important;
652
652
  }