kira-kit 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 (36) hide show
  1. package/README.md +275 -176
  2. package/dist/index.mjs +4795 -1216
  3. package/package.json +71 -64
  4. package/templates/monorepo/kira-kit.json +21 -0
  5. package/templates/monorepo/packages/ui/package.json +37 -32
  6. package/templates/monorepo/packages/ui/src/components/ui/welcome.tsx +52 -52
  7. package/templates/monorepo/packages/ui/src/index.css +738 -89
  8. package/templates/monorepo/packages/ui/src/styles/kira-utilities.css +649 -0
  9. package/templates/monorepo/packages/ui/tsconfig.json +8 -7
  10. package/templates/next/app/globals.css +731 -83
  11. package/templates/next/app/kira-utilities.css +649 -0
  12. package/templates/next/components/ui/welcome.tsx +62 -62
  13. package/templates/next/kira-kit.json +21 -0
  14. package/templates/next/package.json +31 -28
  15. package/templates/next/types/import-meta.d.ts +11 -0
  16. package/templates/tanstack-start/README.md +16 -16
  17. package/templates/tanstack-start/kira-kit.json +21 -0
  18. package/templates/tanstack-start/package.json +33 -30
  19. package/templates/tanstack-start/src/components/ui/route-transition.tsx +116 -0
  20. package/templates/tanstack-start/src/components/ui/welcome.tsx +52 -52
  21. package/templates/tanstack-start/src/index.css +738 -89
  22. package/templates/tanstack-start/src/lib/view-transition.ts +35 -0
  23. package/templates/tanstack-start/src/router.tsx +23 -15
  24. package/templates/tanstack-start/src/routes/__root.tsx +70 -41
  25. package/templates/tanstack-start/src/styles/kira-utilities.css +649 -0
  26. package/templates/tanstack-start/tsconfig.json +22 -21
  27. package/templates/vite/kira-kit.json +21 -0
  28. package/templates/vite/package.json +31 -28
  29. package/templates/vite/src/components/ui/welcome.tsx +60 -60
  30. package/templates/vite/src/index.css +731 -83
  31. package/templates/vite/src/styles/kira-utilities.css +649 -0
  32. package/templates/vite/tsconfig.node.json +25 -22
  33. package/templates/monorepo/components.json +0 -23
  34. package/templates/next/components.json +0 -23
  35. package/templates/tanstack-start/components.json +0 -23
  36. package/templates/vite/components.json +0 -23
@@ -1,124 +1,772 @@
1
1
  @import "tailwindcss";
2
+ @import "tw-animate-css";
3
+ @import "./styles/kira-utilities.css";
4
+ @import "@fontsource-variable/geist";
5
+ @import "@fontsource-variable/geist-mono";
6
+
7
+ /* Flex */
8
+ @source inline("{sm:,md:,lg:,xl:,2xl:,}flex-{row,row-reverse,col,col-reverse,nowrap,wrap,wrap-reverse}");
9
+ @source inline("{sm:,md:,lg:,xl:,2xl:,}justify-{start,end,center,between,around,evenly}");
10
+ @source inline("{sm:,md:,lg:,xl:,2xl:,}items-{start,end,center,baseline,stretch}");
11
+ @source inline("{sm:,md:,lg:,xl:,2xl:,}gap-{0,1,2,3,4,5,6,8,10,12,16,20,24}");
12
+
13
+ /* Box — sizing */
14
+ @source inline("{sm:,md:,lg:,xl:,2xl:,}{w,h,min-w,min-h,max-w,max-h}-{0,0.5,1,1.5,2,2.5,3,3.5,4,5,6,7,8,9,10,11,12,14,16,20,24,28,32,36,40,44,48,52,56,60,64,72,80,96,px,full,fit,min,max}");
15
+ @source inline("{sm:,md:,lg:,xl:,2xl:,}w-{auto,screen,svw,lvw,dvw}");
16
+ @source inline("{sm:,md:,lg:,xl:,2xl:,}{h,min-h,max-h}-{screen,svh,lvh,dvh}");
17
+ @source inline("{sm:,md:,lg:,xl:,2xl:,}{h,min-w,min-h}-auto");
18
+ @source inline("{sm:,md:,lg:,xl:,2xl:,}{max-w,max-h}-none");
19
+ @source inline("{sm:,md:,lg:,xl:,2xl:,}max-w-{prose,3xs,2xs,xs,sm,md,lg,xl,2xl,3xl,4xl,5xl,6xl,7xl}");
20
+
21
+ /* Box — spacing */
22
+ @source inline("{sm:,md:,lg:,xl:,2xl:,}{p,px,py,m,mx,my}-{0,1,2,3,4,5,6,8,10,12}");
23
+ @source inline("{sm:,md:,lg:,xl:,2xl:,}{m,mx,my}-auto");
24
+
25
+ /* Box — color */
26
+ @source inline("{sm:,md:,lg:,xl:,2xl:,}bg-{background,foreground,card,popover,border,input,ring}");
27
+ @source inline("{sm:,md:,lg:,xl:,2xl:,}{bg,text}-{primary,secondary,muted,accent,destructive,success,warning,info}{,-foreground}");
28
+ @source inline("{sm:,md:,lg:,xl:,2xl:,}bg-{primary/10,primary/20,muted/50,destructive/10,success/10,warning/10,info/10}");
29
+ @source inline("{sm:,md:,lg:,xl:,2xl:,}text-foreground");
30
+
31
+ /* Box — border */
32
+ @source inline("{sm:,md:,lg:,xl:,2xl:,}border{,-2,-4,-8,-none}");
2
33
 
