@abuzareal/contour-ui 0.4.0 → 0.6.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 (186) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/COMBOBOX.md +87 -0
  3. package/CONTRACTS.md +23 -17
  4. package/DOCS.md +80 -0
  5. package/FOUNDATION.md +35 -0
  6. package/GETTING-STARTED.md +63 -0
  7. package/NEXTJS.md +5 -1
  8. package/OVERLAYS.md +52 -0
  9. package/PUBLIC-API.md +189 -162
  10. package/README.md +44 -28
  11. package/RECIPES.md +43 -0
  12. package/RELEASING.md +2 -2
  13. package/SIZE.md +51 -0
  14. package/STYLING.md +68 -0
  15. package/dist/actions.css +7 -0
  16. package/dist/components/hero/Sculpture.js +2 -1
  17. package/dist/components/three/ObjectStudy.js +2 -1
  18. package/dist/components/ui/Alert.d.ts +2 -1
  19. package/dist/components/ui/Alert.js +3 -3
  20. package/dist/components/ui/Avatar.d.ts +3 -1
  21. package/dist/components/ui/Avatar.js +3 -3
  22. package/dist/components/ui/Badge.js +2 -2
  23. package/dist/components/ui/BrandMark.js +2 -1
  24. package/dist/components/ui/Breadcrumbs.d.ts +2 -1
  25. package/dist/components/ui/Breadcrumbs.js +3 -2
  26. package/dist/components/ui/Button.d.ts +2 -0
  27. package/dist/components/ui/Button.js +3 -2
  28. package/dist/components/ui/Card.js +2 -2
  29. package/dist/components/ui/Checkbox.js +3 -3
  30. package/dist/components/ui/Combobox.d.ts +325 -0
  31. package/dist/components/ui/Combobox.js +120 -0
  32. package/dist/components/ui/Combobox.types.d.ts +46 -0
  33. package/dist/components/ui/Combobox.types.js +1 -0
  34. package/dist/components/ui/CountUp.d.ts +2 -1
  35. package/dist/components/ui/CountUp.js +6 -3
  36. package/dist/components/ui/DataTable.d.ts +1 -0
  37. package/dist/components/ui/DataTable.js +15 -10
  38. package/dist/components/ui/DepthButton.js +2 -2
  39. package/dist/components/ui/Dialog.d.ts +5 -1
  40. package/dist/components/ui/Dialog.js +49 -18
  41. package/dist/components/ui/Disclosure.js +2 -1
  42. package/dist/components/ui/Divider.js +3 -2
  43. package/dist/components/ui/DropdownMenu.d.ts +11 -4
  44. package/dist/components/ui/DropdownMenu.js +109 -66
  45. package/dist/components/ui/EmptyState.js +2 -1
  46. package/dist/components/ui/Field.js +2 -2
  47. package/dist/components/ui/FlipCard.js +2 -2
  48. package/dist/components/ui/FloatingPortal.d.ts +10 -0
  49. package/dist/components/ui/FloatingPortal.js +13 -0
  50. package/dist/components/ui/FloatingScope.d.ts +9 -0
  51. package/dist/components/ui/FloatingScope.js +43 -0
  52. package/dist/components/ui/IconButton.js +2 -2
  53. package/dist/components/ui/Kbd.js +2 -1
  54. package/dist/components/ui/Magnetic.js +2 -1
  55. package/dist/components/ui/Marquee.js +3 -2
  56. package/dist/components/ui/OverlayTrigger.d.ts +11 -0
  57. package/dist/components/ui/OverlayTrigger.js +5 -0
  58. package/dist/components/ui/Pagination.d.ts +5 -1
  59. package/dist/components/ui/Pagination.js +3 -2
  60. package/dist/components/ui/Popover.d.ts +18 -8
  61. package/dist/components/ui/Popover.js +58 -17
  62. package/dist/components/ui/ProgressBar.js +2 -2
  63. package/dist/components/ui/RadioGroup.js +5 -5
  64. package/dist/components/ui/Reveal.d.ts +0 -1
  65. package/dist/components/ui/Reveal.js +4 -3
  66. package/dist/components/ui/RevealHeading.js +2 -1
  67. package/dist/components/ui/ScrollProgress.js +2 -1
  68. package/dist/components/ui/SectionLabel.js +2 -1
  69. package/dist/components/ui/SegmentedControl.js +6 -3
  70. package/dist/components/ui/SelectField.js +3 -2
  71. package/dist/components/ui/Skeleton.js +2 -2
  72. package/dist/components/ui/Slider.js +3 -3
  73. package/dist/components/ui/Spinner.js +2 -2
  74. package/dist/components/ui/Stat.js +2 -1
  75. package/dist/components/ui/Stepper.js +3 -3
  76. package/dist/components/ui/Switch.d.ts +2 -0
  77. package/dist/components/ui/Switch.js +6 -7
  78. package/dist/components/ui/Table.d.ts +20 -0
  79. package/dist/components/ui/Table.js +9 -0
  80. package/dist/components/ui/Tabs.js +7 -5
  81. package/dist/components/ui/Tag.d.ts +2 -1
  82. package/dist/components/ui/Tag.js +4 -3
  83. package/dist/components/ui/TextArea.js +2 -1
  84. package/dist/components/ui/TextField.js +3 -2
  85. package/dist/components/ui/ThemeScope.d.ts +13 -0
  86. package/dist/components/ui/ThemeScope.js +10 -0
  87. package/dist/components/ui/ThemeToggle.d.ts +3 -0
  88. package/dist/components/ui/ThemeToggle.js +4 -3
  89. package/dist/components/ui/TiltCard.js +3 -2
  90. package/dist/components/ui/Timeline.js +2 -2
  91. package/dist/components/ui/ToastProvider.d.ts +5 -2
  92. package/dist/components/ui/ToastProvider.js +5 -5
  93. package/dist/components/ui/Tooltip.d.ts +4 -4
  94. package/dist/components/ui/Tooltip.js +70 -10
  95. package/dist/data-display.css +5 -0
  96. package/dist/effects.css +6 -0
  97. package/dist/feedback.css +5 -0
  98. package/dist/fonts-latin.css +10 -4
  99. package/dist/fonts.css +8 -0
  100. package/dist/forms.css +5 -0
  101. package/dist/hooks/useComboboxAnchor.d.ts +17 -0
  102. package/dist/hooks/useComboboxAnchor.js +61 -0
  103. package/dist/hooks/useDismiss.d.ts +12 -3
  104. package/dist/hooks/useDismiss.js +5 -21
  105. package/dist/hooks/useFloatingPanel.d.ts +14 -0
  106. package/dist/hooks/useFloatingPanel.js +157 -0
  107. package/dist/hooks/useLayerDismiss.d.ts +4 -0
  108. package/dist/hooks/useLayerDismiss.js +48 -0
  109. package/dist/hooks/useMobileMenu.d.ts +0 -1
  110. package/dist/hooks/useMobileMenu.js +11 -16
  111. package/dist/hooks/usePanelFocus.d.ts +10 -0
  112. package/dist/hooks/usePanelFocus.js +60 -0
  113. package/dist/hooks/useTheme.d.ts +1 -0
  114. package/dist/hooks/useTheme.js +18 -5
  115. package/dist/index.d.ts +7 -0
  116. package/dist/index.js +3 -0
  117. package/dist/kit/data-display.css +6 -0
  118. package/dist/kit/forms.css +45 -2
  119. package/dist/kit/navigation.css +4 -0
  120. package/dist/kit/overlays.css +8 -4
  121. package/dist/lib/classNames.d.ts +2 -0
  122. package/dist/lib/classNames.js +16 -1
  123. package/dist/lib/componentClasses.d.ts +1 -0
  124. package/dist/lib/componentClasses.js +2 -0
  125. package/dist/lib/keyboard.d.ts +1 -1
  126. package/dist/lib/keyboard.js +5 -2
  127. package/dist/lib/layers.d.ts +18 -0
  128. package/dist/lib/layers.js +128 -0
  129. package/dist/lib/themeScope.d.ts +5 -0
  130. package/dist/lib/themeScope.js +3 -0
  131. package/dist/minimal-reset.css +6 -0
  132. package/dist/navigation.css +5 -0
  133. package/dist/overlays.css +5 -0
  134. package/dist/scoped/base.css +183 -0
  135. package/dist/scoped/kit/actions.css +209 -0
  136. package/dist/scoped/kit/data-display.css +498 -0
  137. package/dist/scoped/kit/effects.css +140 -0
  138. package/dist/scoped/kit/feedback.css +309 -0
  139. package/dist/scoped/kit/forms.css +404 -0
  140. package/dist/scoped/kit/navigation.css +266 -0
  141. package/dist/scoped/kit/overlays.css +299 -0
  142. package/dist/scoped/marquee.css +58 -0
  143. package/dist/scoped/spinner.css +20 -0
  144. package/dist/scoped/theme-toggle.css +38 -0
  145. package/dist/scoped/tokens.css +119 -0
  146. package/dist/scoped/ui.css +127 -0
  147. package/dist/scoped/utilities.css +17 -0
  148. package/dist/scoped-tokens.css +1 -0
  149. package/dist/scoped.css +12 -0
  150. package/dist/theme-toggle.css +2 -2
  151. package/dist/tokens.json +710 -0
  152. package/examples/optional/LazyScene.tsx +78 -0
  153. package/examples/optional/OptionalSmoothScroll.tsx +25 -0
  154. package/examples/optional/SmoothScrollOwner.tsx +7 -0
  155. package/examples/optional/optional.css +25 -0
  156. package/examples/recipes/AsyncProjectPicker.tsx +82 -0
  157. package/examples/recipes/DeleteProjectConfirmation.tsx +97 -0
  158. package/examples/recipes/InputCompositions.tsx +49 -0
  159. package/examples/recipes/RemoteRecordsTable.tsx +256 -0
  160. package/examples/recipes/useRemoteResource.ts +81 -0
  161. package/examples/reproduction/README.md +9 -0
  162. package/examples/reproduction/index.html +14 -0
  163. package/examples/reproduction/package.json +27 -0
  164. package/examples/reproduction/src/main.tsx +33 -0
  165. package/examples/reproduction/src/style.css +19 -0
  166. package/examples/reproduction/tsconfig.json +18 -0
  167. package/examples/reproduction/vite.config.ts +19 -0
  168. package/examples/starters/next/README.md +18 -0
  169. package/examples/starters/next/app/Demo.tsx +65 -0
  170. package/examples/starters/next/app/layout.tsx +25 -0
  171. package/examples/starters/next/app/next-page/page.tsx +9 -0
  172. package/examples/starters/next/app/page.tsx +11 -0
  173. package/examples/starters/next/app/style.css +19 -0
  174. package/examples/starters/next/next-env.d.ts +2 -0
  175. package/examples/starters/next/next.config.mjs +1 -0
  176. package/examples/starters/next/package.json +27 -0
  177. package/examples/starters/next/proxy.ts +16 -0
  178. package/examples/starters/next/tsconfig.json +30 -0
  179. package/examples/starters/vite/README.md +16 -0
  180. package/examples/starters/vite/index.html +14 -0
  181. package/examples/starters/vite/package.json +27 -0
  182. package/examples/starters/vite/src/main.tsx +81 -0
  183. package/examples/starters/vite/src/style.css +19 -0
  184. package/examples/starters/vite/tsconfig.json +18 -0
  185. package/examples/starters/vite/vite.config.ts +19 -0
  186. package/package.json +41 -5
