@fabricator-ui/react-native 0.0.0-stage → 0.10.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 (46) hide show
  1. package/README.md +8 -2
  2. package/dist/LICENSE.md +25 -0
  3. package/dist/NOTICE.md +24 -0
  4. package/dist/lib/data-variants.ts +23 -0
  5. package/dist/lib/density-scale.ts +208 -0
  6. package/dist/lib/fabricator/css-object.ts +2 -0
  7. package/dist/lib/fabricator/density-scale.ts +210 -0
  8. package/dist/lib/fabricator/density-variables.ts +37 -0
  9. package/dist/lib/fabricator/motion-speeds.ts +566 -0
  10. package/dist/lib/fabricator/radius.ts +240 -0
  11. package/dist/lib/feedback.ts +124 -0
  12. package/dist/lib/field-frame.ts +53 -0
  13. package/dist/lib/field-model.ts +112 -0
  14. package/dist/lib/fluid-hover-model.ts +142 -0
  15. package/dist/lib/fluid-hover.tsx +788 -0
  16. package/dist/lib/icon-stroke.ts +38 -0
  17. package/dist/lib/motion-tokens.ts +97 -0
  18. package/dist/lib/motion.ts +292 -0
  19. package/dist/lib/overlay-model.ts +205 -0
  20. package/dist/lib/press-wash.tsx +73 -0
  21. package/dist/lib/render.tsx +53 -0
  22. package/dist/lib/select-model.ts +87 -0
  23. package/dist/lib/sheet-model.ts +101 -0
  24. package/dist/lib/sheet-surface.tsx +429 -0
  25. package/dist/lib/sound-recipes.ts +449 -0
  26. package/dist/lib/spring-model.ts +214 -0
  27. package/dist/lib/surface-color.tsx +27 -0
  28. package/dist/lib/text-children.ts +43 -0
  29. package/dist/styles.css +610 -0
  30. package/dist/ui/badge.tsx +108 -0
  31. package/dist/ui/button.tsx +285 -0
  32. package/dist/ui/card.tsx +365 -0
  33. package/dist/ui/checkbox.tsx +230 -0
  34. package/dist/ui/collapsible.tsx +194 -0
  35. package/dist/ui/density.tsx +79 -0
  36. package/dist/ui/dialog.tsx +232 -0
  37. package/dist/ui/dropdown-menu.tsx +687 -0
  38. package/dist/ui/fabricator-root.tsx +68 -0
  39. package/dist/ui/input.tsx +63 -0
  40. package/dist/ui/label.tsx +22 -0
  41. package/dist/ui/select.tsx +616 -0
  42. package/dist/ui/switch.tsx +177 -0
  43. package/dist/ui/tabs.tsx +272 -0
  44. package/dist/ui/text.tsx +125 -0
  45. package/dist/ui/textarea.tsx +65 -0
  46. package/package.json +54 -4