3
34
  @custom-variant dark (&:is(.dark *));
35
+ @custom-variant marked (&:is([data-checked], [data-indeterminate]));
4
36
 
5
37
  :root {
6
- --radius: 0.625rem;
38
+ color-scheme: light;
7
39
  --background: oklch(1 0 0);
8
40
  --foreground: oklch(0.145 0 0);
9
41
  --card: oklch(1 0 0);
10
42
  --card-foreground: oklch(0.145 0 0);
11
43
  --popover: oklch(1 0 0);
12
44
  --popover-foreground: oklch(0.145 0 0);
13
- --primary: oklch(0.205 0 0);
14
- --primary-foreground: oklch(0.985 0 0);
15
- --secondary: oklch(0.97 0 0);
16
- --secondary-foreground: oklch(0.205 0 0);
17
- --muted: oklch(0.97 0 0);
18
- --muted-foreground: oklch(0.556 0 0);
19
- --accent: oklch(0.97 0 0);
20
- --accent-foreground: oklch(0.205 0 0);
21
- --destructive: oklch(0.577 0.245 27.325);
22
- --destructive-foreground: oklch(0.985 0 0);
23
- --border: oklch(0.922 0 0);
24
- --input: oklch(0.922 0 0);
25
- --ring: oklch(0.708 0 0);
26
- --chart-1: oklch(0.646 0.222 41.116);
27
- --chart-2: oklch(0.6 0.118 184.704);
28
- --chart-3: oklch(0.398 0.07 227.392);
29
- --chart-4: oklch(0.828 0.189 84.429);
30
- --chart-5: oklch(0.769 0.188 70.08);
45
+ --primary: oklch(0.49 0.22 1);
46
+ --primary-foreground: oklch(0.97 0.01 343);
47
+ --secondary: oklch(0.75 0.1 10);
48
+ --secondary-foreground: oklch(0.2 0.03 15);
49
+ --muted: oklch(0.95 0.02 20);
50
+ --muted-foreground: oklch(0.5 0.03 25);
51
+ --accent: oklch(0.92 0.04 15);
52
+ --accent-foreground: oklch(0.3 0.04 20);
53
+ --destructive: oklch(0.48 0.2 20);
54
+ --destructive-foreground: oklch(0.98 0.01 20);
55
+ --info: oklch(0.47 0.13 225);
56
+ --info-foreground: oklch(0.98 0.01 225);
57
+ --success: oklch(0.46 0.13 150);
58
+ --success-foreground: oklch(0.98 0.01 150);
59
+ --warning: oklch(0.46 0.1 80);
60
+ --warning-foreground: oklch(0.98 0.01 80);
61
+ --border: oklch(0.9 0.01 20);
62
+ --input: oklch(0.6 0.01 20);
63
+ --ring: oklch(0.58 0.12 350);
64
+ --chart-1: oklch(0.61 0.12 185);
65
+ --chart-2: oklch(0.64 0.16 35);
66
+ --chart-3: oklch(0.61 0.13 95);
67
+ --chart-4: oklch(0.61 0.12 280);
68
+ --chart-5: oklch(0.6 0.1 160);
69
+ --radius: 0.45rem;
31
70
  --sidebar: oklch(0.985 0 0);
32
71
  --sidebar-foreground: oklch(0.145 0 0);
33
- --sidebar-primary: oklch(0.205 0 0);
34
- --sidebar-primary-foreground: oklch(0.985 0 0);
35
- --sidebar-accent: oklch(0.97 0 0);
36
- --sidebar-accent-foreground: oklch(0.205 0 0);
72
+ --sidebar-primary: oklch(0.54 0.22 1);
73
+ --sidebar-primary-foreground: oklch(0.97 0.01 343);
74
+ --sidebar-accent: oklch(0.9 0.04 15);
75
+ --sidebar-accent-foreground: oklch(0.25 0.04 15);
37
76
  --sidebar-border: oklch(0.922 0 0);
38
- --sidebar-ring: oklch(0.708 0 0);
77
+ --sidebar-ring: oklch(0.58 0.12 350);
78
+ --shadow-card: inset 0 1px 0 oklch(1 0 0 / 70%), 0 1px 2px oklch(0 0 0 / 5%);
79
+ --shadow-popover:
80
+ inset 0 1px 0 oklch(1 0 0 / 75%), 0 8px 24px -4px oklch(0 0 0 / 10%),
81
+ 0 2px 6px oklch(0 0 0 / 5%);
82
+ --shadow-modal:
83
+ inset 0 1px 0 oklch(1 0 0 / 80%), 0 24px 56px -12px oklch(0 0 0 / 20%);
39
84
  }
