@floegence/floe-webapp-core 0.35.10 → 0.35.12

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.
@@ -0,0 +1,565 @@
1
+ const r = {
2
+ "--radius": "0.375rem",
3
+ "--font-sans": "'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",
4
+ "--font-mono": "'JetBrains Mono', 'Fira Code', 'SF Mono', Menlo, Monaco, Consolas, monospace"
5
+ }, i = [
6
+ {
7
+ name: "Base Colors",
8
+ description: "Primary application surfaces and text colors.",
9
+ tokens: [
10
+ {
11
+ name: "Background",
12
+ variable: "--background",
13
+ lightValue: "hsl(36 15% 93%)",
14
+ darkValue: "hsl(222 30% 8%)",
15
+ description: "Main application background color."
16
+ },
17
+ {
18
+ name: "Foreground",
19
+ variable: "--foreground",
20
+ lightValue: "hsl(215 40% 13%)",
21
+ darkValue: "hsl(210 20% 98%)",
22
+ description: "Default foreground color for body text."
23
+ },
24
+ {
25
+ name: "Primary",
26
+ variable: "--primary",
27
+ lightValue: "hsl(215 40% 13%)",
28
+ darkValue: "hsl(210 20% 98%)",
29
+ description: "Primary interactive color used by buttons and emphasis."
30
+ },
31
+ {
32
+ name: "Primary Foreground",
33
+ variable: "--primary-foreground",
34
+ lightValue: "hsl(0 0% 98%)",
35
+ darkValue: "hsl(222 30% 10%)",
36
+ description: "Foreground color used on primary surfaces."
37
+ },
38
+ {
39
+ name: "Secondary",
40
+ variable: "--secondary",
41
+ lightValue: "hsl(36 10% 88%)",
42
+ darkValue: "hsl(220 25% 14%)",
43
+ description: "Secondary surface color for lower-emphasis blocks."
44
+ },
45
+ {
46
+ name: "Secondary Foreground",
47
+ variable: "--secondary-foreground",
48
+ lightValue: "hsl(215 30% 26%)",
49
+ darkValue: "hsl(210 20% 98%)",
50
+ description: "Foreground color used on secondary surfaces."
51
+ },
52
+ {
53
+ name: "Muted",
54
+ variable: "--muted",
55
+ lightValue: "hsl(36 10% 88%)",
56
+ darkValue: "hsl(220 25% 14%)",
57
+ description: "Muted surface color for subtle containers and fills."
58
+ },
59
+ {
60
+ name: "Muted Foreground",
61
+ variable: "--muted-foreground",
62
+ lightValue: "hsl(215 20% 46%)",
63
+ darkValue: "hsl(215 20% 60%)",
64
+ description: "Secondary text color for supporting copy."
65
+ },
66
+ {
67
+ name: "Accent",
68
+ variable: "--accent",
69
+ lightValue: "hsl(36 10% 88%)",
70
+ darkValue: "hsl(220 25% 16%)",
71
+ description: "Accent surface for hover states and light emphasis."
72
+ },
73
+ {
74
+ name: "Accent Foreground",
75
+ variable: "--accent-foreground",
76
+ lightValue: "hsl(215 40% 13%)",
77
+ darkValue: "hsl(210 20% 98%)",
78
+ description: "Foreground color used on accent surfaces."
79
+ }
80
+ ]
81
+ },
82
+ {
83
+ name: "Surface Colors",
84
+ description: "Shared UI surfaces, borders, and focus affordances.",
85
+ tokens: [
86
+ {
87
+ name: "Card",
88
+ variable: "--card",
89
+ lightValue: "hsl(36 12% 96%)",
90
+ darkValue: "hsl(222 28% 10%)",
91
+ description: "Card background surface."
92
+ },
93
+ {
94
+ name: "Card Foreground",
95
+ variable: "--card-foreground",
96
+ lightValue: "hsl(215 40% 13%)",
97
+ darkValue: "hsl(210 20% 98%)",
98
+ description: "Foreground color used on card surfaces."
99
+ },
100
+ {
101
+ name: "Popover",
102
+ variable: "--popover",
103
+ lightValue: "hsl(36 12% 96%)",
104
+ darkValue: "hsl(222 28% 10%)",
105
+ description: "Popover and floating panel background."
106
+ },
107
+ {
108
+ name: "Popover Foreground",
109
+ variable: "--popover-foreground",
110
+ lightValue: "hsl(215 40% 13%)",
111
+ darkValue: "hsl(210 20% 98%)",
112
+ description: "Foreground color used on popovers."
113
+ },
114
+ {
115
+ name: "Border",
116
+ variable: "--border",
117
+ lightValue: "hsl(36 10% 82%)",
118
+ darkValue: "hsl(220 20% 18%)",
119
+ description: "Default border color."
120
+ },
121
+ {
122
+ name: "Input",
123
+ variable: "--input",
124
+ lightValue: "hsl(36 10% 82%)",
125
+ darkValue: "hsl(220 25% 14%)",
126
+ description: "Input border color."
127
+ },
128
+ {
129
+ name: "Ring",
130
+ variable: "--ring",
131
+ lightValue: "hsl(215 40% 13%)",
132
+ darkValue: "hsl(215 25% 70%)",
133
+ description: "Focus ring color."
134
+ }
135
+ ]
136
+ },
137
+ {
138
+ name: "Status Colors",
139
+ description: "Semantic status colors for feedback and callouts.",
140
+ tokens: [
141
+ {
142
+ name: "Success",
143
+ variable: "--success",
144
+ lightValue: "oklch(0.68 0.16 150)",
145
+ darkValue: "oklch(0.72 0.19 150)",
146
+ description: "Success state color."
147
+ },
148
+ {
149
+ name: "Success Foreground",
150
+ variable: "--success-foreground",
151
+ lightValue: "hsl(0 0% 100%)",
152
+ darkValue: "hsl(222 30% 10%)",
153
+ description: "Foreground color used on success surfaces."
154
+ },
155
+ {
156
+ name: "Warning",
157
+ variable: "--warning",
158
+ lightValue: "oklch(0.78 0.14 80)",
159
+ darkValue: "oklch(0.82 0.16 80)",
160
+ description: "Warning state color."
161
+ },
162
+ {
163
+ name: "Warning Foreground",
164
+ variable: "--warning-foreground",
165
+ lightValue: "hsl(240 5% 10%)",
166
+ darkValue: "hsl(222 30% 10%)",
167
+ description: "Foreground color used on warning surfaces."
168
+ },
169
+ {
170
+ name: "Error",
171
+ variable: "--error",
172
+ lightValue: "oklch(0.65 0.2 25)",
173
+ darkValue: "oklch(0.7 0.22 25)",
174
+ description: "Error state color."
175
+ },
176
+ {
177
+ name: "Error Foreground",
178
+ variable: "--error-foreground",
179
+ lightValue: "hsl(0 0% 100%)",
180
+ darkValue: "hsl(0 0% 100%)",
181
+ description: "Foreground color used on error surfaces."
182
+ },
183
+ {
184
+ name: "Info",
185
+ variable: "--info",
186
+ lightValue: "oklch(0.65 0.13 250)",
187
+ darkValue: "oklch(0.7 0.15 250)",
188
+ description: "Informational state color."
189
+ },
190
+ {
191
+ name: "Info Foreground",
192
+ variable: "--info-foreground",
193
+ lightValue: "hsl(0 0% 100%)",
194
+ darkValue: "hsl(0 0% 100%)",
195
+ description: "Foreground color used on info surfaces."
196
+ }
197
+ ]
198
+ },
199
+ {
200
+ name: "Shell Chrome",
201
+ description: "Stable shell chrome borders that can be overridden through theme.tokens.",
202
+ tokens: [
203
+ {
204
+ name: "Chrome Border",
205
+ variable: "--chrome-border",
206
+ lightValue: "var(--border)",
207
+ darkValue: "var(--border)",
208
+ description: "Default shared shell divider color."
209
+ },
210
+ {
211
+ name: "Top Bar Border",
212
+ variable: "--top-bar-border",
213
+ lightValue: "var(--chrome-border)",
214
+ darkValue: "var(--chrome-border)",
215
+ description: "Top bar divider color."
216
+ },
217
+ {
218
+ name: "Activity Bar Border",
219
+ variable: "--activity-bar-border",
220
+ lightValue: "var(--chrome-border)",
221
+ darkValue: "var(--chrome-border)",
222
+ description: "Activity bar divider color."
223
+ },
224
+ {
225
+ name: "Bottom Bar Border",
226
+ variable: "--bottom-bar-border",
227
+ lightValue: "var(--chrome-border)",
228
+ darkValue: "var(--chrome-border)",
229
+ description: "Bottom bar divider color."
230
+ },
231
+ {
232
+ name: "Terminal Panel Border",
233
+ variable: "--terminal-panel-border",
234
+ lightValue: "var(--chrome-border)",
235
+ darkValue: "var(--chrome-border)",
236
+ description: "Terminal panel divider color."
237
+ }
238
+ ]
239
+ },
240
+ {
241
+ name: "Sidebar",
242
+ description: "Sidebar-specific surfaces and emphasis colors.",
243
+ tokens: [
244
+ {
245
+ name: "Sidebar",
246
+ variable: "--sidebar",
247
+ lightValue: "hsl(36 12% 91%)",
248
+ darkValue: "hsl(222 28% 10%)",
249
+ description: "Sidebar background."
250
+ },
251
+ {
252
+ name: "Sidebar Foreground",
253
+ variable: "--sidebar-foreground",
254
+ lightValue: "hsl(215 40% 13%)",
255
+ darkValue: "hsl(210 20% 98%)",
256
+ description: "Sidebar foreground color."
257
+ },
258
+ {
259
+ name: "Sidebar Primary",
260
+ variable: "--sidebar-primary",
261
+ lightValue: "hsl(215 40% 13%)",
262
+ darkValue: "hsl(217 80% 55%)",
263
+ description: "Primary emphasis color inside the sidebar."
264
+ },
265
+ {
266
+ name: "Sidebar Primary Foreground",
267
+ variable: "--sidebar-primary-foreground",
268
+ lightValue: "hsl(0 0% 98%)",
269
+ darkValue: "hsl(0 0% 100%)",
270
+ description: "Foreground color used on sidebar primary surfaces."
271
+ },
272
+ {
273
+ name: "Sidebar Accent",
274
+ variable: "--sidebar-accent",
275
+ lightValue: "hsl(36 12% 86%)",
276
+ darkValue: "hsl(220 25% 16%)",
277
+ description: "Accent surface used for sidebar hover and active states."
278
+ },
279
+ {
280
+ name: "Sidebar Accent Foreground",
281
+ variable: "--sidebar-accent-foreground",
282
+ lightValue: "hsl(215 40% 13%)",
283
+ darkValue: "hsl(210 20% 98%)",
284
+ description: "Foreground color used on sidebar accent surfaces."
285
+ },
286
+ {
287
+ name: "Sidebar Border",
288
+ variable: "--sidebar-border",
289
+ lightValue: "hsl(36 8% 84%)",
290
+ darkValue: "hsl(220 20% 18%)",
291
+ description: "Sidebar inner border color."
292
+ },
293
+ {
294
+ name: "Sidebar Ring",
295
+ variable: "--sidebar-ring",
296
+ lightValue: "hsl(215 40% 13%)",
297
+ darkValue: "hsl(217 80% 55%)",
298
+ description: "Focus ring color for sidebar elements."
299
+ }
300
+ ]
301
+ },
302
+ {
303
+ name: "Activity Bar",
304
+ description: "Dedicated colors for the compact activity bar.",
305
+ tokens: [
306
+ {
307
+ name: "Activity Bar",
308
+ variable: "--activity-bar",
309
+ lightValue: "hsl(36 10% 90%)",
310
+ darkValue: "hsl(222 30% 9%)",
311
+ description: "Activity bar background."
312
+ },
313
+ {
314
+ name: "Activity Bar Foreground",
315
+ variable: "--activity-bar-foreground",
316
+ lightValue: "hsl(215 20% 46%)",
317
+ darkValue: "hsl(215 20% 55%)",
318
+ description: "Default activity bar icon color."
319
+ },
320
+ {
321
+ name: "Activity Bar Foreground Active",
322
+ variable: "--activity-bar-foreground-active",
323
+ lightValue: "hsl(215 40% 13%)",
324
+ darkValue: "hsl(210 20% 98%)",
325
+ description: "Active activity bar icon color."
326
+ },
327
+ {
328
+ name: "Activity Bar Badge",
329
+ variable: "--activity-bar-badge",
330
+ lightValue: "hsl(215 40% 13%)",
331
+ darkValue: "hsl(217 80% 55%)",
332
+ description: "Activity bar badge background."
333
+ },
334
+ {
335
+ name: "Activity Bar Badge Foreground",
336
+ variable: "--activity-bar-badge-foreground",
337
+ lightValue: "hsl(0 0% 98%)",
338
+ darkValue: "hsl(0 0% 100%)",
339
+ description: "Activity bar badge foreground."
340
+ }
341
+ ]
342
+ },
343
+ {
344
+ name: "Terminal",
345
+ description: "Terminal-specific background and text colors.",
346
+ tokens: [
347
+ {
348
+ name: "Terminal Background",
349
+ variable: "--terminal-background",
350
+ lightValue: "hsl(215 40% 13%)",
351
+ darkValue: "hsl(222 32% 7%)",
352
+ description: "Integrated terminal background."
353
+ },
354
+ {
355
+ name: "Terminal Foreground",
356
+ variable: "--terminal-foreground",
357
+ lightValue: "hsl(0 0% 92%)",
358
+ darkValue: "hsl(210 15% 92%)",
359
+ description: "Integrated terminal foreground color."
360
+ }
361
+ ]
362
+ },
363
+ {
364
+ name: "Charts",
365
+ description: "Default chart palette used by data visualization components.",
366
+ tokens: [
367
+ {
368
+ name: "Chart 1",
369
+ variable: "--chart-1",
370
+ lightValue: "hsl(215 40% 13%)",
371
+ darkValue: "hsl(210 20% 98%)",
372
+ description: "Primary chart series color."
373
+ },
374
+ {
375
+ name: "Chart 2",
376
+ variable: "--chart-2",
377
+ lightValue: "hsl(36 15% 60%)",
378
+ darkValue: "hsl(215 20% 60%)",
379
+ description: "Secondary chart series color."
380
+ },
381
+ {
382
+ name: "Chart 3",
383
+ variable: "--chart-3",
384
+ lightValue: "oklch(0.65 0.13 250)",
385
+ darkValue: "oklch(0.7 0.15 250)",
386
+ description: "Tertiary chart series color."
387
+ },
388
+ {
389
+ name: "Chart 4",
390
+ variable: "--chart-4",
391
+ lightValue: "oklch(0.68 0.16 150)",
392
+ darkValue: "oklch(0.72 0.19 150)",
393
+ description: "Quaternary chart series color."
394
+ },
395
+ {
396
+ name: "Chart 5",
397
+ variable: "--chart-5",
398
+ lightValue: "oklch(0.78 0.14 80)",
399
+ darkValue: "oklch(0.82 0.16 80)",
400
+ description: "Quinary chart series color."
401
+ }
402
+ ]
403
+ },
404
+ {
405
+ name: "Selection",
406
+ description: "Text selection colors for general content, primary surfaces, and code.",
407
+ tokens: [
408
+ {
409
+ name: "Selection Background",
410
+ variable: "--selection-bg",
411
+ lightValue: "hsl(215 80% 55%)",
412
+ darkValue: "hsl(215 70% 50%)",
413
+ description: "Default text selection background."
414
+ },
415
+ {
416
+ name: "Selection Foreground",
417
+ variable: "--selection-fg",
418
+ lightValue: "hsl(0 0% 100%)",
419
+ darkValue: "hsl(0 0% 100%)",
420
+ description: "Default text selection foreground."
421
+ },
422
+ {
423
+ name: "Selection On Primary Background",
424
+ variable: "--selection-on-primary-bg",
425
+ lightValue: "hsl(45 100% 55%)",
426
+ darkValue: "hsl(215 80% 35%)",
427
+ description: "Selection background for text rendered on primary surfaces."
428
+ },
429
+ {
430
+ name: "Selection On Primary Foreground",
431
+ variable: "--selection-on-primary-fg",
432
+ lightValue: "hsl(0 0% 0%)",
433
+ darkValue: "hsl(0 0% 100%)",
434
+ description: "Selection foreground for text rendered on primary surfaces."
435
+ },
436
+ {
437
+ name: "Code Selection Background",
438
+ variable: "--selection-code-bg",
439
+ lightValue: "hsl(212 100% 67%)",
440
+ darkValue: "hsl(212 100% 67%)",
441
+ description: "Selection background for code surfaces."
442
+ },
443
+ {
444
+ name: "Code Selection Foreground",
445
+ variable: "--selection-code-fg",
446
+ lightValue: "hsl(220 20% 8%)",
447
+ darkValue: "hsl(220 20% 8%)",
448
+ description: "Selection foreground for code surfaces."
449
+ }
450
+ ]
451
+ }
452
+ ], l = [
453
+ { name: "Text XS", size: "11px", lineHeight: "1.5", className: "text-[11px]", description: "Smallest text, captions and labels." },
454
+ { name: "Text SM", size: "12px", lineHeight: "1.5", className: "text-xs", description: "Small text, secondary content." },
455
+ { name: "Text Base", size: "14px", lineHeight: "1.5", className: "text-sm", description: "Default body text." },
456
+ { name: "Text LG", size: "16px", lineHeight: "1.5", className: "text-base", description: "Larger body text and card titles." },
457
+ { name: "Text XL", size: "18px", lineHeight: "1.4", className: "text-lg", description: "Section titles." },
458
+ { name: "Text 2XL", size: "20px", lineHeight: "1.3", className: "text-xl", description: "Page titles." }
459
+ ], n = [
460
+ {
461
+ name: "Sans",
462
+ variable: "--font-sans",
463
+ value: r["--font-sans"],
464
+ description: "Default UI font family for application chrome and content."
465
+ },
466
+ {
467
+ name: "Mono",
468
+ variable: "--font-mono",
469
+ value: r["--font-mono"],
470
+ description: "Monospace font family for code, terminal, and diagnostics."
471
+ }
472
+ ], s = [
473
+ { name: "0.5", value: "0.125rem", pixels: "2px", className: "gap-0.5, p-0.5" },
474
+ { name: "1", value: "0.25rem", pixels: "4px", className: "gap-1, p-1" },
475
+ { name: "1.5", value: "0.375rem", pixels: "6px", className: "gap-1.5, p-1.5" },
476
+ { name: "2", value: "0.5rem", pixels: "8px", className: "gap-2, p-2" },
477
+ { name: "2.5", value: "0.625rem", pixels: "10px", className: "gap-2.5, p-2.5" },
478
+ { name: "3", value: "0.75rem", pixels: "12px", className: "gap-3, p-3" },
479
+ { name: "4", value: "1rem", pixels: "16px", className: "gap-4, p-4" },
480
+ { name: "5", value: "1.25rem", pixels: "20px", className: "gap-5, p-5" },
481
+ { name: "6", value: "1.5rem", pixels: "24px", className: "gap-6, p-6" },
482
+ { name: "8", value: "2rem", pixels: "32px", className: "gap-8, p-8" }
483
+ ], t = [
484
+ { name: "None", value: "0", variable: "-", className: "rounded-none" },
485
+ { name: "SM", value: "0.125rem", variable: "-", className: "rounded-sm" },
486
+ { name: "Default", value: r["--radius"], variable: "--radius", className: "rounded" },
487
+ { name: "MD", value: "0.5rem", variable: "-", className: "rounded-md" },
488
+ { name: "LG", value: "0.75rem", variable: "-", className: "rounded-lg" },
489
+ { name: "XL", value: "1rem", variable: "-", className: "rounded-xl" },
490
+ { name: "2XL", value: "1.5rem", variable: "-", className: "rounded-2xl" },
491
+ { name: "Full", value: "9999px", variable: "-", className: "rounded-full" }
492
+ ], d = [
493
+ {
494
+ name: "Fade In",
495
+ keyframes: "animate-in",
496
+ usage: "animate-in fade-in",
497
+ description: "Smooth opacity transition for appearing elements."
498
+ },
499
+ {
500
+ name: "Zoom In",
501
+ keyframes: "animate-in",
502
+ usage: "animate-in zoom-in-95",
503
+ description: "Scale up from 95% with opacity for dialogs and popovers."
504
+ },
505
+ {
506
+ name: "Slide In",
507
+ keyframes: "animate-in",
508
+ usage: "animate-in slide-in-from-top-2",
509
+ description: "Slide down motion for menus and lightweight surfaces."
510
+ },
511
+ {
512
+ name: "Gradient Shift",
513
+ keyframes: "gradient-shift",
514
+ usage: "AnimatedBorderCard",
515
+ description: "Rotating gradient animation used by rich card treatments."
516
+ },
517
+ {
518
+ name: "Shimmer",
519
+ keyframes: "shimmer",
520
+ usage: "Card shimmer / skeleton-like highlights",
521
+ description: "Linear sweeping highlight animation."
522
+ },
523
+ {
524
+ name: "Glow Pulse",
525
+ keyframes: "glow-pulse",
526
+ usage: "Neon and emphasis effects",
527
+ description: "Pulsing glow animation for elevated emphasis."
528
+ }
529
+ ], c = i.reduce(
530
+ (a, e) => (a.push(...e.tokens), a),
531
+ []
532
+ );
533
+ function o(a) {
534
+ return Object.fromEntries(
535
+ c.map((e) => [e.variable, a === "light" ? e.lightValue : e.darkValue])
536
+ );
537
+ }
538
+ const u = {
539
+ light: o("light"),
540
+ dark: o("dark")
541
+ };
542
+ function m(a, e) {
543
+ return u[e][a];
544
+ }
545
+ const h = {
546
+ colors: i,
547
+ typography: l,
548
+ fonts: n,
549
+ spacing: s,
550
+ radius: t,
551
+ motion: d,
552
+ shared: r
553
+ };
554
+ export {
555
+ i as floeColorTokenCategories,
556
+ h as floeDesignTokens,
557
+ n as floeFontFamilyTokens,
558
+ d as floeMotionTokens,
559
+ t as floeRadiusTokens,
560
+ r as floeSharedCssVariables,
561
+ s as floeSpacingTokens,
562
+ u as floeThemeColorVariables,
563
+ l as floeTypographyTokens,
564
+ m as getFloeColorTokenValue
565
+ };