@@ -0,0 +1,43 @@
1
+ import * as React from "react"
2
+
3
+ /**
4
+ * Wraps text nodes in `wrap`, because React Native can't draw a bare string
5
+ * inside a view. Neighbouring strings and numbers stay together, so
6
+ * `Save {count}` is one label.
7
+ */
8
+ export function wrapTextChildren<Wrapped>(
9
+ children: React.ReactNode,
10
+ wrap: (text: string, key: number) => Wrapped
11
+ ) {
12
+ const output: (React.ReactNode | Wrapped)[] = []
13
+ let text = ""
14
+ const flush = () => {
15
+ if (text === "") return
16
+ output.push(wrap(text, output.length))
17
+ text = ""
18
+ }
19
+ // toArray drops empty nodes and keys the rest: this returns a list.
20
+ for (const child of React.Children.toArray(children)) {
21
+ if (typeof child === "string" || typeof child === "number") {
22
+ text += String(child)
23
+ continue
24
+ }
25
+ flush()
26
+ output.push(child)
27
+ }
28
+ flush()
29
+ return output
30
+ }
31
+
32
+ /**
33
+ * The text of `children`, for an accessible name when the text itself isn't
34
+ * drawn (an icon-only tab). Runs of text on either side of an element are
35
+ * joined with a space.
36
+ */
37
+ export function getTextContent(children: React.ReactNode) {
38
+ return wrapTextChildren(children, (text) => text.trim())
39
+ .filter(
40
+ (child): child is string => typeof child === "string" && child !== ""
41
+ )
42
+ .join(" ")
43
+ }
@@ -0,0 +1,610 @@
1
+ @source "./";
2
+
3
+ /* Fabricator UI's tokens for React Native. Generated; change the look with `fabricator-ui init` or at runtime with applyLook. */
4
+
5
+ @layer theme {
6
+ :root {
7
+ @variant light {
8
+ --foreground: #171717;
9
+ --card-foreground: #171717;
10
+ --popover-foreground: #171717;
11
+ --accent: rgba(0, 0, 0, 0.04);
12
+ --accent-foreground: #171717;
13
+ --border: rgba(23, 23, 23, 0.12);
14
+ --input: #e5e5e5;
15
+ --ring: #6d98fc;
16
+ --chart-1: #d4d4d4;
17
+ --chart-2: #737373;
18
+ --chart-3: #525252;
19
+ --chart-4: #404040;
20
+ --chart-5: #252525;
21
+ --sidebar-foreground: #171717;
22
+ --sidebar-accent: rgba(0, 0, 0, 0.04);
23
+ --sidebar-accent-foreground: #171717;
24
+ --sidebar-border: rgba(23, 23, 23, 0.12);
25
+ --sidebar-ring: #6d98fc;
26
+ --primary: #171717;
27
+ --primary-foreground: #fafafa;
28
+ --primary-text: #171717;
29
+ --primary-border: rgba(23, 23, 23, 0.12);
30
+ --primary-surface-1: #f5f5f5;
31
+ --primary-surface-2: #f8f8f8;
32
+ --primary-surface-3: #fafafa;
33
+ --primary-surface-4: #fcfcfc;
34
+ --primary-surface-5: #fdfdfd;
35
+ --primary-surface-6: #fdfdfd;
36
+ --primary-surface-7: #fefefe;
37
+ --primary-surface-8: #ffffff;
38
+ --secondary: rgba(0, 0, 0, 0.08);
39
+ --secondary-foreground: #171717;
40
+ --secondary-text: #171717;
41
+ --secondary-border: rgba(23, 23, 23, 0.12);
42
+ --secondary-surface-1: #f5f5f5;
43
+ --secondary-surface-2: #f8f8f8;
44
+ --secondary-surface-3: #fafafa;
45
+ --secondary-surface-4: #fcfcfc;
46
+ --secondary-surface-5: #fdfdfd;
47
+ --secondary-surface-6: #fdfdfd;
48
+ --secondary-surface-7: #fefefe;
49
+ --secondary-surface-8: #ffffff;
50
+ --info: #1156c1;
51
+ --info-foreground: #fafafa;
52
+ --info-text: #1a50a8;
53
+ --info-border: rgba(17, 86, 193, 0.3);
54
+ --info-surface-1: #f1f5fc;
55
+ --info-surface-2: #f4f8ff;
56
+ --info-surface-3: #f8fbfe;
57
+ --info-surface-4: #fbfcfd;
58
+ --info-surface-5: #fdfdfd;
59
+ --info-surface-6: #fdfdff;
60
+ --info-surface-7: #fefefe;
61
+ --info-surface-8: #ffffff;
62
+ --success: #067132;
63
+ --success-foreground: #fafafa;
64
+ --success-text: #186632;
65
+ --success-border: rgba(6, 113, 50, 0.3);
66
+ --success-surface-1: #e5fce9;
67
+ --success-surface-2: #eafeed;
68
+ --success-surface-3: #f1fff3;
69
+ --success-surface-4: #f7fef8;
70
+ --success-surface-5: #f9fffa;
71
+ --success-surface-6: #fafffb;
72
+ --success-surface-7: #fefefe;
73
+ --success-surface-8: #ffffff;
74
+ --warning: #81520a;
75
+ --warning-foreground: #fafafa;
76
+ --warning-text: #734c17;
77
+ --warning-border: rgba(129, 82, 10, 0.3);
78
+ --warning-surface-1: #fef3e7;
79
+ --warning-surface-2: #fff6ed;
80
+ --warning-surface-3: #fdfaf7;
81
+ --warning-surface-4: #fffbf7;
82
+ --warning-surface-5: #fefcfa;
83
+ --warning-surface-6: #fefdfc;
84
+ --warning-surface-7: #fefefe;
85
+ --warning-surface-8: #ffffff;
86
+ --destructive: #b00a1d;
87
+ --destructive-foreground: #fafafa;
88
+ --destructive-text: #9b1d22;
89
+ --destructive-border: rgba(176, 10, 29, 0.3);
90
+ --destructive-surface-1: #fcf3f2;
91
+ --destructive-surface-2: #fef5f4;
92
+ --destructive-surface-3: #fef9f9;
93
+ --destructive-surface-4: #fdfbfb;
94
+ --destructive-surface-5: #fdfdfd;
95
+ --destructive-surface-6: #fffdfd;
96
+ --destructive-surface-7: #fefefe;
97
+ --destructive-surface-8: #ffffff;
98
+ --sidebar-primary: #171717;
99
+ --sidebar-primary-foreground: #fafafa;
100
+ --surface-0: #ffffff;
101
+ --surface-1: #fafafa;
102
+ --shadow-1: 0 0 0 1px #0000000f;
103
+ --surface-2: #fcfcfc;
104
+ --shadow-2: 0 0 0 1px #0000000f, 0 1px 1px -0.5px #0000000f;
105
+ --surface-3: #ffffff;
106
+ --shadow-3: 0 0 0 1px #0000000f, 0 1px 1px -0.5px #0000000f, 0 3px 3px -1.5px #0000000f;
107
+ --surface-4: #ffffff;
108
+ --shadow-4: 0 0 0 1px #0000000f, 0 1px 1px -0.5px #0000000f, 0 3px 3px -1.5px #0000000f, 0 6px 6px -3px #0000000f;
109
+ --surface-5: #ffffff;
110
+ --shadow-5: 0 0 0 1px #0000000f, 0 1px 1px -0.5px #0000000f, 0 3px 3px -1.5px #0000000f, 0 6px 6px -3px #0000000f, 0 12px 12px -6px #0000000f;
111
+ --surface-6: #ffffff;
112
+ --shadow-6: 0 0 0 1px #0000000f, 0 1px 1px -0.5px #0000000f, 0 3px 3px -1.5px #0000000f, 0 6px 6px -3px #0000000f, 0 12px 12px -6px #0000000f, 0 24px 24px -12px #0000000f;
113
+ --surface-7: #ffffff;
114
+ --shadow-7: 0 0 0 1px #0000000f, 0 1px 1px -0.5px #0000000f, 0 3px 3px -1.5px #0000000f, 0 6px 6px -3px #0000000f, 0 12px 12px -6px #0000000f, 0 24px 24px -12px #0000000f, 0 48px 48px -24px #0000000f;
115
+ --surface-8: #ffffff;
116
+ --shadow-8: 0 0 0 1px #0000000f, 0 1px 1px -0.5px #0000000f, 0 3px 3px -1.5px #0000000f, 0 6px 6px -3px #0000000f, 0 12px 12px -6px #0000000f, 0 24px 24px -12px #0000000f, 0 48px 48px -24px #0000000f, 0 96px 96px -48px #0000000f;
117
+ --background: #fafafa;
118
+ --card: #ffffff;
119
+ --popover: #ffffff;
120
+ --sidebar: #fcfcfc;
121
+ --muted: #f4f4f4;
122
+ --muted-foreground: #737373;
123
+ --selected: #d4d4d4;
124
+ --hover: rgba(0, 0, 0, 0.04);
125
+ --active: rgba(0, 0, 0, 0.07);
126
+ --tint: rgba(0, 0, 0, 0.08);
127
+ --tint-hover: rgba(0, 0, 0, 0.065);
128
+ --focus-ring: #6d98fc;
129
+ --syntax-keyword: #773e8e;
130
+ --syntax-function: #2056af;
131
+ --syntax-string: #206b37;
132
+ --syntax-constant: #79511e;
133
+ --syntax-type: #216767;
134
+ --syntax-tag: #a22528;
135
+ --syntax-comment: #666666;
136
+ --syntax-punctuation: #4d4d4d;
137
+ --chart-series-1: #2978d6;
138
+ --chart-series-2: #e0612b;
139
+ --chart-series-3: #0d9e78;
140
+ --chart-series-4: #c08214;
141
+ --chart-series-5: #d6588a;
142
+ --chart-series-6: #0c830a;
143
+ --chart-series-7: #6250d6;
144
+ --chart-series-8: #d93f3e;
145
+ --app-shell-frame: #ededed;
146
+ --app-shell-main: #fafafa;
147
+ --app-shell-panel: #fafafa;
148
+ --app-shell-frame-muted: #636363;
149
+ --app-shell-card-shadow: 0 0 0 1px #0000000f, 0 1px 1px -0.5px #0000000f;
150
+ --radius: 8px;
151
+ --radius-sm: 4.8px;
152
+ --radius-md: 6.4px;
153
+ --radius-lg: 8px;
154
+ --radius-xl: 11.2px;
155
+ --radius-2xl: 14.4px;
156
+ --radius-control: 8px;
157
+ --radius-surface: 12px;
158
+ --radius-panel: 16px;
159
+ --radius-mark: 4px;
160
+ --radius-card: 16px;
161
+ --radius-card-sm: 12px;
162
+ --radius-card-inner: 12px;
163
+ --radius-nested: 8px;
164
+ --radius-inner: 4px;
165
+ --radius-wrap: 12px;
166
+ --corner-curve: circular;
167
+ --density-4: 4px;
168
+ --density-6: 6px;
169
+ --density-8: 8px;
170
+ --density-10: 10px;
171
+ --density-12: 12px;
172
+ --density-14: 14px;
173
+ --density-16: 16px;
174
+ --density-20: 20px;
175
+ --density-24: 24px;
176
+ --density-28: 28px;
177
+ --density-30: 30px;
178
+ --density-32: 32px;
179
+ --density-36: 36px;
180
+ --density-40: 40px;
181
+ --density-48: 48px;
182
+ --density-text-11: 11px;
183
+ --density-text-12: 12px;
184
+ --density-text-13: 13px;
185
+ --density-text-14: 14px;
186
+ --density-text-16: 16px;
187
+ --density-text-24: 24px;
188
+ --density-text-32: 32px;
189
+ --density-icon-14: 14px;
190
+ --density-icon-16: 16px;
191
+ --density-icon-18: 18px;
192
+ --density-icon-stroke-14: 2.286;
193
+ --density-icon-stroke-16: 2.125;
194
+ --density-icon-stroke-18: 2;
195
+ --motion-feedback: 150;
196
+ --motion-feedback-exit: 100;
197
+ --motion-glide: 150;
198
+ --motion-glide-exit: 100;
199
+ --motion-move: 250;
200
+ --motion-move-exit: 180;
201
+ --motion-theme: 700;
202
+ --motion-theme-exit: 700;
203
+ --motion-tooltip: 125;
204
+ --motion-tooltip-exit: 90;
205
+ --motion-popup: 180;
206
+ --motion-popup-exit: 120;
207
+ --motion-dialog: 250;
208
+ --motion-dialog-exit: 180;
209
+ --motion-sheet: 400;
210
+ --motion-sheet-exit: 250;
211
+ --motion-disclosure: 200;
212
+ --motion-disclosure-exit: 150;
213
+ --motion-bounce: 600;
214
+ --motion-bounce-exit: 480;
215
+ --motion-settle: 380;
216
+ --motion-settle-exit: 380;
217
+ --motion-toast: 350;
218
+ --motion-toast-exit: 220;
219
+ --motion-reveal: 700;
220
+ --motion-reveal-exit: 450;
221
+ --motion-scale: 1;
222
+ --motion-speed: 1;
223
+ --motion-press-scale: 0.97;
224
+ --motion-tooltip-scale: 0.97;
225
+ --motion-popup-scale: 0.95;
226
+ --motion-dialog-scale: 0.95;
227
+ --motion-tooltip-travel: 0px;
228
+ --motion-popup-travel: 0px;
229
+ --motion-stagger: 45;
230
+ --spinner-variant: 0;
231
+ }
232
+ @variant dark {
233
+ --foreground: #f5f5f5;
234
+ --card-foreground: #f5f5f5;
235
+ --popover-foreground: #f5f5f5;
236
+ --accent: rgba(255, 255, 255, 0.06);
237
+ --accent-foreground: #f5f5f5;
238
+ --border: rgba(245, 245, 245, 0.12);
239
+ --input: #404040;
240
+ --ring: #6d98fc;
241
+ --chart-1: #d4d4d4;
242
+ --chart-2: #a3a3a3;
243
+ --chart-3: #737373;
244
+ --chart-4: #525252;
245
+ --chart-5: #404040;
246
+ --sidebar-foreground: #f5f5f5;
247
+ --sidebar-accent: rgba(255, 255, 255, 0.06);
248
+ --sidebar-accent-foreground: #f5f5f5;
249
+ --sidebar-border: rgba(245, 245, 245, 0.12);
250
+ --sidebar-ring: #6d98fc;
251
+ --primary: #f5f5f5;
252
+ --primary-foreground: #171717;
253
+ --primary-text: #f5f5f5;
254
+ --primary-border: rgba(245, 245, 245, 0.12);
255
+ --primary-surface-1: #191919;
256
+ --primary-surface-2: #202020;
257
+ --primary-surface-3: #272727;
258
+ --primary-surface-4: #2e2e2e;
259
+ --primary-surface-5: #363636;
260
+ --primary-surface-6: #3c3c3c;
261
+ --primary-surface-7: #444444;
262
+ --primary-surface-8: #4b4b4b;
263
+ --secondary: rgba(255, 255, 255, 0.25);
264
+ --secondary-foreground: #f5f5f5;
265
+ --secondary-text: #f5f5f5;
266
+ --secondary-border: rgba(245, 245, 245, 0.12);
267
+ --secondary-surface-1: #191919;
268
+ --secondary-surface-2: #202020;
269
+ --secondary-surface-3: #272727;
270
+ --secondary-surface-4: #2e2e2e;
271
+ --secondary-surface-5: #363636;
272
+ --secondary-surface-6: #3c3c3c;
273
+ --secondary-surface-7: #444444;
274
+ --secondary-surface-8: #4b4b4b;
275
+ --info: #7aabfc;
276
+ --info-foreground: #171717;
277
+ --info-text: #b3cffc;
278
+ --info-border: rgba(122, 171, 252, 0.32);
279
+ --info-surface-1: #0e192c;
280
+ --info-surface-2: #172131;
281
+ --info-surface-3: #1f2836;
282
+ --info-surface-4: #272f3b;
283
+ --info-surface-5: #2f3641;
284
+ --info-surface-6: #373d47;
285
+ --info-surface-7: #3e444d;
286
+ --info-surface-8: #464b54;
287
+ --success: #69c27e;
288
+ --success-foreground: #171717;
289
+ --success-text: #aedbb6;
290
+ --success-border: rgba(105, 194, 126, 0.32);
291
+ --success-surface-1: #0a1f0f;
292
+ --success-surface-2: #142518;
293
+ --success-surface-3: #1d2b20;
294
+ --success-surface-4: #263228;
295
+ --success-surface-5: #2e3930;
296
+ --success-surface-6: #364037;
297
+ --success-surface-7: #3d463f;
298
+ --success-surface-8: #454d46;
299
+ --warning: #d3a062;
300
+ --warning-foreground: #171717;
301
+ --warning-text: #ecc69c;
302
+ --warning-border: rgba(211, 160, 98, 0.32);
303
+ --warning-surface-1: #251603;
304
+ --warning-surface-2: #2b1d0e;
305
+ --warning-surface-3: #312518;
306
+ --warning-surface-4: #372d21;
307
+ --warning-surface-5: #3d342a;
308
+ --warning-surface-6: #433b32;
309
+ --warning-surface-7: #4a423a;
310
+ --warning-surface-8: #514a42;
311
+ --destructive: #f28881;
312
+ --destructive-foreground: #171717;
313
+ --destructive-text: #f9bdb7;
314
+ --destructive-border: rgba(242, 136, 129, 0.32);
315
+ --destructive-surface-1: #291110;
316
+ --destructive-surface-2: #2f1a18;
317
+ --destructive-surface-3: #342220;
318
+ --destructive-surface-4: #3a2a28;
319
+ --destructive-surface-5: #403130;
320
+ --destructive-surface-6: #463937;
321
+ --destructive-surface-7: #4d403f;
322
+ --destructive-surface-8: #534847;
323
+ --sidebar-primary: #f5f5f5;
324
+ --sidebar-primary-foreground: #171717;
325
+ --surface-0: #101010;
326
+ --surface-1: #171717;
327
+ --shadow-1: inset 0 0 0 1px #ffffff05;
328
+ --surface-2: #1e1e1e;
329
+ --shadow-2: inset 0 1px 0 0 #ffffff03, inset 0 0 0 1px #ffffff05, 0 1px 1px -0.5px #0000002e;
330
+ --surface-3: #252525;
331
+ --shadow-3: inset 0 1px 0 0 #ffffff05, inset 0 0 0 1px #ffffff05, 0 0 0 1px #0000001f, 0 1px 1px -0.5px #0000002e, 0 3px 3px -1.5px #0000002e;
332
+ --surface-4: #2c2c2c;
333
+ --shadow-4: inset 0 1px 0 0 #ffffff05, inset 0 0 0 1px #ffffff0a, 0 0 0 1px #00000024, 0 1px 1px -0.5px #0000002e, 0 3px 3px -1.5px #0000002e, 0 6px 6px -3px #0000002e;
334
+ --surface-5: #333333;
335
+ --shadow-5: inset 0 1px 0 0 #ffffff0a, inset 0 0 0 1px #ffffff0a, 0 0 0 1px #00000029, 0 1px 1px -0.5px #0000002e, 0 3px 3px -1.5px #0000002e, 0 6px 6px -3px #0000002e, 0 12px 12px -6px #0000002e;
336
+ --surface-6: #3a3a3a;
337
+ --shadow-6: inset 0 1px 0 0 #ffffff0a, inset 0 0 0 1px #ffffff0f, 0 0 0 1px #0000002e, 0 1px 1px -0.5px #0000002e, 0 3px 3px -1.5px #0000002e, 0 6px 6px -3px #0000002e, 0 12px 12px -6px #0000002e, 0 24px 24px -12px #0000002e;
338
+ --surface-7: #414141;
339
+ --shadow-7: inset 0 1px 0 0 #ffffff0f, inset 0 0 0 1px #ffffff0f, 0 0 0 1px #00000033, 0 1px 1px -0.5px #0000002e, 0 3px 3px -1.5px #0000002e, 0 6px 6px -3px #0000002e, 0 12px 12px -6px #0000002e, 0 24px 24px -12px #0000002e, 0 48px 48px -24px #0000002e;
340
+ --surface-8: #484848;
341
+ --shadow-8: inset 0 1px 0 0 #ffffff0f, inset 0 0 0 1px #ffffff0f, 0 0 0 1px #00000038, 0 1px 1px -0.5px #0000002e, 0 3px 3px -1.5px #0000002e, 0 6px 6px -3px #0000002e, 0 12px 12px -6px #0000002e, 0 24px 24px -12px #0000002e, 0 48px 48px -24px #0000002e, 0 96px 96px -48px #0000002e;
342
+ --background: #171717;
343
+ --card: #252525;
344
+ --popover: #252525;
345
+ --sidebar: #1e1e1e;
346
+ --muted: #1e1e1e;
347
+ --muted-foreground: #a3a3a3;
348
+ --selected: #525252;
349
+ --hover: rgba(255, 255, 255, 0.06);
350
+ --active: rgba(255, 255, 255, 0.1);
351
+ --tint: rgba(255, 255, 255, 0.25);
352
+ --tint-hover: rgba(255, 255, 255, 0.2);
353
+ --focus-ring: #6d98fc;
354
+ --syntax-keyword: #d2a2e8;
355
+ --syntax-function: #8eb8fe;
356
+ --syntax-string: #82cb92;
357
+ --syntax-constant: #e1ac6e;
358
+ --syntax-type: #76c8c7;
359
+ --syntax-tag: #f69b94;
360
+ --syntax-comment: #9e9e9e;
361
+ --syntax-punctuation: #bebebe;
362
+ --chart-series-1: #3987e5;
363
+ --chart-series-2: #d95926;
364
+ --chart-series-3: #1a9e70;
365
+ --chart-series-4: #c88614;
366
+ --chart-series-5: #d55181;
367
+ --chart-series-6: #0ca30d;
368
+ --chart-series-7: #9085e9;
369
+ --chart-series-8: #e66767;
370
+ --app-shell-frame: #0d0d0d;
371
+ --app-shell-main: #171717;
372
+ --app-shell-panel: #171717;
373
+ --app-shell-frame-muted: #a3a3a3;
374
+ --app-shell-card-shadow: inset 0 0 0 1px #ffffff0f, 0 1px 2px #0000003d;
375
+ --radius: 8px;
376
+ --radius-sm: 4.8px;
377
+ --radius-md: 6.4px;
378
+ --radius-lg: 8px;
379
+ --radius-xl: 11.2px;
380
+ --radius-2xl: 14.4px;
381
+ --radius-control: 8px;
382
+ --radius-surface: 12px;
383
+ --radius-panel: 16px;
384
+ --radius-mark: 4px;
385
+ --radius-card: 16px;
386
+ --radius-card-sm: 12px;
387
+ --radius-card-inner: 12px;
388
+ --radius-nested: 8px;
389
+ --radius-inner: 4px;
390
+ --radius-wrap: 12px;
391
+ --corner-curve: circular;
392
+ --density-4: 4px;
393
+ --density-6: 6px;
394
+ --density-8: 8px;
395
+ --density-10: 10px;
396
+ --density-12: 12px;
397
+ --density-14: 14px;
398
+ --density-16: 16px;
399
+ --density-20: 20px;
400
+ --density-24: 24px;
401
+ --density-28: 28px;
402
+ --density-30: 30px;
403
+ --density-32: 32px;
404
+ --density-36: 36px;
405
+ --density-40: 40px;
406
+ --density-48: 48px;
407
+ --density-text-11: 11px;
408
+ --density-text-12: 12px;
409
+ --density-text-13: 13px;
410
+ --density-text-14: 14px;
411
+ --density-text-16: 16px;
412
+ --density-text-24: 24px;
413
+ --density-text-32: 32px;
414
+ --density-icon-14: 14px;
415
+ --density-icon-16: 16px;
416
+ --density-icon-18: 18px;
417
+ --density-icon-stroke-14: 2.286;
418
+ --density-icon-stroke-16: 2.125;
419
+ --density-icon-stroke-18: 2;
420
+ --motion-feedback: 150;
421
+ --motion-feedback-exit: 100;
422
+ --motion-glide: 150;
423
+ --motion-glide-exit: 100;
424
+ --motion-move: 250;
425
+ --motion-move-exit: 180;
426
+ --motion-theme: 700;
427
+ --motion-theme-exit: 700;
428
+ --motion-tooltip: 125;
429
+ --motion-tooltip-exit: 90;
430
+ --motion-popup: 180;
431
+ --motion-popup-exit: 120;
432
+ --motion-dialog: 250;
433
+ --motion-dialog-exit: 180;
434
+ --motion-sheet: 400;
435
+ --motion-sheet-exit: 250;
436
+ --motion-disclosure: 200;
437
+ --motion-disclosure-exit: 150;
438
+ --motion-bounce: 600;
439
+ --motion-bounce-exit: 480;
440
+ --motion-settle: 380;
441
+ --motion-settle-exit: 380;
442
+ --motion-toast: 350;
443
+ --motion-toast-exit: 220;
444
+ --motion-reveal: 700;
445
+ --motion-reveal-exit: 450;
446
+ --motion-scale: 1;
447
+ --motion-speed: 1;
448
+ --motion-press-scale: 0.97;
449
+ --motion-tooltip-scale: 0.97;
450
+ --motion-popup-scale: 0.95;
451
+ --motion-dialog-scale: 0.95;
452
+ --motion-tooltip-travel: 0px;
453
+ --motion-popup-travel: 0px;
454
+ --motion-stagger: 45;
455
+ --spinner-variant: 0;
456
+ }
457
+ }
458
+ }
459
+
460
+ @theme inline {
461
+ --color-background: var(--background);
462
+ --color-foreground: var(--foreground);
463
+ --color-card: var(--card);
464
+ --color-card-foreground: var(--card-foreground);
465
+ --color-popover: var(--popover);
466
+ --color-popover-foreground: var(--popover-foreground);
467
+ --color-primary: var(--primary);
468
+ --color-primary-foreground: var(--primary-foreground);
469
+ --color-secondary: var(--secondary);
470
+ --color-secondary-foreground: var(--secondary-foreground);
471
+ --color-muted: var(--muted);
472
+ --color-muted-foreground: var(--muted-foreground);
473
+ --color-accent: var(--accent);
474
+ --color-accent-foreground: var(--accent-foreground);
475
+ --color-destructive: var(--destructive);
476
+ --color-border: var(--border);
477
+ --color-input: var(--input);
478
+ --color-ring: var(--ring);
479
+ --color-chart-1: var(--chart-1);
480
+ --color-chart-2: var(--chart-2);
481
+ --color-chart-3: var(--chart-3);
482
+ --color-chart-4: var(--chart-4);
483
+ --color-chart-5: var(--chart-5);
484
+ --color-sidebar: var(--sidebar);
485
+ --color-sidebar-foreground: var(--sidebar-foreground);
486
+ --color-sidebar-primary: var(--sidebar-primary);
487
+ --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
488
+ --color-sidebar-accent: var(--sidebar-accent);
489
+ --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
490
+ --color-sidebar-border: var(--sidebar-border);
491
+ --color-sidebar-ring: var(--sidebar-ring);
492
+ --color-surface-0: var(--surface-0);
493
+ --color-surface-1: var(--surface-1);
494
+ --shadow-surface-1: var(--shadow-1);
495
+ --color-surface-2: var(--surface-2);
496
+ --shadow-surface-2: var(--shadow-2);
497
+ --color-surface-3: var(--surface-3);
498
+ --shadow-surface-3: var(--shadow-3);
499
+ --color-surface-4: var(--surface-4);
500
+ --shadow-surface-4: var(--shadow-4);
501
+ --color-surface-5: var(--surface-5);
502
+ --shadow-surface-5: var(--shadow-5);
503
+ --color-surface-6: var(--surface-6);
504
+ --shadow-surface-6: var(--shadow-6);
505
+ --color-surface-7: var(--surface-7);
506
+ --shadow-surface-7: var(--shadow-7);
507
+ --color-surface-8: var(--surface-8);
508
+ --shadow-surface-8: var(--shadow-8);
509
+ --color-hover: var(--hover);
510
+ --color-active: var(--active);
511
+ --color-selected: var(--selected);
512
+ --color-tint: var(--tint);
513
+ --color-tint-hover: var(--tint-hover);
514
+ --color-primary-text: var(--primary-text);
515
+ --color-primary-border: var(--primary-border);
516
+ --color-primary-surface-1: var(--primary-surface-1);
517
+ --color-primary-surface-2: var(--primary-surface-2);
518
+ --color-primary-surface-3: var(--primary-surface-3);
519
+ --color-primary-surface-4: var(--primary-surface-4);
520
+ --color-primary-surface-5: var(--primary-surface-5);
521
+ --color-primary-surface-6: var(--primary-surface-6);
522
+ --color-primary-surface-7: var(--primary-surface-7);
523
+ --color-primary-surface-8: var(--primary-surface-8);
524
+ --color-secondary-text: var(--secondary-text);
525
+ --color-secondary-border: var(--secondary-border);
526
+ --color-secondary-surface-1: var(--secondary-surface-1);
527
+ --color-secondary-surface-2: var(--secondary-surface-2);
528
+ --color-secondary-surface-3: var(--secondary-surface-3);
529
+ --color-secondary-surface-4: var(--secondary-surface-4);
530
+ --color-secondary-surface-5: var(--secondary-surface-5);
531
+ --color-secondary-surface-6: var(--secondary-surface-6);
532
+ --color-secondary-surface-7: var(--secondary-surface-7);
533
+ --color-secondary-surface-8: var(--secondary-surface-8);
534
+ --color-info: var(--info);
535
+ --color-info-foreground: var(--info-foreground);
536
+ --color-info-text: var(--info-text);
537
+ --color-info-border: var(--info-border);
538
+ --color-info-surface-1: var(--info-surface-1);
539
+ --color-info-surface-2: var(--info-surface-2);
540
+ --color-info-surface-3: var(--info-surface-3);
541
+ --color-info-surface-4: var(--info-surface-4);
542
+ --color-info-surface-5: var(--info-surface-5);
543
+ --color-info-surface-6: var(--info-surface-6);
544
+ --color-info-surface-7: var(--info-surface-7);
545
+ --color-info-surface-8: var(--info-surface-8);
546
+ --color-success: var(--success);
547
+ --color-success-foreground: var(--success-foreground);
548
+ --color-success-text: var(--success-text);
549
+ --color-success-border: var(--success-border);
550
+ --color-success-surface-1: var(--success-surface-1);
551
+ --color-success-surface-2: var(--success-surface-2);
552
+ --color-success-surface-3: var(--success-surface-3);
553
+ --color-success-surface-4: var(--success-surface-4);
554
+ --color-success-surface-5: var(--success-surface-5);
555
+ --color-success-surface-6: var(--success-surface-6);
556
+ --color-success-surface-7: var(--success-surface-7);
557
+ --color-success-surface-8: var(--success-surface-8);
558
+ --color-warning: var(--warning);
559
+ --color-warning-foreground: var(--warning-foreground);
560
+ --color-warning-text: var(--warning-text);
561
+ --color-warning-border: var(--warning-border);
562
+ --color-warning-surface-1: var(--warning-surface-1);
563
+ --color-warning-surface-2: var(--warning-surface-2);
564
+ --color-warning-surface-3: var(--warning-surface-3);
565
+ --color-warning-surface-4: var(--warning-surface-4);
566
+ --color-warning-surface-5: var(--warning-surface-5);
567
+ --color-warning-surface-6: var(--warning-surface-6);
568
+ --color-warning-surface-7: var(--warning-surface-7);
569
+ --color-warning-surface-8: var(--warning-surface-8);
570
+ --color-destructive-foreground: var(--destructive-foreground);
571
+ --color-destructive-text: var(--destructive-text);
572
+ --color-destructive-border: var(--destructive-border);
573
+ --color-destructive-surface-1: var(--destructive-surface-1);
574
+ --color-destructive-surface-2: var(--destructive-surface-2);
575
+ --color-destructive-surface-3: var(--destructive-surface-3);
576
+ --color-destructive-surface-4: var(--destructive-surface-4);
577
+ --color-destructive-surface-5: var(--destructive-surface-5);
578
+ --color-destructive-surface-6: var(--destructive-surface-6);
579
+ --color-destructive-surface-7: var(--destructive-surface-7);
580
+ --color-destructive-surface-8: var(--destructive-surface-8);
581
+ --color-syntax-keyword: var(--syntax-keyword);
582
+ --color-syntax-function: var(--syntax-function);
583
+ --color-syntax-string: var(--syntax-string);
584
+ --color-syntax-constant: var(--syntax-constant);
585
+ --color-syntax-type: var(--syntax-type);
586
+ --color-syntax-tag: var(--syntax-tag);
587
+ --color-syntax-comment: var(--syntax-comment);
588
+ --color-syntax-punctuation: var(--syntax-punctuation);
589
+ --color-chart-series-1: var(--chart-series-1);
590
+ --color-chart-series-2: var(--chart-series-2);
591
+ --color-chart-series-3: var(--chart-series-3);
592
+ --color-chart-series-4: var(--chart-series-4);
593
+ --color-chart-series-5: var(--chart-series-5);
594
+ --color-chart-series-6: var(--chart-series-6);
595
+ --color-chart-series-7: var(--chart-series-7);
596
+ --color-chart-series-8: var(--chart-series-8);
597
+ --color-focus-ring: var(--focus-ring);
598
+ --color-app-shell-frame: var(--app-shell-frame);
599
+ --color-app-shell-main: var(--app-shell-main);
600
+ --color-app-shell-panel: var(--app-shell-panel);
601
+ --shadow-app-shell-card: var(--app-shell-card-shadow);
602
+ --font-sans: Inter;
603
+ --font-heading: Inter;
604
+ --font-mono: Menlo;
605
+ }
606
+
607
+ @utility corner-curve {
608
+ border-curve: var(--corner-curve);
609
+ }
610
+