40
85
 
41
86
  .dark {
87
+ color-scheme: dark;
42
88
  --background: oklch(0.145 0 0);
43
89
  --foreground: oklch(0.985 0 0);
44
90
  --card: oklch(0.205 0 0);
45
91
  --card-foreground: oklch(0.985 0 0);
46
92
  --popover: oklch(0.205 0 0);
47
93
  --popover-foreground: oklch(0.985 0 0);
48
- --primary: oklch(0.922 0 0);
49
- --primary-foreground: oklch(0.205 0 0);
50
- --secondary: oklch(0.269 0 0);
51
- --secondary-foreground: oklch(0.985 0 0);
52
- --muted: oklch(0.269 0 0);
53
- --muted-foreground: oklch(0.708 0 0);
54
- --accent: oklch(0.269 0 0);
55
- --accent-foreground: oklch(0.985 0 0);
56
- --destructive: oklch(0.704 0.191 22.216);
57
- --destructive-foreground: oklch(0.985 0 0);
58
- --border: oklch(1 0 0 / 10%);
59
- --input: oklch(1 0 0 / 15%);
60
- --ring: oklch(0.556 0 0);
61
- --chart-1: oklch(0.488 0.243 264.376);
62
- --chart-2: oklch(0.696 0.17 162.48);
63
- --chart-3: oklch(0.769 0.188 70.08);
64
- --chart-4: oklch(0.627 0.265 303.9);
65
- --chart-5: oklch(0.645 0.246 16.439);
94
+ --primary: oklch(0.76 0.19 354);
95
+ /* The dark primary is a light pink, so its foreground is dark ink — the pair
96
+ needs 4.5:1 like every other preset's does. */
97
+ --primary-foreground: oklch(0.16 0.05 354);
98
+ --secondary: oklch(0.69 0.08 10);
99
+ --secondary-foreground: oklch(0.13 0.02 10);
100
+ --muted: oklch(0.25 0.02 15);
101
+ --muted-foreground: oklch(0.65 0.03 20);
102
+ --accent: oklch(0.4 0.08 10);
103
+ --accent-foreground: oklch(0.98 0.01 10);
104
+ --destructive: oklch(0.78 0.18 15);
105
+ --destructive-foreground: oklch(0.16 0.03 15);
106
+ --info: oklch(0.72 0.14 220);
107
+ --info-foreground: oklch(0.16 0.03 220);
108
+ --success: oklch(0.72 0.15 145);
109
+ --success-foreground: oklch(0.16 0.03 145);
110
+ --warning: oklch(0.74 0.14 75);
111
+ --warning-foreground: oklch(0.15 0.03 75);
112
+ --border: oklch(1 0 0 / 15%);
113
+ --input: oklch(1 0 0 / 48%);
114
+ --ring: oklch(0.65 0.14 350);
115
+ --chart-1: oklch(0.7 0.12 185);
116
+ --chart-2: oklch(0.7 0.16 35);
117
+ --chart-3: oklch(0.72 0.12 95);
118
+ --chart-4: oklch(0.65 0.1 280);
119
+ --chart-5: oklch(0.6 0.08 160);
66
120
  --sidebar: oklch(0.205 0 0);
67
121
  --sidebar-foreground: oklch(0.985 0 0);
68
- --sidebar-primary: oklch(0.488 0.243 264.376);
69
- --sidebar-primary-foreground: oklch(0.985 0 0);
70
- --sidebar-accent: oklch(0.269 0 0);
71
- --sidebar-accent-foreground: oklch(0.985 0 0);
122
+ --sidebar-primary: oklch(0.73 0.18 350);
123
+ --sidebar-primary-foreground: oklch(0.16 0.05 350);
124
+ --sidebar-accent: oklch(0.45 0.08 10);
125
+ --sidebar-accent-foreground: oklch(0.98 0.01 10);
72
126
  --sidebar-border: oklch(1 0 0 / 10%);
73
- --sidebar-ring: oklch(0.556 0 0);
127
+ --sidebar-ring: oklch(0.65 0.14 350);
128
+ --shadow-card: inset 0 1px 0 oklch(1 0 0 / 8%), 0 1px 2px oklch(0 0 0 / 32%);
129
+ --shadow-popover:
130
+ inset 0 1px 0 oklch(1 0 0 / 10%), 0 12px 28px -4px oklch(0 0 0 / 48%);
131
+ --shadow-modal:
132
+ inset 0 1px 0 oklch(1 0 0 / 12%), 0 28px 64px -12px oklch(0 0 0 / 68%);
133
+ }
134
+
135
+ /* Strong ease-out: the built-in ease-out is too weak to read as deliberate
136
+ motion at the 150–350ms durations the docs frame uses. */
137
+ :root {
138
+ --ease-out-strong: cubic-bezier(0.23, 1, 0.32, 1);
139
+ }
140
+
141
+ /* Spring curve (damping 0.65, ~7% overshoot) sampled into linear() so route
142
+ entrances get spring physics while staying composite-only CSS. Lives on
143
+ :root, not @theme, so it is always emitted for the tokens' var() lookup. */
144
+ :root {
145
+ --ease-spring: linear(
146
+ 0,
147
+ 0.015,
148
+ 0.0552,
149
+ 0.1142,
150
+ 0.1865,
151
+ 0.2671,
152
+ 0.352,
153
+ 0.4379,
154
+ 0.522,
155
+ 0.6024,
156
+ 0.6774,
157
+ 0.7461,
158
+ 0.8078,
159
+ 0.8621,
160
+ 0.9091,
161
+ 0.9489,
162
+ 0.9819,
163
+ 1.0085,
164
+ 1.0293,
165
+ 1.0449,
166
+ 1.056,
167
+ 1.0631,
168
+ 1.067,
169
+ 1.0681,
170
+ 1.067,
171
+ 1.0642,
172
+ 1.0601,
173
+ 1.0552,
174
+ 1.0497,
175
+ 1.0439,
176
+ 1.0381,
177
+ 1.0324,
178
+ 1.0269,
179
+ 1.0218,
180
+ 1.0171,
181
+ 1.013,
182
+ 1.0093,
183
+ 1.0061,
184
+ 1.0034,
185
+ 1.0012,
186
+ 0.9994,
187
+ 0.998,
188
+ 0.9969,
189
+ 0.9962,
190
+ 0.9957,
191
+ 0.9954,
192
+ 0.9954,
193
+ 0.9954,
194
+ 0.9956,
195
+ 0.9959,
196
+ 1
197
+ );
74
198
  }