@@ -0,0 +1,498 @@
1
+ /* Kit — data display: badges, tags, avatars, keys, stats, cards, tables, timelines, dividers, marquee, empty states. */
2
+
3
+ .contour-badge {
4
+ --contour-badge-bg: var(--contour-acid);
5
+ --contour-badge-fg: #374014;
6
+ display: inline-flex;
7
+ align-items: center;
8
+ gap: 6px;
9
+ padding: 2px 8px;
10
+ background: var(--contour-badge-bg);
11
+ color: var(--contour-badge-fg);
12
+ line-height: 1.6;
13
+ white-space: nowrap;
14
+ }
15
+
16
+ .contour-badge-neutral {
17
+ --contour-badge-bg: color-mix(in srgb, var(--contour-fg) 8%, transparent);
18
+ --contour-badge-fg: var(--contour-fg);
19
+ }
20
+
21
+ .contour-badge-invert {
22
+ --contour-badge-bg: var(--contour-invert-bg);
23
+ --contour-badge-fg: var(--contour-invert-fg);
24
+ }
25
+
26
+ .contour-badge-success {
27
+ --contour-badge-bg: var(--contour-success-soft);
28
+ --contour-badge-fg: var(--contour-success);
29
+ }
30
+
31
+ .contour-badge-info {
32
+ --contour-badge-bg: var(--contour-info-soft);
33
+ --contour-badge-fg: var(--contour-info);
34
+ }
35
+
36
+ .contour-badge-warning {
37
+ --contour-badge-bg: var(--contour-warning-soft);
38
+ --contour-badge-fg: var(--contour-warning);
39
+ }
40
+
41
+ .contour-badge-danger {
42
+ --contour-badge-bg: var(--contour-danger-soft);
43
+ --contour-badge-fg: var(--contour-danger);
44
+ }
45
+
46
+ .contour-badge-dot {
47
+ width: 6px;
48
+ height: 6px;
49
+ border-radius: 50%;
50
+ background: currentColor;
51
+ }
52
+
53
+ .contour-tag {
54
+ display: inline-flex;
55
+ align-items: center;
56
+ gap: 6px;
57
+ color: var(--contour-fg);
58
+ }
59
+
60
+ .contour-tag::before {
61
+ content: "+";
62
+ color: var(--contour-olive);
63
+ }
64
+
65
+ .contour-tag-removable {
66
+ padding: 3px 4px 3px 10px;
67
+ border: 1px solid var(--contour-line-strong);
68
+ border-radius: var(--contour-radius-pill);
69
+ }
70
+
71
+ .contour-tag-remove {
72
+ display: grid;
73
+ place-items: center;
74
+ width: 24px;
75
+ height: 24px;
76
+ border-radius: 50%;
77
+ color: var(--contour-muted);
78
+ transition:
79
+ background var(--contour-duration-fast),
80
+ color var(--contour-duration-fast);
81
+ }
82
+
83
+ .contour-tag-remove:hover {
84
+ background: var(--contour-acid);
85
+ color: var(--contour-ink);
86
+ }
87
+
88
+ .contour-avatar {
89
+ --contour-avatar-size: 44px;
90
+ position: relative;
91
+ display: inline-grid;
92
+ flex-shrink: 0;
93
+ width: var(--contour-avatar-size);
94
+ height: var(--contour-avatar-size);
95
+ }
96
+
97
+ .contour-avatar img,
98
+ .contour-avatar-initials {
99
+ width: 100%;
100
+ height: 100%;
101
+ border-radius: 50%;
102
+ }
103
+
104
+ .contour-avatar img {
105
+ object-fit: cover;
106
+ object-position: center 20%;
107
+ background: var(--contour-surface-sunken);
108
+ }
109
+
110
+ .contour-avatar-initials {
111
+ display: grid;
112
+ place-items: center;
113
+ background: var(--contour-invert-bg);
114
+ color: var(--contour-inverse-mark);
115
+ font: 600 calc(var(--contour-avatar-size) * 0.38) / 1 var(--contour-font-display);
116
+ }
117
+
118
+ .contour-avatar-sm {
119
+ --contour-avatar-size: 32px;
120
+ }
121
+
122
+ .contour-avatar-lg {
123
+ --contour-avatar-size: 64px;
124
+ }
125
+
126
+ .contour-avatar-xl {
127
+ --contour-avatar-size: 96px;
128
+ }
129
+
130
+ .contour-avatar-status {
131
+ position: absolute;
132
+ right: 4%;
133
+ bottom: 4%;
134
+ width: 26%;
135
+ height: 26%;
136
+ min-width: 8px;
137
+ min-height: 8px;
138
+ border: 2px solid var(--contour-bg);
139
+ border-radius: 50%;
140
+ }
141
+
142
+ .contour-avatar-status-online {
143
+ background: var(--contour-signal);
144
+ }
145
+
146
+ .contour-avatar-status-away {
147
+ background: var(--contour-warning);
148
+ }
149
+
150
+ /* Overlapping stack; each avatar is ringed in the page colour. */
151
+ .contour-avatar-group {
152
+ display: flex;
153
+ }
154
+
155
+ .contour-avatar-group > .contour-avatar {
156
+ border-radius: 50%;
157
+ box-shadow: 0 0 0 3px var(--contour-bg);
158
+ }
159
+
160
+ .contour-avatar-group > .contour-avatar + .contour-avatar {
161
+ margin-inline-start: -10px;
162
+ }
163
+
164
+ .contour-kbd {
165
+ display: inline-grid;
166
+ place-items: center;
167
+ min-width: 26px;
168
+ height: 26px;
169
+ padding-inline: 7px;
170
+ border: 1px solid var(--contour-line-strong);
171
+ border-bottom-width: 2px;
172
+ border-radius: var(--contour-radius-sm);
173
+ font: 12px / 1 var(--contour-font-mono);
174
+ color: var(--contour-fg);
175
+ }
176
+
177
+ .contour-stat {
178
+ display: grid;
179
+ gap: 8px;
180
+ }
181
+
182
+ .contour-stat strong {
183
+ font: 500 56px / 1 var(--contour-font-display);
184
+ }
185
+
186
+ .contour-stat-suffix {
187
+ color: var(--contour-olive);
188
+ font-size: 32px;
189
+ }
190
+
191
+ .contour-stat .contour-mono {
192
+ color: var(--contour-muted);
193
+ }
194
+
195
+ .contour-card {
196
+ --contour-card-bg: var(--contour-surface);
197
+ --contour-card-fg: var(--contour-fg);
198
+ --contour-card-muted: var(--contour-muted);
199
+ --contour-card-line: var(--contour-line);
200
+ display: grid;
201
+ align-content: start;
202
+ gap: 14px;
203
+ padding: 28px;
204
+ border: 1px solid var(--contour-card-line);
205
+ background: var(--contour-card-bg);
206
+ color: var(--contour-card-fg);
207
+ transition:
208
+ transform var(--contour-duration-slow) var(--contour-ease),
209
+ box-shadow var(--contour-duration-slow) var(--contour-ease);
210
+ }
211
+
212
+ .contour-card-ink {
213
+ --contour-card-bg: var(--contour-ink);
214
+ --contour-card-fg: var(--contour-paper);
215
+ --contour-card-muted: #b5baad;
216
+ --contour-card-line: #353733;
217
+ }
218
+
219
+ .contour-card-acid {
220
+ --contour-card-bg: var(--contour-acid);
221
+ --contour-card-fg: var(--contour-ink);
222
+ --contour-card-muted: #3b451f;
223
+ --contour-card-line: #a8c537;
224
+ }
225
+
226
+ .contour-card-interactive:hover {
227
+ transform: translateY(-6px);
228
+ box-shadow: var(--contour-shadow-raised);
229
+ }
230
+
231
+ .contour-card-top {
232
+ display: flex;
233
+ justify-content: space-between;
234
+ align-items: center;
235
+ gap: 16px;
236
+ color: var(--contour-card-muted);
237
+ text-transform: uppercase;
238
+ }
239
+
240
+ .contour-card-icon {
241
+ display: inline-flex;
242
+ color: var(--contour-card-fg);
243
+ }
244
+
245
+ .contour-card-title {
246
+ font-size: 24px;
247
+ line-height: 1.25;
248
+ }
249
+
250
+ .contour-card-body {
251
+ font-size: 14px;
252
+ line-height: 1.7;
253
+ color: var(--contour-card-muted);
254
+ }
255
+
256
+ .contour-card-footer {
257
+ display: flex;
258
+ align-items: center;
259
+ gap: 12px;
260
+ margin-top: 6px;
261
+ padding-top: 16px;
262
+ border-top: 1px solid var(--contour-card-line);
263
+ }
264
+
265
+ .contour-table-scroll {
266
+ overflow-x: auto;
267
+ border-top: 1px solid var(--contour-fg);
268
+ }
269
+
270
+ .contour-table-scroll:focus-visible {
271
+ outline: 2px solid var(--contour-fg);
272
+ outline-offset: 4px;
273
+ }
274
+
275
+ .contour-data-table {
276
+ color: var(--contour-fg);
277
+ width: 100%;
278
+ min-width: 560px;
279
+ border-collapse: collapse;
280
+ font-size: 14px;
281
+ }
282
+
283
+ .contour-data-table caption {
284
+ color: inherit;
285
+ text-align: start;
286
+ }
287
+
288
+ .contour-data-table th {
289
+ padding: 14px 16px 14px 0;
290
+ border-bottom: 1px solid var(--contour-line);
291
+ text-align: start;
292
+ text-transform: uppercase;
293
+ font-weight: 400;
294
+ color: var(--contour-muted);
295
+ }
296
+
297
+ .contour-data-table th button {
298
+ display: inline-flex;
299
+ align-items: center;
300
+ gap: 6px;
301
+ min-height: 24px;
302
+ text-transform: inherit;
303
+ }
304
+
305
+ .contour-data-table-idle {
306
+ opacity: 0.3;
307
+ }
308
+
309
+ .contour-data-table td {
310
+ padding: 16px 16px 16px 0;
311
+ border-bottom: 1px solid var(--contour-line);
312
+ }
313
+
314
+ .contour-data-table [data-align="end"] {
315
+ padding-inline-end: 0;
316
+ text-align: end;
317
+ font-variant-numeric: tabular-nums;
318
+ }
319
+
320
+ .contour-data-table [data-align="end"] button {
321
+ flex-direction: row-reverse;
322
+ }
323
+
324
+ .contour-data-table tbody tr {
325
+ transition: background var(--contour-duration-fast);
326
+ }
327
+
328
+ .contour-data-table tbody tr:hover {
329
+ background: color-mix(in srgb, var(--contour-fg) 4%, transparent);
330
+ }
331
+
332
+ .contour-timeline {
333
+ display: grid;
334
+ }
335
+
336
+ .contour-timeline-entry {
337
+ position: relative;
338
+ display: grid;
339
+ gap: 4px;
340
+ padding: 0 0 28px 30px;
341
+ }
342
+
343
+ /* Rail and marker drawn from the entry so they never drift from the text. */
344
+ .contour-timeline-entry::before {
345
+ content: "";
346
+ position: absolute;
347
+ top: 6px;
348
+ left: 0;
349
+ width: 11px;
350
+ height: 11px;
351
+ border: 1px solid var(--contour-fg);
352
+ border-radius: 50%;
353
+ background: var(--contour-bg);
354
+ }
355
+
356
+ .contour-timeline-entry:not(:last-child)::after {
357
+ content: "";
358
+ position: absolute;
359
+ top: 22px;
360
+ bottom: 2px;
361
+ left: 5px;
362
+ width: 1px;
363
+ background: var(--contour-line-strong);
364
+ }
365
+
366
+ .contour-timeline-current::before {
367
+ background: var(--contour-acid);
368
+ border-color: var(--contour-acid);
369
+ box-shadow: 0 0 0 4px color-mix(in srgb, var(--contour-acid) 30%, transparent);
370
+ }
371
+
372
+ .contour-timeline-date {
373
+ color: var(--contour-muted);
374
+ }
375
+
376
+ .contour-timeline-title {
377
+ font: 500 20px / 1.3 var(--contour-font-display);
378
+ }
379
+
380
+ .contour-timeline-body {
381
+ font-size: 14px;
382
+ line-height: 1.7;
383
+ color: var(--contour-muted);
384
+ }
385
+
386
+ .contour-divider {
387
+ width: 100%;
388
+ height: 0;
389
+ margin: 0;
390
+ border-top: 1px solid var(--contour-line);
391
+ }
392
+
393
+ .contour-divider-labelled {
394
+ display: flex;
395
+ align-items: center;
396
+ gap: 16px;
397
+ border: 0;
398
+ height: auto;
399
+ color: var(--contour-muted);
400
+ text-transform: uppercase;
401
+ }
402
+
403
+ .contour-divider-labelled::before,
404
+ .contour-divider-labelled::after {
405
+ content: "";
406
+ flex: 1;
407
+ border-top: 1px solid var(--contour-line);
408
+ }
409
+
410
+ .contour-marquee {
411
+ overflow: hidden;
412
+ background: var(--contour-invert-bg);
413
+ color: var(--contour-invert-fg);
414
+ mask-image: linear-gradient(
415
+ to right,
416
+ transparent,
417
+ #000 8%,
418
+ #000 92%,
419
+ transparent
420
+ );
421
+ }
422
+
423
+ .contour-marquee-inner {
424
+ display: flex;
425
+ width: max-content;
426
+ animation: contour-marquee var(--marquee-duration, 28s) linear infinite;
427
+ }
428
+
429
+ .contour-marquee:hover .contour-marquee-inner {
430
+ animation-play-state: paused;
431
+ }
432
+
433
+ .contour-marquee-track {
434
+ display: flex;
435
+ }
436
+
437
+ .contour-marquee-track li {
438
+ display: flex;
439
+ align-items: center;
440
+ gap: 18px;
441
+ padding: 18px 28px 18px 0;
442
+ font: 500 28px / 1.1 var(--contour-font-display);
443
+ white-space: nowrap;
444
+ }
445
+
446
+ .contour-marquee-track svg {
447
+ color: var(--contour-inverse-accent);
448
+ }
449
+
450
+ @keyframes contour-marquee {
451
+ to {
452
+ transform: translateX(-50%);
453
+ }
454
+ }
455
+
456
+ .contour-empty-state {
457
+ display: grid;
458
+ justify-items: center;
459
+ gap: 10px;
460
+ padding: 40px 24px;
461
+ text-align: center;
462
+ }
463
+
464
+ .contour-empty-state-icon {
465
+ display: grid;
466
+ place-items: center;
467
+ width: 72px;
468
+ height: 72px;
469
+ margin-bottom: 8px;
470
+ border: 1px solid var(--contour-line-strong);
471
+ border-radius: 50%;
472
+ color: var(--contour-olive);
473
+ }
474
+
475
+ .contour-empty-state h3 {
476
+ font-size: 22px;
477
+ }
478
+
479
+ .contour-empty-state p {
480
+ max-width: 300px;
481
+ font-size: 14px;
482
+ line-height: 1.6;
483
+ color: var(--contour-muted);
484
+ }
485
+
486
+ .contour-empty-state > :last-child:not(p) {
487
+ margin-top: 10px;
488
+ }
489
+
490
+ @media (max-width: 767px) {
491
+ .contour-stat strong {
492
+ font-size: 48px;
493
+ }
494
+
495
+ .contour-marquee-track li {
496
+ font-size: 22px;
497
+ }
498
+ }
@@ -0,0 +1,140 @@
1
+ /* Kit — effects: count-up, 3D tilt and flip cards, scroll progress, and 3D stage canvases. */
2
+
3
+ .contour-count-up {
4
+ font-variant-numeric: tabular-nums;
5
+ }
6
+
7
+ .contour-tilt-stage,
8
+ .contour-flip-stage {
9
+ perspective: 1000px;
10
+ }
11
+
12
+ .contour-tilt-card {
13
+ position: relative;
14
+ overflow: hidden;
15
+ transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
16
+ transform-style: preserve-3d;
17
+ transition: transform 500ms var(--contour-ease);
18
+ }
19
+
20
+ .contour-tilt-card:hover {
21
+ transition-duration: 120ms;
22
+ }
23
+
24
+ .contour-tilt-glare {
25
+ position: absolute;
26
+ inset: 0;
27
+ pointer-events: none;
28
+ background: radial-gradient(
29
+ circle at var(--glare-x, 50%) var(--glare-y, 50%),
30
+ #ffffff52,
31
+ transparent 55%
32
+ );
33
+ opacity: 0;
34
+ transition: opacity var(--contour-duration-base);
35
+ }
36
+
37
+ .contour-tilt-card:hover .contour-tilt-glare {
38
+ opacity: 1;
39
+ }
40
+
41
+ .contour-flip-stage {
42
+ display: grid;
43
+ justify-items: start;
44
+ gap: 16px;
45
+ }
46
+
47
+ .contour-flip-card {
48
+ position: relative;
49
+ width: 100%;
50
+ aspect-ratio: 1.6;
51
+ transform-style: preserve-3d;
52
+ transition: transform 900ms var(--contour-ease);
53
+ }
54
+
55
+ .contour-flip-card.contour-is-flipped {
56
+ transform: rotateY(180deg);
57
+ }
58
+
59
+ .contour-flip-face {
60
+ position: absolute;
61
+ inset: 0;
62
+ backface-visibility: hidden;
63
+ }
64
+
65
+ .contour-flip-back {
66
+ transform: rotateY(180deg);
67
+ }
68
+
69
+ .contour-flip-toggle {
70
+ display: inline-flex;
71
+ align-items: center;
72
+ gap: 8px;
73
+ padding-block: 6px;
74
+ border-bottom: 1px solid currentColor;
75
+ text-transform: uppercase;
76
+ }
77
+
78
+ .contour-scroll-progress {
79
+ position: fixed;
80
+ top: 0;
81
+ left: 0;
82
+ right: 0;
83
+ z-index: 60;
84
+ height: 2px;
85
+ background: var(--contour-acid);
86
+ transform: scaleX(var(--scroll-progress, 0));
87
+ transform-origin: left;
88
+ }
89
+
90
+ .contour-stage-canvas {
91
+ position: relative;
92
+ width: 100%;
93
+ height: 100%;
94
+ }
95
+
96
+ .contour-stage-canvas canvas {
97
+ width: 100%;
98
+ height: 100%;
99
+ transition: opacity 600ms ease;
100
+ }
101
+
102
+ .contour-stage-canvas:not([data-state="ready"]) canvas {
103
+ opacity: 0;
104
+ }
105
+
106
+ /* Depth button: the face sits on an ink base and travels down when pressed. */
107
+ .contour-depth-button {
108
+ display: inline-block;
109
+ padding: 0 0 8px;
110
+ border-radius: var(--contour-radius-pill);
111
+ background: var(--contour-depth-base);
112
+ }
113
+
114
+ .contour-depth-button-face {
115
+ display: inline-flex;
116
+ align-items: center;
117
+ gap: 10px;
118
+ height: 52px;
119
+ padding-inline: 28px;
120
+ border: 1px solid var(--contour-ink);
121
+ border-radius: var(--contour-radius-pill);
122
+ background: var(--contour-acid);
123
+ color: var(--contour-ink);
124
+ font-size: 14px;
125
+ font-weight: 500;
126
+ transform: translateY(-2px);
127
+ transition: transform 140ms var(--contour-ease);
128
+ }
129
+
130
+ .contour-depth-button:hover .contour-depth-button-face {
131
+ transform: translateY(-5px);
132
+ }
133
+
134
+ .contour-depth-button:active .contour-depth-button-face {
135
+ transform: translateY(6px);
136
+ }
137
+
138
+ .contour-depth-button:focus-visible {
139
+ outline-offset: 4px;
140
+ }