75
199
 
76
200
  @theme inline {
77
- --font-sans: ui-sans-serif, system-ui, sans-serif;
201
+ --font-sans: "Geist Variable", ui-sans-serif, system-ui, sans-serif;
202
+ --font-display: var(--font-sans);
203
+ --tracking-kira-heading: -0.025em;
204
+ --font-mono: "Geist Mono Variable", ui-monospace, monospace;
205
+
206
+ /* Animation tokens for consistent motion */
207
+ --animate-shimmer: shimmer 2s infinite;
208
+ --animate-skeleton-wave: skeleton-wave 2s ease-in-out infinite;
209
+ --animate-badge-pulse: badge-pulse 2s ease-in-out infinite;
210
+ --animate-ping-once: ping-once 0.8s cubic-bezier(0, 0, 0.2, 1);
211
+ --animate-badge-shimmer: badge-shimmer 1.75s linear infinite;
212
+ --animate-marquee: marquee 18s linear infinite;
213
+ --animate-shake: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
214
+ --animate-fade-in: fade-in 0.3s ease-out;
215
+ --animate-route-fade: route-fade 0.15s cubic-bezier(0.23, 1, 0.32, 1) both;
216
+ --animate-route-fade-up: route-fade-up 0.25s var(--ease-spring) both;
217
+ --animate-route-fade-down: route-fade-down 0.25s var(--ease-spring) both;
218
+ --animate-route-slide-left: route-slide-left 0.25s var(--ease-spring) both;
219
+ --animate-route-slide-right: route-slide-right 0.25s var(--ease-spring) both;
220
+ --animate-route-zoom: route-zoom 0.25s var(--ease-spring) both;
221
+ --animate-nav-progress: nav-progress 10s ease-out forwards;
222
+ --animate-toast-progress: toast-progress linear forwards;
223
+ --animate-button-ripple: button-ripple 0.6s cubic-bezier(0.22, 1, 0.36, 1)
224
+ forwards;
225
+ --animate-checkbox-ripple: checkbox-ripple 0.3s ease-out forwards;
226
+ --animate-toggle-pop: toggle-pop 0.3s var(--ease-spring);
227
+
228
+ --color-sidebar-ring: var(--sidebar-ring);
229
+ --color-sidebar-border: var(--sidebar-border);
230
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
231
+ --color-sidebar-accent: var(--sidebar-accent);
232
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
233
+ --color-sidebar-primary: var(--sidebar-primary);
234
+ --color-sidebar-foreground: var(--sidebar-foreground);
235
+ --color-sidebar: var(--sidebar);
236
+ --color-chart-5: var(--chart-5);
237
+ --color-chart-4: var(--chart-4);
238
+ --color-chart-3: var(--chart-3);
239
+ --color-chart-2: var(--chart-2);
240
+ --color-chart-1: var(--chart-1);
241
+ --color-ring: var(--ring);
242
+ --color-input: var(--input);
243
+ --color-border: var(--border);
244
+ --color-destructive: var(--destructive);
245
+ --color-destructive-foreground: var(--destructive-foreground);
246
+ --color-info: var(--info);
247
+ --color-info-foreground: var(--info-foreground);
248
+ --color-success: var(--success);
249
+ --color-success-foreground: var(--success-foreground);
250
+ --color-warning: var(--warning);
251
+ --color-warning-foreground: var(--warning-foreground);
252
+ --color-accent-foreground: var(--accent-foreground);
253
+ --color-accent: var(--accent);
254
+ --color-muted-foreground: var(--muted-foreground);
255
+ --color-muted: var(--muted);
256
+ --color-secondary-foreground: var(--secondary-foreground);
257
+ --color-secondary: var(--secondary);
258
+ --color-primary-foreground: var(--primary-foreground);
259
+ --color-primary: var(--primary);
260
+ --color-popover-foreground: var(--popover-foreground);
261
+ --color-popover: var(--popover);
262
+ --color-card-foreground: var(--card-foreground);
263
+ --color-card: var(--card);
264
+ --color-foreground: var(--foreground);
265
+ --color-background: var(--background);
78
266
  --radius-sm: calc(var(--radius) - 4px);
79
267
  --radius-md: calc(var(--radius) - 2px);
80
268
  --radius-lg: var(--radius);
81
269
  --radius-xl: calc(var(--radius) + 4px);
82
- --color-background: var(--background);
83
- --color-foreground: var(--foreground);
84
- --color-card: var(--card);
85
- --color-card-foreground: var(--card-foreground);
86
- --color-popover: var(--popover);
87
- --color-popover-foreground: var(--popover-foreground);
88
- --color-primary: var(--primary);
89
- --color-primary-foreground: var(--primary-foreground);
90
- --color-secondary: var(--secondary);
91
- --color-secondary-foreground: var(--secondary-foreground);
92
- --color-muted: var(--muted);
93
- --color-muted-foreground: var(--muted-foreground);
94
- --color-accent: var(--accent);
95
- --color-accent-foreground: var(--accent-foreground);
96
- --color-destructive: var(--destructive);
97
- --color-destructive-foreground: var(--destructive-foreground);
98
- --color-border: var(--border);
99
- --color-input: var(--input);
100
- --color-ring: var(--ring);
101
- --color-chart-1: var(--chart-1);
102
- --color-chart-2: var(--chart-2);
103
- --color-chart-3: var(--chart-3);
104
- --color-chart-4: var(--chart-4);
105
- --color-chart-5: var(--chart-5);
106
- --color-sidebar: var(--sidebar);
107
- --color-sidebar-foreground: var(--sidebar-foreground);
108
- --color-sidebar-primary: var(--sidebar-primary);
109
- --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
110
- --color-sidebar-accent: var(--sidebar-accent);
111
- --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
112
- --color-sidebar-border: var(--sidebar-border);
113
- --color-sidebar-ring: var(--sidebar-ring);
270
+ --radius-2xl: calc(var(--radius) + 8px);
271
+ --radius-3xl: calc(var(--radius) + 12px);
272
+ --radius-4xl: calc(var(--radius) + 16px);
114
273
  }
115
274
 
116
275
  @layer base {
117
276
  * {
118
- @apply border-border outline-ring/50;
277
+ @apply border-border outline-ring;
119
278
  }
120
-
121
279
  body {
122
- @apply bg-background font-sans text-foreground antialiased;
280
+ @apply font-sans bg-background text-foreground;
281
+ }
282
+ html {
283
+ @apply font-sans;
284
+ }
285
+ h1,
286
+ h2,
287
+ h3 {
288
+ font-family: var(--font-display, var(--font-sans));
289
+ letter-spacing: var(--tracking-kira-heading, inherit);
290
+ }
291
+ }
292
+
293
+ /* Hide scrollbars while keeping scrollability (carousel/stack rails) */
294
+ @utility scrollbar-hide {
295
+ scrollbar-width: none;
296
+ -ms-overflow-style: none;
297
+ &::-webkit-scrollbar {
298
+ display: none;
299
+ }
300
+ }
301
+
302
+ /* Mac-like scrollbar styling with cross-browser support */
303
+ @layer base {
304
+ /* Standard scrollbar styling (Firefox) */
305
+ * {
306
+ scrollbar-width: thin;
307
+ scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
308
+ }
309
+
310
+ :root {
311
+ --scrollbar-thumb: oklch(0.7 0 0 / 40%);
312
+ --scrollbar-track: transparent;
313
+ --scrollbar-thumb-hover: oklch(0.6 0 0 / 60%);
314
+ }
315
+
316
+ .dark {
317
+ --scrollbar-thumb: oklch(0.5 0 0 / 40%);
318
+ --scrollbar-thumb-hover: oklch(0.6 0 0 / 60%);
319
+ }
320
+
321
+ /* Webkit scrollbar styling (Chrome, Safari, Edge) */
322
+ ::-webkit-scrollbar {
323
+ width: 8px;
324
+ height: 8px;
325
+ }
326
+
327
+ ::-webkit-scrollbar-track {
328
+ background: var(--scrollbar-track);
329
+ border-radius: 4px;
330
+ }
331
+
332
+ ::-webkit-scrollbar-thumb {
333
+ background: var(--scrollbar-thumb);
334
+ border-radius: 4px;
335
+ border: 2px solid transparent;
336
+ background-clip: content-box;
337
+ }
338
+
339
+ ::-webkit-scrollbar-thumb:hover {
340
+ background: var(--scrollbar-thumb-hover);
341
+ background-clip: content-box;
342
+ }
343
+
344
+ ::-webkit-scrollbar-corner {
345
+ background: transparent;
346
+ }
347
+
348
+ /* Accessibility: Respect user preferences for reduced motion.
349
+ Shared gate per playbook §5 — kills keyframe animations and transitions
350
+ kit-wide (skeleton-wave, badge-pulse, marquee, sticky-bar enter, ...). */
351
+ @media (prefers-reduced-motion: reduce) {
352
+ *,
353
+ *::before,
354
+ *::after {
355
+ animation-duration: 0.01ms !important;
356
+ animation-iteration-count: 1 !important;
357
+ transition-duration: 0.01ms !important;
358
+ }
359
+ ::-webkit-scrollbar-thumb {
360
+ transition: none;
361
+ }
362
+ }
363
+
364
+ /* Accessibility: High contrast mode support */
365
+ @media (forced-colors: active) {
366
+ ::-webkit-scrollbar-thumb {
367
+ background: CanvasText;
368
+ }
369
+ ::-webkit-scrollbar-track {
370
+ background: Canvas;
371
+ }
372
+ }
373
+ }
374
+
375
+ /* Shimmer animation for skeleton loading - seamless infinite loop */
376
+ @keyframes shimmer {
377
+ 0% {
378
+ transform: translateX(-100%);
379
+ }
380
+ 100% {
381
+ transform: translateX(100%);
382
+ }
383
+ }
384
+
385
+ /* Wave animation for skeleton loading - subtle opacity pulse */
386
+ @keyframes skeleton-wave {
387
+ 0%,
388
+ 100% {
389
+ opacity: 1;
390
+ }
391
+ 50% {
392
+ opacity: 0.5;
393
+ }
394
+ }
395
+
396
+ /* Badge pulse - gentle attention pulse for count/notification badges */
397
+ @keyframes badge-pulse {
398
+ 0%,
399
+ 100% {
400
+ transform: scale(1);
401
+ opacity: 1;
402
+ }
403
+ 50% {
404
+ transform: scale(1.08);
405
+ opacity: 0.85;
406
+ }
407
+ }
408
+
409
+ /* Ping once - single expanding ring (for one-shot "new" indication) */
410
+ @keyframes ping-once {
411
+ 75%,
412
+ 100% {
413
+ transform: scale(2);
414
+ opacity: 0;
415
+ }
416
+ }
417
+
418
+ /* Badge shimmer - light sweep across a badge. The keyframes own the whole
419
+ travel (no static translate alongside them — Tailwind v4's native
420
+ `translate` property composes with `transform` and would shift the range).
421
+ The element is inset-0, so ±100% moves it fully off the badge: it enters
422
+ from the left edge and exits past the right edge instead of parking in
423
+ the middle, with a beat of stillness between passes. */
424
+ @keyframes badge-shimmer {
425
+ 0%,
426
+ 20% {
427
+ transform: translateX(-100%);
428
+ }
429
+ 80%,
430
+ 100% {
431
+ transform: translateX(100%);
432
+ }
433
+ }
434
+
435
+ /* Marquee - continuous horizontal scroll for announcement content */
436
+ @keyframes marquee {
437
+ 0% {
438
+ transform: translateX(0);
439
+ }
440
+ 100% {
441
+ transform: translateX(-100%);
442
+ }
443
+ }
444
+
445
+ /* Fade in - quick entrance for feedback overlays (short, opacity only) */
446
+ @keyframes fade-in {
447
+ from {
448
+ opacity: 0;
449
+ }
450
+ to {
451
+ opacity: 1;
452
+ }
453
+ }
454
+
455
+ @keyframes shake {
456
+ 0%,
457
+ 100% {
458
+ transform: translateX(0);
459
+ }
460
+ 20% {
461
+ transform: translateX(-4px);
462
+ }
463
+ 40% {
464
+ transform: translateX(4px);
465
+ }
466
+ 60% {
467
+ transform: translateX(-3px);
468
+ }
469
+ 80% {
470
+ transform: translateX(3px);
471
+ }
472
+ }
473
+
474
+ /* Toast auto-dismiss countdown — composite-only scaleX bar at the bottom edge. */
475
+ @keyframes toast-progress {
476
+ from {
477
+ transform: scaleX(1);
478
+ }
479
+ to {
480
+ transform: scaleX(0);
481
+ }
482
+ }
483
+
484
+ @keyframes button-ripple {
485
+ from {
486
+ transform: translate(-50%, -50%) scale(0);
487
+ opacity: 0.3;
488
+ }
489
+ to {
490
+ transform: translate(-50%, -50%) scale(1);
491
+ opacity: 0;
492
+ }
493
+ }
494
+
495
+ @keyframes checkbox-ripple {
496
+ from {
497
+ transform: scale(0.5);
498
+ opacity: 0.3;
499
+ }
500
+ to {
501
+ transform: scale(1.5);
502
+ opacity: 0;
503
+ }
504
+ }
505
+
506
+ @keyframes toggle-pop {
507
+ from {
508
+ transform: scale(1.25);
509
+ }
510
+ to {
511
+ transform: scale(1);
512
+ }
513
+ }
514
+
515
+ /* Progress bar animations */
516
+ @keyframes progress-stripes {
517
+ from {
518
+ background-position: 1rem 0;
519
+ }
520
+ to {
521
+ background-position: 0 0;
522
+ }
523
+ }
524
+
525
+ @keyframes progress-indeterminate {
526
+ 0% {
527
+ transform: translateX(-100%);
528
+ }
529
+ 100% {
530
+ transform: translateX(400%);
531
+ }
532
+ }
533
+
534
+ /* Route entrances — short enough for tens-of-times-a-day sidebar navigation.
535
+ Movement variants ride the spring curve for a hint of overshoot; plain fade
536
+ stays ease-out. The native view transition crossfade replaces these while
537
+ it is active (see below), so the two never stack. */
538
+ @keyframes route-fade {
539
+ from {
540
+ opacity: 0;
541
+ }
542
+ to {
543
+ opacity: 1;
544
+ }
545
+ }
546
+
547
+ @keyframes route-fade-up {
548
+ from {
549
+ opacity: 0;
550
+ transform: translateY(8px);
551
+ }
552
+ to {
553
+ opacity: 1;
554
+ transform: translateY(0);
555
+ }
556
+ }
557
+
558
+ @keyframes route-fade-down {
559
+ from {
560
+ opacity: 0;
561
+ transform: translateY(-8px);
562
+ }
563
+ to {
564
+ opacity: 1;
565
+ transform: translateY(0);
566
+ }
567
+ }
568
+
569
+ /* Slides travel 24px, not the full viewport — route content is read dozens of
570
+ times a day, so direction is hinted, not performed. slide-left enters from
571
+ the right (forward navigation); slide-right enters from the left (back). */
572
+ @keyframes route-slide-left {
573
+ from {
574
+ opacity: 0;
575
+ transform: translateX(24px);
576
+ }
577
+ to {
578
+ opacity: 1;
579
+ transform: translateX(0);
580
+ }
581
+ }
582
+
583
+ @keyframes route-slide-right {
584
+ from {
585
+ opacity: 0;
586
+ transform: translateX(-24px);
587
+ }
588
+ to {
589
+ opacity: 1;
590
+ transform: translateX(0);
591
+ }
592
+ }
593
+
594
+ @keyframes route-zoom {
595
+ from {
596
+ opacity: 0;
597
+ transform: scale(0.96);
598
+ }
599
+ to {
600
+ opacity: 1;
601
+ transform: scale(1);
602
+ }
603
+ }
604
+
605
+ /* Navigation trickle — asymptotic scaleX so the bar keeps moving while route
606
+ chunks load, without ever claiming completion. Composite-only: it runs off
607
+ the main thread exactly when navigation makes the main thread busy. */
608
+ @keyframes nav-progress {
609
+ 0% {
610
+ transform: scaleX(0);
611
+ }
612
+ 15% {
613
+ transform: scaleX(0.4);
614
+ }
615
+ 40% {
616
+ transform: scaleX(0.65);
617
+ }
618
+ 70% {
619
+ transform: scaleX(0.8);
620
+ }
621
+ 100% {
622
+ transform: scaleX(0.9);
623
+ }
624
+ }
625
+
626
+ /* Native route crossfade (router defaultViewTransition) tuned to the kit's
627
+ motion scale instead of the UA default 0.25s. Apps should render the
628
+ RouteTransition entrance with variant="none" while this API is available —
629
+ suppressing it with :active-view-transition would restart the fade when the
630
+ crossfade ends and read as a second blink. */
631
+ ::view-transition-old(root),
632
+ ::view-transition-new(root) {
633
+ animation-duration: 150ms;
634
+ animation-timing-function: cubic-bezier(0.23, 1, 0.32, 1);
635
+ }
636
+
637
+ @media (prefers-reduced-motion: reduce) {
638
+ ::view-transition-old(root),
639
+ ::view-transition-new(root) {
640
+ animation-duration: 0.01ms;
641
+ }
642
+ }
643
+
644
+ /* Camera Scan Overlay animations */
645
+ @keyframes scan-line {
646
+ 0% {
647
+ transform: translateY(-100%);
648
+ }
649
+ 100% {
650
+ transform: translateY(100%);
651
+ }
652
+ }
653
+
654
+ @keyframes scan-overlay-corner-pulse {
655
+ 0%,
656
+ 100% {
657
+ opacity: 1;
658
+ }
659
+ 50% {
660
+ opacity: 0.6;
661
+ }
662
+ }
663
+
664
+ /* Calendar month transition (`animate` prop) — adapted from react-day-picker
665
+ (MIT, https://github.com/gpbl/react-day-picker) style.css and namespaced so
666
+ the kit never needs the rdp-* stylesheet. */
667
+ @keyframes kira-calendar-slide-in-left {
668
+ from {
669
+ transform: translateX(-100%);
670
+ }
671
+ to {
672
+ transform: translateX(0);
673
+ }
674
+ }
675
+
676
+ @keyframes kira-calendar-slide-in-right {
677
+ from {
678
+ transform: translateX(100%);
679
+ }
680
+ to {
681
+ transform: translateX(0);
682
+ }
683
+ }
684
+
685
+ @keyframes kira-calendar-slide-out-left {
686
+ from {
687
+ transform: translateX(0);
123
688
  }
689
+ to {
690
+ transform: translateX(-100%);
691
+ }
692
+ }
693
+
694
+ @keyframes kira-calendar-slide-out-right {
695
+ from {
696
+ transform: translateX(0);
697
+ }
698
+ to {
699
+ transform: translateX(100%);
700
+ }
701
+ }
702
+
703
+ @keyframes kira-calendar-fade-in {
704
+ from {
705
+ opacity: 0;
706
+ }
707
+ to {
708
+ opacity: 1;
709
+ }
710
+ }
711
+
712
+ @keyframes kira-calendar-fade-out {
713
+ from {
714
+ opacity: 1;
715
+ }
716
+ to {
717
+ opacity: 0;
718
+ }
719
+ }
720
+
721
+ .kira-calendar-weeks-before-enter {
722
+ animation: kira-calendar-slide-in-left
723
+ var(--kira-calendar-animation-duration, 0.3s)
724
+ var(--kira-calendar-animation-timing, cubic-bezier(0.4, 0, 0.2, 1)) forwards;
725
+ }
726
+
727
+ .kira-calendar-weeks-before-exit {
728
+ animation: kira-calendar-slide-out-left
729
+ var(--kira-calendar-animation-duration, 0.3s)
730
+ var(--kira-calendar-animation-timing, cubic-bezier(0.4, 0, 0.2, 1)) forwards;
731
+ }
732
+
733
+ .kira-calendar-weeks-after-enter {
734
+ animation: kira-calendar-slide-in-right
735
+ var(--kira-calendar-animation-duration, 0.3s)
736
+ var(--kira-calendar-animation-timing, cubic-bezier(0.4, 0, 0.2, 1)) forwards;
737
+ }
738
+
739
+ .kira-calendar-weeks-after-exit {
740
+ animation: kira-calendar-slide-out-right
741
+ var(--kira-calendar-animation-duration, 0.3s)
742
+ var(--kira-calendar-animation-timing, cubic-bezier(0.4, 0, 0.2, 1)) forwards;
743
+ }
744
+
745
+ [dir="rtl"] .kira-calendar-weeks-after-enter {
746
+ animation-name: kira-calendar-slide-in-left;
747
+ }
748
+
749
+ [dir="rtl"] .kira-calendar-weeks-before-exit {
750
+ animation-name: kira-calendar-slide-out-right;
751
+ }
752
+
753
+ [dir="rtl"] .kira-calendar-weeks-before-enter {
754
+ animation-name: kira-calendar-slide-in-right;
755
+ }
756
+
757
+ [dir="rtl"] .kira-calendar-weeks-after-exit {
758
+ animation-name: kira-calendar-slide-out-left;
759
+ }
760
+
761
+ .kira-calendar-caption-before-enter,
762
+ .kira-calendar-caption-after-enter {
763
+ animation: kira-calendar-fade-in var(--kira-calendar-animation-duration, 0.3s)
764
+ var(--kira-calendar-animation-timing, cubic-bezier(0.4, 0, 0.2, 1)) forwards;
765
+ }
766
+
767
+ .kira-calendar-caption-before-exit,
768
+ .kira-calendar-caption-after-exit {
769
+ animation: kira-calendar-fade-out
770
+ var(--kira-calendar-animation-duration, 0.3s)
771
+ var(--kira-calendar-animation-timing, cubic-bezier(0.4, 0, 0.2, 1)) forwards;
124
772
  }