@frontlit/page-builder 0.1.0-alpha.2 → 0.1.0-alpha.4

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 (98) hide show
  1. package/README.md +32 -0
  2. package/dist/blocks/index.d.ts +33 -21
  3. package/dist/blocks/index.js +3 -3
  4. package/dist/builder/index.d.ts +7 -8
  5. package/dist/builder/index.js +6 -5
  6. package/dist/{button-Bzt1GDO-.d.ts → button-OLKN3wPf.d.ts} +2 -2
  7. package/dist/{chunk-H4P5MFJI.js → chunk-36QHCIPM.js} +205 -251
  8. package/dist/chunk-36QHCIPM.js.map +1 -0
  9. package/dist/chunk-BBI7UHOA.js +56 -0
  10. package/dist/chunk-BBI7UHOA.js.map +1 -0
  11. package/dist/{chunk-KQKSLI3L.js → chunk-GIKTOAQS.js} +335 -122
  12. package/dist/chunk-GIKTOAQS.js.map +1 -0
  13. package/dist/chunk-HWOVSHIW.js +4 -0
  14. package/dist/{chunk-RUYOL7JZ.js.map → chunk-HWOVSHIW.js.map} +1 -1
  15. package/dist/{chunk-HDINUNI2.js → chunk-IU4KATI2.js} +69 -96
  16. package/dist/chunk-IU4KATI2.js.map +1 -0
  17. package/dist/{chunk-SGNRWWG3.js → chunk-J7Z4UW45.js} +530 -135
  18. package/dist/chunk-J7Z4UW45.js.map +1 -0
  19. package/dist/{chunk-UO7XGBGM.js → chunk-K4WCLHMS.js} +1182 -1033
  20. package/dist/chunk-K4WCLHMS.js.map +1 -0
  21. package/dist/components/index.d.ts +33 -8
  22. package/dist/components/index.js +42 -2
  23. package/dist/components/index.js.map +1 -1
  24. package/dist/data-slots.d.ts +3 -3
  25. package/dist/fonts/archivo/archivo-latin-variable.woff2 +0 -0
  26. package/dist/fonts/hanken-grotesk/hanken-grotesk-latin-variable.woff2 +0 -0
  27. package/dist/fonts/jetbrains-mono/jetbrains-mono-latin-variable.woff2 +0 -0
  28. package/dist/fonts/spline-sans-mono/spline-sans-mono-latin-variable.woff2 +0 -0
  29. package/dist/heading-DQCxQt38.d.ts +20 -0
  30. package/dist/image-Bk8kPXwP.d.ts +52 -0
  31. package/dist/index.d.ts +17 -10
  32. package/dist/index.js +7 -6
  33. package/dist/models/index.d.ts +5 -5
  34. package/dist/models/index.js +1 -1
  35. package/dist/{page-W3hQga4w.d.ts → page-B5Gmm-Ys.d.ts} +1 -1
  36. package/dist/primitives/index.d.ts +44 -9
  37. package/dist/primitives/index.js +1 -1
  38. package/dist/renderer/index.d.ts +12 -8
  39. package/dist/renderer/index.js +5 -4
  40. package/dist/{section-background-MsdE40Rk.d.ts → section-background-6V_LCi5e.d.ts} +1 -1
  41. package/dist/server/index.d.ts +103 -0
  42. package/dist/server/index.js +2649 -0
  43. package/dist/server/index.js.map +1 -0
  44. package/dist/server/islands/code-snippet.d.ts +17 -0
  45. package/dist/server/islands/code-snippet.js +72 -0
  46. package/dist/server/islands/code-snippet.js.map +1 -0
  47. package/dist/server/islands/email-form.d.ts +50 -0
  48. package/dist/server/islands/email-form.js +406 -0
  49. package/dist/server/islands/email-form.js.map +1 -0
  50. package/dist/server/islands/header-mobile-menu.d.ts +22 -0
  51. package/dist/server/islands/header-mobile-menu.js +422 -0
  52. package/dist/server/islands/header-mobile-menu.js.map +1 -0
  53. package/dist/server/islands/inline-embed.d.ts +28 -0
  54. package/dist/server/islands/inline-embed.js +84 -0
  55. package/dist/server/islands/inline-embed.js.map +1 -0
  56. package/dist/server/islands/marquee-track.d.ts +18 -0
  57. package/dist/server/islands/marquee-track.js +67 -0
  58. package/dist/server/islands/marquee-track.js.map +1 -0
  59. package/dist/server/islands/nav-link.d.ts +37 -0
  60. package/dist/server/islands/nav-link.js +67 -0
  61. package/dist/server/islands/nav-link.js.map +1 -0
  62. package/dist/server/islands/support-form.d.ts +17 -0
  63. package/dist/server/islands/support-form.js +469 -0
  64. package/dist/server/islands/support-form.js.map +1 -0
  65. package/dist/server/islands/theme-mode-switcher.d.ts +38 -0
  66. package/dist/server/islands/theme-mode-switcher.js +169 -0
  67. package/dist/server/islands/theme-mode-switcher.js.map +1 -0
  68. package/dist/server/islands/video-with-preview.d.ts +13 -0
  69. package/dist/server/islands/video-with-preview.js +269 -0
  70. package/dist/server/islands/video-with-preview.js.map +1 -0
  71. package/dist/server/primitives.d.ts +200 -0
  72. package/dist/server/primitives.js +888 -0
  73. package/dist/server/primitives.js.map +1 -0
  74. package/dist/server/schema.d.ts +11308 -0
  75. package/dist/server/schema.js +6179 -0
  76. package/dist/server/schema.js.map +1 -0
  77. package/dist/server/theme-CF3fIKvw.d.ts +9 -0
  78. package/dist/server/theme-style-5_AGy-4V.d.ts +183 -0
  79. package/dist/server/theme-style-BPaMwk88.d.ts +183 -0
  80. package/dist/server/theme.d.ts +28 -0
  81. package/dist/server/theme.js +1671 -0
  82. package/dist/server/theme.js.map +1 -0
  83. package/dist/server/widget-YH9BrOwY.d.ts +77 -0
  84. package/dist/styles.css +121 -15
  85. package/dist/{theme-style-Cbl7NM-T.d.ts → theme-style-BVd5tOsc.d.ts} +20 -0
  86. package/dist/theme.css +12 -0
  87. package/dist/{widget-B_RoG6se.d.ts → widget-CpE2HdgU.d.ts} +17 -14
  88. package/package.json +60 -12
  89. package/schema/page.v1.json +3855 -0
  90. package/schema/site.v1.json +3811 -0
  91. package/dist/alignment-dZDzN96G.d.ts +0 -5
  92. package/dist/chunk-H4P5MFJI.js.map +0 -1
  93. package/dist/chunk-HDINUNI2.js.map +0 -1
  94. package/dist/chunk-KQKSLI3L.js.map +0 -1
  95. package/dist/chunk-RUYOL7JZ.js +0 -4
  96. package/dist/chunk-SGNRWWG3.js.map +0 -1
  97. package/dist/chunk-UO7XGBGM.js.map +0 -1
  98. package/dist/image-DAWVx1zQ.d.ts +0 -31
@@ -0,0 +1,1671 @@
1
+ // src/primitives/themes/classic.ts
2
+ var themeStyles = {
3
+ colors: {
4
+ light: {
5
+ background: "#f7f7f5",
6
+ foreground: "#18181b",
7
+ card: "#ffffff",
8
+ cardForeground: "#18181b",
9
+ popover: "#ffffff",
10
+ popoverForeground: "#18181b",
11
+ primary: "#18181b",
12
+ primaryForeground: "#fafafa",
13
+ secondary: "#eeeee8",
14
+ secondaryForeground: "#18181b",
15
+ muted: "#f0efe9",
16
+ mutedForeground: "#52525b",
17
+ accent: "#eeeee8",
18
+ accentForeground: "#18181b",
19
+ destructive: "#e11d48",
20
+ border: "#e4e4de",
21
+ input: "#e4e4de",
22
+ ring: "#18181b",
23
+ chart1: "#18181b",
24
+ chart2: "#71717a",
25
+ chart3: "#a1a1aa",
26
+ chart4: "#d4d4d8",
27
+ chart5: "#e4e4e7",
28
+ sidebar: "#f7f7f5",
29
+ sidebarForeground: "#18181b",
30
+ sidebarPrimary: "#18181b",
31
+ sidebarPrimaryForeground: "#fafafa",
32
+ sidebarAccent: "#eeeee8",
33
+ sidebarAccentForeground: "#18181b",
34
+ sidebarBorder: "#e4e4de",
35
+ sidebarRing: "#18181b",
36
+ shadow2xs: "0 1px 2px 0 rgb(24 24 27 / 0.04)",
37
+ shadowXs: "0 1px 2px 0 rgb(24 24 27 / 0.05)",
38
+ shadowSm: "0 1px 2px 0 rgb(24 24 27 / 0.05), 0 1px 3px -1px rgb(24 24 27 / 0.08)",
39
+ shadowMd: "0 2px 4px -1px rgb(24 24 27 / 0.06), 0 4px 8px -2px rgb(24 24 27 / 0.08)",
40
+ shadowLg: "0 8px 16px -4px rgb(24 24 27 / 0.08), 0 4px 6px -2px rgb(24 24 27 / 0.04)",
41
+ shadowXl: "0 16px 32px -8px rgb(24 24 27 / 0.12)",
42
+ shadow2xl: "0 24px 48px -12px rgb(24 24 27 / 0.18)"
43
+ },
44
+ dark: {
45
+ background: "#09090b",
46
+ foreground: "#fafafa",
47
+ card: "#141416",
48
+ cardForeground: "#fafafa",
49
+ popover: "#18181b",
50
+ popoverForeground: "#fafafa",
51
+ primary: "#fafafa",
52
+ primaryForeground: "#09090b",
53
+ secondary: "#27272a",
54
+ secondaryForeground: "#fafafa",
55
+ muted: "#1c1c1f",
56
+ mutedForeground: "#a1a1aa",
57
+ accent: "#27272a",
58
+ accentForeground: "#fafafa",
59
+ destructive: "#fb7185",
60
+ border: "#27272a",
61
+ input: "#27272a",
62
+ ring: "#d4d4d8",
63
+ chart1: "#fafafa",
64
+ chart2: "#a1a1aa",
65
+ chart3: "#71717a",
66
+ chart4: "#52525b",
67
+ chart5: "#3f3f46",
68
+ sidebar: "#141416",
69
+ sidebarForeground: "#fafafa",
70
+ sidebarPrimary: "#fafafa",
71
+ sidebarPrimaryForeground: "#09090b",
72
+ sidebarAccent: "#27272a",
73
+ sidebarAccentForeground: "#fafafa",
74
+ sidebarBorder: "#27272a",
75
+ sidebarRing: "#d4d4d8",
76
+ shadow2xs: "0 1px 2px 0 rgb(0 0 0 / 0.24)",
77
+ shadowXs: "0 1px 2px 0 rgb(0 0 0 / 0.28)",
78
+ shadowSm: "0 1px 2px 0 rgb(0 0 0 / 0.32), 0 1px 3px -1px rgb(0 0 0 / 0.4)",
79
+ shadowMd: "0 4px 8px -2px rgb(0 0 0 / 0.4), 0 2px 4px -1px rgb(0 0 0 / 0.28)",
80
+ shadowLg: "0 12px 24px -6px rgb(0 0 0 / 0.5)",
81
+ shadowXl: "0 20px 40px -8px rgb(0 0 0 / 0.55)",
82
+ shadow2xl: "0 32px 64px -12px rgb(0 0 0 / 0.65)"
83
+ }
84
+ },
85
+ typography: {
86
+ preheader: {
87
+ fontFamily: "font-inter",
88
+ fontSize: "text-xs",
89
+ fontWeight: "font-medium",
90
+ lineHeight: "leading-normal",
91
+ letterSpacing: "tracking-widest",
92
+ textTransform: "uppercase"
93
+ },
94
+ display: {
95
+ fontFamily: "font-inter",
96
+ fontSize: "text-6xl",
97
+ fontWeight: "font-semibold",
98
+ lineHeight: "leading-tight",
99
+ letterSpacing: "tracking-tighter",
100
+ fluid: { min: 34, max: 56 }
101
+ },
102
+ header1: {
103
+ fontFamily: "font-inter",
104
+ fontSize: "text-5xl",
105
+ fontWeight: "font-semibold",
106
+ lineHeight: "leading-tight",
107
+ letterSpacing: "tracking-tighter",
108
+ fluid: { min: 28, max: 48 }
109
+ },
110
+ header2: {
111
+ fontFamily: "font-inter",
112
+ fontSize: "text-4xl",
113
+ fontWeight: "font-semibold",
114
+ lineHeight: "leading-tight",
115
+ letterSpacing: "tracking-tight",
116
+ fluid: { min: 24, max: 36 }
117
+ },
118
+ header3: {
119
+ fontFamily: "font-inter",
120
+ fontSize: "text-2xl",
121
+ fontWeight: "font-semibold",
122
+ lineHeight: "leading-snug",
123
+ letterSpacing: "tracking-tight"
124
+ },
125
+ header4: {
126
+ fontFamily: "font-inter",
127
+ fontSize: "text-xl",
128
+ fontWeight: "font-medium",
129
+ lineHeight: "leading-snug",
130
+ letterSpacing: "tracking-tight"
131
+ },
132
+ subheader1: {
133
+ fontFamily: "font-inter",
134
+ fontSize: "text-xl",
135
+ fontWeight: "font-normal",
136
+ lineHeight: "leading-relaxed",
137
+ letterSpacing: "tracking-normal"
138
+ },
139
+ subheader2: {
140
+ fontFamily: "font-inter",
141
+ fontSize: "text-lg",
142
+ fontWeight: "font-normal",
143
+ lineHeight: "leading-relaxed",
144
+ letterSpacing: "tracking-normal"
145
+ },
146
+ text1: {
147
+ fontFamily: "font-inter",
148
+ fontSize: "text-base",
149
+ fontWeight: "font-normal",
150
+ lineHeight: "leading-relaxed",
151
+ letterSpacing: "tracking-normal"
152
+ },
153
+ text2: {
154
+ fontFamily: "font-inter",
155
+ fontSize: "text-sm",
156
+ fontWeight: "font-normal",
157
+ lineHeight: "leading-relaxed",
158
+ letterSpacing: "tracking-normal"
159
+ },
160
+ caption: {
161
+ fontFamily: "font-inter",
162
+ fontSize: "text-xs",
163
+ fontWeight: "font-medium",
164
+ lineHeight: "leading-relaxed",
165
+ letterSpacing: "tracking-wide"
166
+ },
167
+ link: {
168
+ fontFamily: "font-inter",
169
+ fontSize: "text-base",
170
+ fontWeight: "font-medium",
171
+ lineHeight: "leading-relaxed",
172
+ letterSpacing: "tracking-normal",
173
+ textDecoration: "no-underline"
174
+ },
175
+ button: {
176
+ fontFamily: "font-inter",
177
+ fontSize: "text-sm",
178
+ fontWeight: "font-medium",
179
+ lineHeight: "leading-normal",
180
+ letterSpacing: "tracking-wide"
181
+ },
182
+ input: {
183
+ fontFamily: "font-inter",
184
+ fontSize: "text-sm",
185
+ fontWeight: "font-normal",
186
+ lineHeight: "leading-normal",
187
+ letterSpacing: "tracking-normal"
188
+ }
189
+ },
190
+ highlight: "marker",
191
+ interactives: {
192
+ button: {
193
+ padding: {
194
+ x: "px-5",
195
+ y: "py-3"
196
+ },
197
+ border: {
198
+ width: "border-0",
199
+ radius: "rounded-xl"
200
+ },
201
+ shadow: "shadow-xs",
202
+ disabled: {
203
+ opacity: "opacity-50",
204
+ cursor: "cursor-not-allowed"
205
+ },
206
+ custom: "transition-colors duration-200"
207
+ },
208
+ menu: {
209
+ padding: { x: "px-1", y: "py-1" },
210
+ border: { width: "border", radius: "rounded-xl", style: "border-solid" },
211
+ shadow: "shadow-xs",
212
+ item: {
213
+ padding: { x: "px-3", y: "py-2" },
214
+ border: { radius: "rounded-lg" }
215
+ }
216
+ },
217
+ dialog: {
218
+ padding: { x: "px-6", y: "py-6" },
219
+ border: { width: "border-0", radius: "rounded-xl" },
220
+ shadow: "shadow-lg"
221
+ },
222
+ popover: {
223
+ padding: { x: "px-4", y: "py-4" },
224
+ border: { width: "border-0", radius: "rounded-xl" },
225
+ shadow: "shadow-md"
226
+ },
227
+ tooltip: {
228
+ padding: { x: "px-2", y: "py-1" },
229
+ border: { width: "border-0", radius: "rounded-sm" },
230
+ shadow: "shadow-sm"
231
+ },
232
+ link: {
233
+ custom: "underline-offset-4 hover:underline",
234
+ disabled: {
235
+ color: "gray-400",
236
+ cursor: "cursor-not-allowed"
237
+ }
238
+ },
239
+ card: {
240
+ padding: {
241
+ x: "px-6",
242
+ y: "py-6"
243
+ },
244
+ border: {
245
+ width: "border",
246
+ radius: "rounded-2xl",
247
+ style: "border-solid"
248
+ },
249
+ shadow: "shadow-xs",
250
+ custom: "transition-shadow duration-200 hover:shadow-md"
251
+ },
252
+ input: {
253
+ borderRadius: "rounded-xl",
254
+ padding: {
255
+ x: "px-4",
256
+ y: "py-3"
257
+ },
258
+ border: {
259
+ width: "border",
260
+ style: "border-solid",
261
+ radius: "rounded-xl"
262
+ },
263
+ shadow: "shadow-none",
264
+ custom: "transition-shadow duration-150 focus-visible:shadow-sm",
265
+ disabled: {
266
+ opacity: "opacity-50",
267
+ cursor: "cursor-not-allowed"
268
+ }
269
+ }
270
+ },
271
+ structure: {
272
+ page: {
273
+ width: "max-w-6xl"
274
+ },
275
+ section: {
276
+ padding: {
277
+ x: "px-6",
278
+ y: "py-20"
279
+ }
280
+ }
281
+ }
282
+ };
283
+ var classic = {
284
+ id: "classic",
285
+ name: "Classic",
286
+ theme: themeStyles
287
+ };
288
+
289
+ // src/primitives/themes/editorial.ts
290
+ var themeStyles2 = {
291
+ colors: {
292
+ light: {
293
+ background: "#f6f1e8",
294
+ foreground: "#1a1612",
295
+ card: "#fffaf2",
296
+ cardForeground: "#1a1612",
297
+ popover: "#fffaf2",
298
+ popoverForeground: "#1a1612",
299
+ primary: "#1e3a8a",
300
+ primaryForeground: "#fffaf2",
301
+ secondary: "#c2410c",
302
+ secondaryForeground: "#fffaf2",
303
+ muted: "#ece4d6",
304
+ mutedForeground: "#5c5348",
305
+ accent: "#1d4ed8",
306
+ accentForeground: "#fffaf2",
307
+ border: "#e0d5c4",
308
+ destructive: "#b91c1c",
309
+ input: "#e0d5c4",
310
+ ring: "#1e3a8a",
311
+ chart1: "#1e3a8a",
312
+ chart2: "#c2410c",
313
+ chart3: "#1d4ed8",
314
+ chart4: "#b91c1c",
315
+ chart5: "#78716c",
316
+ sidebar: "#fffaf2",
317
+ sidebarForeground: "#1a1612",
318
+ sidebarPrimary: "#1e3a8a",
319
+ sidebarPrimaryForeground: "#fffaf2",
320
+ sidebarAccent: "#ece4d6",
321
+ sidebarAccentForeground: "#1a1612",
322
+ sidebarBorder: "#e0d5c4",
323
+ sidebarRing: "#1e3a8a",
324
+ shadow2xs: "0 1px 2px 0 rgb(26 22 18 / 0.05)",
325
+ shadowXs: "0 1px 2px 0 rgb(26 22 18 / 0.06)",
326
+ shadowSm: "0 1px 2px 0 rgb(26 22 18 / 0.06), 0 2px 6px -2px rgb(26 22 18 / 0.1)",
327
+ shadowMd: "0 8px 20px -6px rgb(26 22 18 / 0.12)",
328
+ shadowLg: "0 16px 32px -10px rgb(26 22 18 / 0.14)",
329
+ shadowXl: "0 24px 48px -12px rgb(26 22 18 / 0.16)",
330
+ shadow2xl: "0 32px 64px -16px rgb(26 22 18 / 0.2)"
331
+ },
332
+ dark: {
333
+ background: "#100e0c",
334
+ foreground: "#f6f1e8",
335
+ card: "#1b1713",
336
+ cardForeground: "#f6f1e8",
337
+ popover: "#1b1713",
338
+ popoverForeground: "#f6f1e8",
339
+ primary: "#93c5fd",
340
+ primaryForeground: "#100e0c",
341
+ secondary: "#fb923c",
342
+ secondaryForeground: "#100e0c",
343
+ muted: "#241f19",
344
+ mutedForeground: "#c4b8a5",
345
+ accent: "#60a5fa",
346
+ accentForeground: "#100e0c",
347
+ border: "#3a3228",
348
+ destructive: "#f87171",
349
+ input: "#3a3228",
350
+ ring: "#93c5fd",
351
+ chart1: "#93c5fd",
352
+ chart2: "#fb923c",
353
+ chart3: "#60a5fa",
354
+ chart4: "#f87171",
355
+ chart5: "#a8a29e",
356
+ sidebar: "#1b1713",
357
+ sidebarForeground: "#f6f1e8",
358
+ sidebarPrimary: "#93c5fd",
359
+ sidebarPrimaryForeground: "#100e0c",
360
+ sidebarAccent: "#241f19",
361
+ sidebarAccentForeground: "#f6f1e8",
362
+ sidebarBorder: "#3a3228",
363
+ sidebarRing: "#93c5fd",
364
+ shadow2xs: "0 1px 2px 0 rgb(0 0 0 / 0.3)",
365
+ shadowXs: "0 1px 2px 0 rgb(0 0 0 / 0.35)",
366
+ shadowSm: "0 2px 6px 0 rgb(0 0 0 / 0.4)",
367
+ shadowMd: "0 8px 20px -6px rgb(0 0 0 / 0.5)",
368
+ shadowLg: "0 16px 32px -10px rgb(0 0 0 / 0.55)",
369
+ shadowXl: "0 24px 48px -12px rgb(0 0 0 / 0.6)",
370
+ shadow2xl: "0 32px 64px -16px rgb(0 0 0 / 0.7)"
371
+ }
372
+ },
373
+ typography: {
374
+ preheader: {
375
+ fontFamily: "font-work-sans",
376
+ fontSize: "text-xs",
377
+ fontWeight: "font-medium",
378
+ lineHeight: "leading-relaxed",
379
+ letterSpacing: "tracking-widest",
380
+ textTransform: "uppercase"
381
+ },
382
+ display: {
383
+ fontFamily: "font-playfair-display",
384
+ fontSize: "text-7xl",
385
+ fontWeight: "font-medium",
386
+ lineHeight: "leading-tight",
387
+ letterSpacing: "tracking-tighter",
388
+ fluid: { min: 34, max: 60 }
389
+ },
390
+ header1: {
391
+ fontFamily: "font-playfair-display",
392
+ fontSize: "text-6xl",
393
+ fontWeight: "font-medium",
394
+ lineHeight: "leading-tight",
395
+ letterSpacing: "tracking-tighter",
396
+ fluid: { min: 30, max: 52 }
397
+ },
398
+ header2: {
399
+ fontFamily: "font-playfair-display",
400
+ fontSize: "text-4xl",
401
+ fontWeight: "font-medium",
402
+ lineHeight: "leading-tight",
403
+ letterSpacing: "tracking-tighter",
404
+ fluid: { min: 24, max: 36 }
405
+ },
406
+ header3: {
407
+ fontFamily: "font-source-serif-4",
408
+ fontSize: "text-3xl",
409
+ fontWeight: "font-medium",
410
+ lineHeight: "leading-snug",
411
+ letterSpacing: "tracking-tight"
412
+ },
413
+ header4: {
414
+ fontFamily: "font-source-serif-4",
415
+ fontSize: "text-2xl",
416
+ fontWeight: "font-medium",
417
+ lineHeight: "leading-snug",
418
+ letterSpacing: "tracking-tight"
419
+ },
420
+ subheader1: {
421
+ fontFamily: "font-source-serif-4",
422
+ fontSize: "text-xl",
423
+ fontWeight: "font-normal",
424
+ lineHeight: "leading-relaxed"
425
+ },
426
+ subheader2: {
427
+ fontFamily: "font-work-sans",
428
+ fontSize: "text-lg",
429
+ fontWeight: "font-normal",
430
+ lineHeight: "leading-relaxed"
431
+ },
432
+ text1: {
433
+ fontFamily: "font-source-serif-4",
434
+ fontSize: "text-lg",
435
+ fontWeight: "font-normal",
436
+ lineHeight: "leading-loose"
437
+ },
438
+ text2: {
439
+ fontFamily: "font-work-sans",
440
+ fontSize: "text-sm",
441
+ fontWeight: "font-normal",
442
+ lineHeight: "leading-relaxed"
443
+ },
444
+ link: {
445
+ fontFamily: "font-work-sans",
446
+ fontSize: "text-base",
447
+ fontWeight: "font-medium"
448
+ },
449
+ button: {
450
+ fontFamily: "font-work-sans",
451
+ fontSize: "text-sm",
452
+ fontWeight: "font-medium",
453
+ letterSpacing: "tracking-wide"
454
+ },
455
+ input: {
456
+ fontFamily: "font-work-sans",
457
+ fontSize: "text-base",
458
+ fontWeight: "font-normal"
459
+ },
460
+ caption: {
461
+ fontFamily: "font-work-sans",
462
+ fontSize: "text-xs",
463
+ fontWeight: "font-medium",
464
+ lineHeight: "leading-normal",
465
+ letterSpacing: "tracking-wide"
466
+ }
467
+ },
468
+ interactives: {
469
+ button: {
470
+ padding: { x: "px-6", y: "py-3" },
471
+ border: {
472
+ width: "border-0",
473
+ radius: "rounded-full"
474
+ },
475
+ shadow: "shadow-none",
476
+ custom: "transition-colors duration-200",
477
+ disabled: {
478
+ opacity: "opacity-50",
479
+ cursor: "cursor-not-allowed"
480
+ }
481
+ },
482
+ menu: {
483
+ padding: { x: "px-1", y: "py-1" },
484
+ border: { width: "border-0", radius: "rounded-none" },
485
+ shadow: "shadow-none",
486
+ item: {
487
+ padding: { x: "px-3", y: "py-2" },
488
+ border: { radius: "rounded-none" }
489
+ }
490
+ },
491
+ dialog: {
492
+ padding: { x: "px-6", y: "py-6" },
493
+ border: { width: "border-0", radius: "rounded-none" },
494
+ shadow: "shadow-none"
495
+ },
496
+ popover: {
497
+ padding: { x: "px-4", y: "py-4" },
498
+ border: { width: "border-0", radius: "rounded-none" },
499
+ shadow: "shadow-none"
500
+ },
501
+ tooltip: {
502
+ padding: { x: "px-2", y: "py-1" },
503
+ border: { width: "border-0", radius: "rounded-none" },
504
+ shadow: "shadow-none"
505
+ },
506
+ link: {
507
+ padding: { x: "px-0", y: "py-0" },
508
+ custom: "underline-offset-4 decoration-1 hover:underline"
509
+ },
510
+ card: {
511
+ padding: { x: "px-8", y: "py-8" },
512
+ border: {
513
+ width: "border-0",
514
+ radius: "rounded-none"
515
+ },
516
+ shadow: "shadow-none",
517
+ custom: ""
518
+ },
519
+ input: {
520
+ padding: { x: "px-4", y: "py-3" },
521
+ border: {
522
+ width: "border",
523
+ radius: "rounded-none",
524
+ style: "border-solid"
525
+ },
526
+ shadow: "shadow-none",
527
+ custom: "",
528
+ disabled: {
529
+ opacity: "opacity-50",
530
+ cursor: "cursor-not-allowed"
531
+ }
532
+ }
533
+ },
534
+ structure: {
535
+ page: { width: "max-w-5xl" },
536
+ section: {
537
+ padding: { x: "px-6", y: "py-24" }
538
+ }
539
+ }
540
+ };
541
+ var editorial = {
542
+ id: "editorial",
543
+ name: "Editorial",
544
+ theme: themeStyles2
545
+ };
546
+
547
+ // src/primitives/themes/midnight.ts
548
+ var themeStyles3 = {
549
+ colors: {
550
+ light: {
551
+ background: "#f4f5f7",
552
+ foreground: "#1c1f26",
553
+ card: "#ffffff",
554
+ cardForeground: "#1c1f26",
555
+ popover: "#ffffff",
556
+ popoverForeground: "#1c1f26",
557
+ primary: "#61afef",
558
+ primaryForeground: "#0b0d11",
559
+ secondary: "#e8eaf0",
560
+ secondaryForeground: "#1c1f26",
561
+ muted: "#eceef2",
562
+ mutedForeground: "#5b6170",
563
+ accent: "#d7f1f4",
564
+ accentForeground: "#164e63",
565
+ border: "#d7dbe3",
566
+ destructive: "#e06c75",
567
+ input: "#d7dbe3",
568
+ ring: "#61afef",
569
+ chart1: "#61afef",
570
+ chart2: "#818cf8",
571
+ chart3: "#56b6c2",
572
+ chart4: "#98c379",
573
+ chart5: "#e5c07b",
574
+ sidebar: "#ffffff",
575
+ sidebarForeground: "#1c1f26",
576
+ sidebarPrimary: "#61afef",
577
+ sidebarPrimaryForeground: "#0b0d11",
578
+ sidebarAccent: "#e8eaf0",
579
+ sidebarAccentForeground: "#1c1f26",
580
+ sidebarBorder: "#d7dbe3",
581
+ sidebarRing: "#61afef",
582
+ shadow2xs: "0 1px 2px 0 rgb(28 31 38 / 0.05)",
583
+ shadowXs: "0 1px 2px 0 rgb(28 31 38 / 0.06)",
584
+ shadowSm: "0 1px 2px 0 rgb(97 175 239 / 0.12), 0 1px 3px -1px rgb(28 31 38 / 0.08)",
585
+ shadowMd: "0 8px 20px -6px rgb(28 31 38 / 0.12)",
586
+ shadowLg: "0 16px 32px -8px rgb(28 31 38 / 0.16)",
587
+ shadowXl: "0 24px 48px -12px rgb(28 31 38 / 0.2)",
588
+ shadow2xl: "0 32px 64px -16px rgb(28 31 38 / 0.24)"
589
+ },
590
+ dark: {
591
+ background: "#0c0e12",
592
+ foreground: "#e6e8ee",
593
+ card: "#14171e",
594
+ cardForeground: "#e6e8ee",
595
+ popover: "#14171e",
596
+ popoverForeground: "#e6e8ee",
597
+ primary: "#61afef",
598
+ primaryForeground: "#0b0d11",
599
+ secondary: "#1d2230",
600
+ secondaryForeground: "#e6e8ee",
601
+ muted: "#171b24",
602
+ mutedForeground: "#9aa3b2",
603
+ accent: "#14363c",
604
+ accentForeground: "#a5f3fc",
605
+ border: "#262b38",
606
+ destructive: "#e06c75",
607
+ input: "#262b38",
608
+ ring: "#61afef",
609
+ chart1: "#61afef",
610
+ chart2: "#818cf8",
611
+ chart3: "#56b6c2",
612
+ chart4: "#98c379",
613
+ chart5: "#e5c07b",
614
+ sidebar: "#14171e",
615
+ sidebarForeground: "#e6e8ee",
616
+ sidebarPrimary: "#61afef",
617
+ sidebarPrimaryForeground: "#0b0d11",
618
+ sidebarAccent: "#1d2230",
619
+ sidebarAccentForeground: "#e6e8ee",
620
+ sidebarBorder: "#262b38",
621
+ sidebarRing: "#61afef",
622
+ shadow2xs: "0 1px 2px 0 rgb(0 0 0 / 0.35)",
623
+ shadowXs: "0 1px 2px 0 rgb(0 0 0 / 0.4)",
624
+ shadowSm: "0 2px 6px 0 rgb(0 0 0 / 0.45)",
625
+ shadowMd: "0 10px 24px -6px rgb(0 0 0 / 0.55)",
626
+ shadowLg: "0 18px 36px -8px rgb(0 0 0 / 0.6)",
627
+ shadowXl: "0 28px 52px -12px rgb(0 0 0 / 0.65)",
628
+ shadow2xl: "0 36px 72px -16px rgb(0 0 0 / 0.75)"
629
+ }
630
+ },
631
+ typography: {
632
+ preheader: {
633
+ fontFamily: "font-roboto",
634
+ fontSize: "text-xs",
635
+ fontWeight: "font-medium",
636
+ lineHeight: "leading-normal",
637
+ letterSpacing: "tracking-widest",
638
+ textTransform: "uppercase"
639
+ },
640
+ display: {
641
+ fontFamily: "font-roboto",
642
+ fontSize: "text-6xl",
643
+ fontWeight: "font-medium",
644
+ lineHeight: "leading-tight",
645
+ letterSpacing: "tracking-tighter",
646
+ fluid: { min: 34, max: 56 }
647
+ },
648
+ header1: {
649
+ fontFamily: "font-roboto",
650
+ fontSize: "text-5xl",
651
+ fontWeight: "font-medium",
652
+ lineHeight: "leading-tight",
653
+ letterSpacing: "tracking-tighter",
654
+ fluid: { min: 28, max: 48 }
655
+ },
656
+ header2: {
657
+ fontFamily: "font-roboto",
658
+ fontSize: "text-4xl",
659
+ fontWeight: "font-medium",
660
+ lineHeight: "leading-tight",
661
+ letterSpacing: "tracking-tight",
662
+ fluid: { min: 24, max: 36 }
663
+ },
664
+ header3: {
665
+ fontFamily: "font-roboto",
666
+ fontSize: "text-2xl",
667
+ fontWeight: "font-medium",
668
+ lineHeight: "leading-snug"
669
+ },
670
+ header4: {
671
+ fontFamily: "font-roboto",
672
+ fontSize: "text-xl",
673
+ fontWeight: "font-medium",
674
+ lineHeight: "leading-snug"
675
+ },
676
+ subheader1: {
677
+ fontFamily: "font-roboto",
678
+ fontSize: "text-lg",
679
+ fontWeight: "font-normal",
680
+ lineHeight: "leading-relaxed"
681
+ },
682
+ subheader2: {
683
+ fontFamily: "font-roboto",
684
+ fontSize: "text-base",
685
+ fontWeight: "font-normal",
686
+ lineHeight: "leading-relaxed"
687
+ },
688
+ text1: {
689
+ fontFamily: "font-roboto",
690
+ fontSize: "text-base",
691
+ fontWeight: "font-normal",
692
+ lineHeight: "leading-relaxed"
693
+ },
694
+ text2: {
695
+ fontFamily: "font-roboto",
696
+ fontSize: "text-sm",
697
+ fontWeight: "font-normal",
698
+ lineHeight: "leading-relaxed"
699
+ },
700
+ link: {
701
+ fontFamily: "font-roboto",
702
+ fontSize: "text-base",
703
+ fontWeight: "font-medium"
704
+ },
705
+ button: {
706
+ fontFamily: "font-roboto",
707
+ fontSize: "text-sm",
708
+ fontWeight: "font-medium",
709
+ letterSpacing: "tracking-wide"
710
+ },
711
+ input: {
712
+ fontFamily: "font-roboto",
713
+ fontSize: "text-base",
714
+ fontWeight: "font-normal"
715
+ },
716
+ caption: {
717
+ fontFamily: "font-roboto",
718
+ fontSize: "text-xs",
719
+ fontWeight: "font-medium",
720
+ lineHeight: "leading-normal",
721
+ letterSpacing: "tracking-wide"
722
+ }
723
+ },
724
+ interactives: {
725
+ button: {
726
+ padding: { x: "px-5", y: "py-3" },
727
+ border: {
728
+ width: "border-0",
729
+ radius: "rounded-xl"
730
+ },
731
+ shadow: "shadow-xs",
732
+ custom: "transition-colors duration-200",
733
+ disabled: {
734
+ opacity: "opacity-50",
735
+ cursor: "cursor-not-allowed"
736
+ }
737
+ },
738
+ menu: {
739
+ padding: { x: "px-1", y: "py-1" },
740
+ border: { width: "border", radius: "rounded-2xl", style: "border-solid" },
741
+ shadow: "shadow-xs",
742
+ item: {
743
+ padding: { x: "px-3", y: "py-2" },
744
+ border: { radius: "rounded-xl" }
745
+ }
746
+ },
747
+ dialog: {
748
+ padding: { x: "px-6", y: "py-6" },
749
+ border: { width: "border", radius: "rounded-2xl", style: "border-solid" },
750
+ shadow: "shadow-xl"
751
+ },
752
+ popover: {
753
+ padding: { x: "px-4", y: "py-4" },
754
+ border: { width: "border", radius: "rounded-2xl", style: "border-solid" },
755
+ shadow: "shadow-lg"
756
+ },
757
+ tooltip: {
758
+ padding: { x: "px-2", y: "py-1" },
759
+ border: { width: "border", radius: "rounded-lg", style: "border-solid" },
760
+ shadow: "shadow-sm"
761
+ },
762
+ link: {
763
+ padding: { x: "px-0", y: "py-0" },
764
+ custom: "underline-offset-4 hover:underline"
765
+ },
766
+ card: {
767
+ padding: { x: "px-6", y: "py-6" },
768
+ border: {
769
+ width: "border",
770
+ radius: "rounded-2xl",
771
+ style: "border-solid"
772
+ },
773
+ shadow: "shadow-xs",
774
+ custom: "transition-shadow duration-200 hover:shadow-md"
775
+ },
776
+ input: {
777
+ padding: { x: "px-4", y: "py-3" },
778
+ border: {
779
+ width: "border",
780
+ radius: "rounded-xl",
781
+ style: "border-solid"
782
+ },
783
+ shadow: "shadow-none",
784
+ custom: "",
785
+ disabled: {
786
+ opacity: "opacity-50",
787
+ cursor: "cursor-not-allowed"
788
+ }
789
+ }
790
+ },
791
+ structure: {
792
+ page: { width: "max-w-6xl" },
793
+ section: {
794
+ padding: { x: "px-6", y: "py-16" }
795
+ }
796
+ }
797
+ };
798
+ var midnight = {
799
+ id: "midnight",
800
+ name: "Midnight",
801
+ theme: themeStyles3
802
+ };
803
+
804
+ // src/primitives/themes/neobrutalism.ts
805
+ var themeStyles4 = {
806
+ colors: {
807
+ light: {
808
+ background: "#f3fff9",
809
+ foreground: "#050505",
810
+ card: "#ffffff",
811
+ cardForeground: "#050505",
812
+ popover: "#ffffff",
813
+ popoverForeground: "#050505",
814
+ primary: "#ffe600",
815
+ primaryForeground: "#050505",
816
+ secondary: "#7df9ff",
817
+ secondaryForeground: "#050505",
818
+ muted: "#e7fff4",
819
+ mutedForeground: "#3f3f46",
820
+ accent: "#2ff2f2",
821
+ accentForeground: "#050505",
822
+ border: "#050505",
823
+ destructive: "#ff4911",
824
+ input: "#050505",
825
+ ring: "#050505",
826
+ chart1: "#ffe600",
827
+ chart2: "#7df9ff",
828
+ chart3: "#2ff2f2",
829
+ chart4: "#ff4911",
830
+ chart5: "#6fffd7",
831
+ sidebar: "#ffffff",
832
+ sidebarForeground: "#050505",
833
+ sidebarPrimary: "#ffe600",
834
+ sidebarPrimaryForeground: "#050505",
835
+ sidebarAccent: "#2ff2f2",
836
+ sidebarAccentForeground: "#050505",
837
+ sidebarBorder: "#050505",
838
+ sidebarRing: "#050505",
839
+ shadow2xs: "2px 2px 0 0 #050505",
840
+ shadowXs: "3px 3px 0 0 #050505",
841
+ shadowSm: "4px 4px 0 0 #050505",
842
+ shadowMd: "6px 6px 0 0 #050505",
843
+ shadowLg: "8px 8px 0 0 #050505",
844
+ shadowXl: "10px 10px 0 0 #050505",
845
+ shadow2xl: "14px 14px 0 0 #050505"
846
+ },
847
+ dark: {
848
+ background: "#050505",
849
+ foreground: "#6fffd7",
850
+ card: "#0a0a0a",
851
+ cardForeground: "#6fffd7",
852
+ popover: "#0a0a0a",
853
+ popoverForeground: "#6fffd7",
854
+ primary: "#ffe600",
855
+ primaryForeground: "#050505",
856
+ secondary: "#7df9ff",
857
+ secondaryForeground: "#050505",
858
+ muted: "#141414",
859
+ mutedForeground: "#a1a1aa",
860
+ accent: "#2ff2f2",
861
+ accentForeground: "#050505",
862
+ border: "#6fffd7",
863
+ destructive: "#ff4911",
864
+ input: "#6fffd7",
865
+ ring: "#6fffd7",
866
+ chart1: "#ffe600",
867
+ chart2: "#7df9ff",
868
+ chart3: "#2ff2f2",
869
+ chart4: "#ff4911",
870
+ chart5: "#6fffd7",
871
+ sidebar: "#050505",
872
+ sidebarForeground: "#6fffd7",
873
+ sidebarPrimary: "#ffe600",
874
+ sidebarPrimaryForeground: "#050505",
875
+ sidebarAccent: "#2ff2f2",
876
+ sidebarAccentForeground: "#050505",
877
+ sidebarBorder: "#6fffd7",
878
+ sidebarRing: "#6fffd7",
879
+ shadow2xs: "2px 2px 0 0 #6fffd7",
880
+ shadowXs: "3px 3px 0 0 #6fffd7",
881
+ shadowSm: "4px 4px 0 0 #6fffd7",
882
+ shadowMd: "6px 6px 0 0 #6fffd7",
883
+ shadowLg: "8px 8px 0 0 #6fffd7",
884
+ shadowXl: "10px 10px 0 0 #6fffd7",
885
+ shadow2xl: "14px 14px 0 0 #6fffd7"
886
+ }
887
+ },
888
+ typography: {
889
+ preheader: {
890
+ fontFamily: "font-inter",
891
+ fontSize: "text-sm",
892
+ fontWeight: "font-bold",
893
+ letterSpacing: "tracking-widest",
894
+ textTransform: "uppercase"
895
+ },
896
+ display: {
897
+ fontFamily: "font-inter",
898
+ fontSize: "text-6xl",
899
+ fontWeight: "font-black",
900
+ lineHeight: "leading-tight",
901
+ letterSpacing: "tracking-tighter",
902
+ fluid: { min: 34, max: 56 }
903
+ },
904
+ header1: {
905
+ fontFamily: "font-inter",
906
+ fontSize: "text-5xl",
907
+ fontWeight: "font-black",
908
+ lineHeight: "leading-tight",
909
+ letterSpacing: "tracking-tighter",
910
+ fluid: { min: 28, max: 48 }
911
+ },
912
+ header2: {
913
+ fontFamily: "font-inter",
914
+ fontSize: "text-4xl",
915
+ fontWeight: "font-extrabold",
916
+ lineHeight: "leading-tight",
917
+ letterSpacing: "tracking-tight",
918
+ fluid: { min: 24, max: 36 }
919
+ },
920
+ header3: {
921
+ fontFamily: "font-inter",
922
+ fontSize: "text-2xl",
923
+ fontWeight: "font-extrabold",
924
+ lineHeight: "leading-snug"
925
+ },
926
+ header4: {
927
+ fontFamily: "font-inter",
928
+ fontSize: "text-xl",
929
+ fontWeight: "font-bold",
930
+ lineHeight: "leading-snug"
931
+ },
932
+ subheader1: {
933
+ fontFamily: "font-inter",
934
+ fontSize: "text-lg",
935
+ fontWeight: "font-medium",
936
+ lineHeight: "leading-relaxed"
937
+ },
938
+ subheader2: {
939
+ fontFamily: "font-inter",
940
+ fontSize: "text-base",
941
+ fontWeight: "font-medium"
942
+ },
943
+ text1: {
944
+ fontFamily: "font-inter",
945
+ fontSize: "text-base",
946
+ fontWeight: "font-medium",
947
+ lineHeight: "leading-relaxed"
948
+ },
949
+ text2: {
950
+ fontFamily: "font-inter",
951
+ fontSize: "text-sm",
952
+ fontWeight: "font-medium"
953
+ },
954
+ link: {
955
+ fontFamily: "font-inter",
956
+ fontSize: "text-base",
957
+ fontWeight: "font-extrabold"
958
+ },
959
+ button: {
960
+ fontFamily: "font-inter",
961
+ fontSize: "text-base",
962
+ fontWeight: "font-extrabold",
963
+ letterSpacing: "tracking-wide"
964
+ },
965
+ input: {
966
+ fontFamily: "font-inter",
967
+ fontSize: "text-base",
968
+ fontWeight: "font-medium"
969
+ },
970
+ caption: {
971
+ fontFamily: "font-inter",
972
+ fontSize: "text-xs",
973
+ fontWeight: "font-bold",
974
+ letterSpacing: "tracking-wide",
975
+ textTransform: "uppercase"
976
+ }
977
+ },
978
+ highlight: "marker",
979
+ interactives: {
980
+ button: {
981
+ padding: { x: "px-6", y: "py-3" },
982
+ border: {
983
+ width: "border-2",
984
+ radius: "rounded-none",
985
+ style: "border-solid"
986
+ },
987
+ shadow: "shadow-md",
988
+ custom: "transition-transform duration-150 ease-out hover:translate-x-1 hover:translate-y-1 hover:shadow-none",
989
+ disabled: {
990
+ opacity: "opacity-50",
991
+ cursor: "cursor-not-allowed"
992
+ }
993
+ },
994
+ menu: {
995
+ padding: { x: "px-1", y: "py-1" },
996
+ border: { width: "border-2", radius: "rounded-none", style: "border-solid" },
997
+ shadow: "shadow-md",
998
+ item: {
999
+ padding: { x: "px-3", y: "py-2" },
1000
+ border: { radius: "rounded-none" }
1001
+ }
1002
+ },
1003
+ dialog: {
1004
+ padding: { x: "px-6", y: "py-6" },
1005
+ border: { width: "border-2", radius: "rounded-none", style: "border-solid" },
1006
+ shadow: "shadow-md"
1007
+ },
1008
+ popover: {
1009
+ padding: { x: "px-4", y: "py-4" },
1010
+ border: { width: "border-2", radius: "rounded-none", style: "border-solid" },
1011
+ shadow: "shadow-md"
1012
+ },
1013
+ tooltip: {
1014
+ padding: { x: "px-2", y: "py-1" },
1015
+ border: { width: "border-2", radius: "rounded-none", style: "border-solid" },
1016
+ shadow: "shadow-md"
1017
+ },
1018
+ link: {
1019
+ padding: { x: "px-0", y: "py-0" },
1020
+ custom: "underline decoration-2 underline-offset-4"
1021
+ },
1022
+ card: {
1023
+ padding: { x: "px-6", y: "py-6" },
1024
+ border: {
1025
+ width: "border-2",
1026
+ radius: "rounded-none",
1027
+ style: "border-solid"
1028
+ },
1029
+ shadow: "shadow-md",
1030
+ custom: "transition-transform duration-150 ease-out hover:translate-x-1 hover:translate-y-1 hover:shadow-none"
1031
+ },
1032
+ input: {
1033
+ padding: { x: "px-4", y: "py-3" },
1034
+ border: {
1035
+ width: "border-2",
1036
+ style: "border-solid",
1037
+ radius: "rounded-none"
1038
+ },
1039
+ shadow: "shadow-sm",
1040
+ custom: "",
1041
+ disabled: {
1042
+ cursor: "cursor-not-allowed",
1043
+ opacity: "opacity-50"
1044
+ }
1045
+ }
1046
+ },
1047
+ structure: {
1048
+ page: { width: "max-w-6xl" },
1049
+ section: {
1050
+ padding: { x: "px-6", y: "py-16" }
1051
+ }
1052
+ }
1053
+ };
1054
+ var neobrutalism = {
1055
+ id: "neobrutalism",
1056
+ name: "Neo-Brutalism",
1057
+ theme: themeStyles4
1058
+ };
1059
+
1060
+ // src/primitives/themes/studio.ts
1061
+ var themeStyles5 = {
1062
+ colors: {
1063
+ light: {
1064
+ background: "#f4f1ea",
1065
+ foreground: "#1c1917",
1066
+ card: "#fffcf7",
1067
+ cardForeground: "#1c1917",
1068
+ popover: "#fffcf7",
1069
+ popoverForeground: "#1c1917",
1070
+ primary: "#0f766e",
1071
+ primaryForeground: "#f4fffc",
1072
+ secondary: "#ebe4d6",
1073
+ secondaryForeground: "#1c1917",
1074
+ muted: "#ebe6dc",
1075
+ mutedForeground: "#57534e",
1076
+ accent: "#d9f3ee",
1077
+ accentForeground: "#115e59",
1078
+ destructive: "#dc2626",
1079
+ border: "#e0d8cc",
1080
+ input: "#e0d8cc",
1081
+ ring: "#0f766e",
1082
+ chart1: "#0f766e",
1083
+ chart2: "#0d9488",
1084
+ chart3: "#14b8a6",
1085
+ chart4: "#5eead4",
1086
+ chart5: "#ccfbf1",
1087
+ sidebar: "#fffcf7",
1088
+ sidebarForeground: "#1c1917",
1089
+ sidebarPrimary: "#0f766e",
1090
+ sidebarPrimaryForeground: "#f4fffc",
1091
+ sidebarAccent: "#ebe4d6",
1092
+ sidebarAccentForeground: "#1c1917",
1093
+ sidebarBorder: "#e0d8cc",
1094
+ sidebarRing: "#0f766e",
1095
+ shadow2xs: "0 1px 2px 0 rgb(28 25 23 / 0.04)",
1096
+ shadowXs: "0 1px 2px 0 rgb(28 25 23 / 0.05)",
1097
+ shadowSm: "0 1px 2px 0 rgb(15 118 110 / 0.08), 0 1px 3px -1px rgb(28 25 23 / 0.08)",
1098
+ shadowMd: "0 6px 16px -4px rgb(28 25 23 / 0.1), 0 2px 6px -2px rgb(15 118 110 / 0.08)",
1099
+ shadowLg: "0 16px 32px -8px rgb(28 25 23 / 0.12), 0 6px 12px -4px rgb(15 118 110 / 0.08)",
1100
+ shadowXl: "0 24px 48px -12px rgb(28 25 23 / 0.16)",
1101
+ shadow2xl: "0 32px 64px -16px rgb(28 25 23 / 0.22)"
1102
+ },
1103
+ dark: {
1104
+ background: "#12100d",
1105
+ foreground: "#f4efe6",
1106
+ card: "#1b1814",
1107
+ cardForeground: "#f4efe6",
1108
+ popover: "#1b1814",
1109
+ popoverForeground: "#f4efe6",
1110
+ primary: "#2dd4bf",
1111
+ primaryForeground: "#042f2e",
1112
+ secondary: "#2a241c",
1113
+ secondaryForeground: "#f4efe6",
1114
+ muted: "#221e19",
1115
+ mutedForeground: "#a8a29e",
1116
+ accent: "#134e4a",
1117
+ accentForeground: "#ccfbf1",
1118
+ destructive: "#f87171",
1119
+ border: "#2e2922",
1120
+ input: "#2e2922",
1121
+ ring: "#2dd4bf",
1122
+ chart1: "#2dd4bf",
1123
+ chart2: "#5eead4",
1124
+ chart3: "#99f6e4",
1125
+ chart4: "#14b8a6",
1126
+ chart5: "#0f766e",
1127
+ sidebar: "#1b1814",
1128
+ sidebarForeground: "#f4efe6",
1129
+ sidebarPrimary: "#2dd4bf",
1130
+ sidebarPrimaryForeground: "#042f2e",
1131
+ sidebarAccent: "#2a241c",
1132
+ sidebarAccentForeground: "#f4efe6",
1133
+ sidebarBorder: "#2e2922",
1134
+ sidebarRing: "#2dd4bf",
1135
+ shadow2xs: "0 1px 2px 0 rgb(0 0 0 / 0.28)",
1136
+ shadowXs: "0 1px 2px 0 rgb(0 0 0 / 0.32)",
1137
+ shadowSm: "0 1px 2px 0 rgb(0 0 0 / 0.36), 0 1px 3px -1px rgb(0 0 0 / 0.4)",
1138
+ shadowMd: "0 8px 20px -6px rgb(0 0 0 / 0.48)",
1139
+ shadowLg: "0 16px 32px -8px rgb(0 0 0 / 0.52)",
1140
+ shadowXl: "0 24px 48px -10px rgb(0 0 0 / 0.56)",
1141
+ shadow2xl: "0 32px 64px -12px rgb(0 0 0 / 0.64)"
1142
+ }
1143
+ },
1144
+ typography: {
1145
+ preheader: {
1146
+ fontFamily: "font-montserrat",
1147
+ fontSize: "text-xs",
1148
+ fontWeight: "font-semibold",
1149
+ lineHeight: "leading-normal",
1150
+ letterSpacing: "tracking-widest",
1151
+ textTransform: "uppercase"
1152
+ },
1153
+ display: {
1154
+ fontFamily: "font-montserrat",
1155
+ fontSize: "text-7xl",
1156
+ fontWeight: "font-semibold",
1157
+ lineHeight: "leading-tight",
1158
+ letterSpacing: "tracking-tighter",
1159
+ fluid: { min: 34, max: 60 }
1160
+ },
1161
+ header1: {
1162
+ fontFamily: "font-montserrat",
1163
+ fontSize: "text-6xl",
1164
+ fontWeight: "font-semibold",
1165
+ lineHeight: "leading-tight",
1166
+ letterSpacing: "tracking-tighter",
1167
+ fluid: { min: 30, max: 52 }
1168
+ },
1169
+ header2: {
1170
+ fontFamily: "font-montserrat",
1171
+ fontSize: "text-4xl",
1172
+ fontWeight: "font-semibold",
1173
+ lineHeight: "leading-tight",
1174
+ letterSpacing: "tracking-tight",
1175
+ fluid: { min: 24, max: 36 }
1176
+ },
1177
+ header3: {
1178
+ fontFamily: "font-montserrat",
1179
+ fontSize: "text-2xl",
1180
+ fontWeight: "font-semibold",
1181
+ lineHeight: "leading-snug",
1182
+ letterSpacing: "tracking-tight"
1183
+ },
1184
+ header4: {
1185
+ fontFamily: "font-montserrat",
1186
+ fontSize: "text-xl",
1187
+ fontWeight: "font-medium",
1188
+ lineHeight: "leading-snug"
1189
+ },
1190
+ subheader1: {
1191
+ fontFamily: "font-source-sans-3",
1192
+ fontSize: "text-xl",
1193
+ fontWeight: "font-normal",
1194
+ lineHeight: "leading-relaxed"
1195
+ },
1196
+ subheader2: {
1197
+ fontFamily: "font-source-sans-3",
1198
+ fontSize: "text-lg",
1199
+ fontWeight: "font-normal",
1200
+ lineHeight: "leading-relaxed"
1201
+ },
1202
+ text1: {
1203
+ fontFamily: "font-source-sans-3",
1204
+ fontSize: "text-base",
1205
+ fontWeight: "font-normal",
1206
+ lineHeight: "leading-relaxed"
1207
+ },
1208
+ text2: {
1209
+ fontFamily: "font-source-sans-3",
1210
+ fontSize: "text-sm",
1211
+ fontWeight: "font-normal",
1212
+ lineHeight: "leading-relaxed"
1213
+ },
1214
+ link: {
1215
+ fontFamily: "font-source-sans-3",
1216
+ fontSize: "text-base",
1217
+ fontWeight: "font-medium"
1218
+ },
1219
+ button: {
1220
+ fontFamily: "font-montserrat",
1221
+ fontSize: "text-sm",
1222
+ fontWeight: "font-medium",
1223
+ letterSpacing: "tracking-wide"
1224
+ },
1225
+ input: {
1226
+ fontFamily: "font-source-sans-3",
1227
+ fontSize: "text-base",
1228
+ fontWeight: "font-normal"
1229
+ },
1230
+ caption: {
1231
+ fontFamily: "font-source-sans-3",
1232
+ fontSize: "text-xs",
1233
+ fontWeight: "font-medium",
1234
+ lineHeight: "leading-normal",
1235
+ letterSpacing: "tracking-wide"
1236
+ }
1237
+ },
1238
+ interactives: {
1239
+ button: {
1240
+ padding: { x: "px-6", y: "py-3" },
1241
+ border: {
1242
+ width: "border-0",
1243
+ radius: "rounded-2xl"
1244
+ },
1245
+ shadow: "shadow-xs",
1246
+ custom: "transition-colors duration-200",
1247
+ disabled: {
1248
+ opacity: "opacity-50",
1249
+ cursor: "cursor-not-allowed"
1250
+ }
1251
+ },
1252
+ menu: {
1253
+ padding: { x: "px-1", y: "py-1" },
1254
+ border: { width: "border", radius: "rounded-2xl", style: "border-solid" },
1255
+ shadow: "shadow-xs",
1256
+ item: {
1257
+ padding: { x: "px-3", y: "py-2" },
1258
+ border: { radius: "rounded-xl" }
1259
+ }
1260
+ },
1261
+ dialog: {
1262
+ padding: { x: "px-6", y: "py-6" },
1263
+ border: { width: "border-0", radius: "rounded-2xl" },
1264
+ shadow: "shadow-lg"
1265
+ },
1266
+ popover: {
1267
+ padding: { x: "px-4", y: "py-4" },
1268
+ border: { width: "border-0", radius: "rounded-2xl" },
1269
+ shadow: "shadow-md"
1270
+ },
1271
+ tooltip: {
1272
+ padding: { x: "px-2", y: "py-1" },
1273
+ border: { width: "border-0", radius: "rounded-lg" },
1274
+ shadow: "shadow-sm"
1275
+ },
1276
+ link: {
1277
+ padding: { x: "px-0", y: "py-0" },
1278
+ custom: "underline-offset-4 transition-colors duration-150 hover:underline"
1279
+ },
1280
+ card: {
1281
+ padding: { x: "px-8", y: "py-8" },
1282
+ border: {
1283
+ width: "border",
1284
+ radius: "rounded-3xl",
1285
+ style: "border-solid"
1286
+ },
1287
+ shadow: "shadow-xs",
1288
+ custom: "transition-shadow duration-200 hover:shadow-lg"
1289
+ },
1290
+ input: {
1291
+ borderRadius: "rounded-2xl",
1292
+ padding: { x: "px-4", y: "py-3" },
1293
+ border: {
1294
+ width: "border",
1295
+ style: "border-solid",
1296
+ radius: "rounded-2xl"
1297
+ },
1298
+ shadow: "shadow-none",
1299
+ custom: "transition-shadow duration-150",
1300
+ disabled: {
1301
+ cursor: "cursor-not-allowed",
1302
+ opacity: "opacity-50"
1303
+ }
1304
+ }
1305
+ },
1306
+ structure: {
1307
+ page: { width: "max-w-6xl" },
1308
+ section: {
1309
+ padding: { x: "px-6", y: "py-24" }
1310
+ }
1311
+ }
1312
+ };
1313
+ var studio = {
1314
+ id: "studio",
1315
+ name: "Studio",
1316
+ theme: themeStyles5
1317
+ };
1318
+
1319
+ // src/primitives/themes/terminal.ts
1320
+ var themeStyles6 = {
1321
+ colors: {
1322
+ light: {
1323
+ background: "#ffffff",
1324
+ foreground: "#111111",
1325
+ card: "#ffffff",
1326
+ cardForeground: "#111111",
1327
+ popover: "#ffffff",
1328
+ popoverForeground: "#111111",
1329
+ primary: "#111111",
1330
+ primaryForeground: "#ffffff",
1331
+ secondary: "#ffffff",
1332
+ secondaryForeground: "#111111",
1333
+ muted: "#f5f5f5",
1334
+ mutedForeground: "#5c5c66",
1335
+ accent: "#f0f0f2",
1336
+ accentForeground: "#111111",
1337
+ border: "#dcdce0",
1338
+ destructive: "#d92d20",
1339
+ input: "#111111",
1340
+ ring: "#6d28d9",
1341
+ chart1: "#111111",
1342
+ chart2: "#6d28d9",
1343
+ chart3: "#2f4ad8",
1344
+ chart4: "#5c5c66",
1345
+ chart5: "#a1a1aa",
1346
+ sidebar: "#ffffff",
1347
+ sidebarForeground: "#111111",
1348
+ sidebarPrimary: "#111111",
1349
+ sidebarPrimaryForeground: "#ffffff",
1350
+ sidebarAccent: "#f0f0f2",
1351
+ sidebarAccentForeground: "#111111",
1352
+ sidebarBorder: "#dcdce0",
1353
+ sidebarRing: "#6d28d9",
1354
+ shadow2xs: "none",
1355
+ shadowXs: "none",
1356
+ shadowSm: "none",
1357
+ shadowMd: "none",
1358
+ shadowLg: "none",
1359
+ shadowXl: "none",
1360
+ shadow2xl: "none"
1361
+ },
1362
+ dark: {
1363
+ background: "#17171a",
1364
+ foreground: "#eae8ee",
1365
+ card: "#1c1c20",
1366
+ cardForeground: "#eae8ee",
1367
+ popover: "#1c1c20",
1368
+ popoverForeground: "#eae8ee",
1369
+ primary: "#cba6f7",
1370
+ primaryForeground: "#17171a",
1371
+ secondary: "#17171a",
1372
+ secondaryForeground: "#eae8ee",
1373
+ muted: "#222226",
1374
+ mutedForeground: "#9b99a3",
1375
+ accent: "#26262b",
1376
+ accentForeground: "#eae8ee",
1377
+ border: "#2e2e34",
1378
+ destructive: "#f38ba8",
1379
+ input: "#3a3a41",
1380
+ ring: "#cba6f7",
1381
+ chart1: "#cba6f7",
1382
+ chart2: "#a6e3a1",
1383
+ chart3: "#89b4fa",
1384
+ chart4: "#f9e2af",
1385
+ chart5: "#f38ba8",
1386
+ sidebar: "#17171a",
1387
+ sidebarForeground: "#eae8ee",
1388
+ sidebarPrimary: "#cba6f7",
1389
+ sidebarPrimaryForeground: "#17171a",
1390
+ sidebarAccent: "#26262b",
1391
+ sidebarAccentForeground: "#eae8ee",
1392
+ sidebarBorder: "#2e2e34",
1393
+ sidebarRing: "#cba6f7",
1394
+ shadow2xs: "none",
1395
+ shadowXs: "none",
1396
+ shadowSm: "none",
1397
+ shadowMd: "none",
1398
+ shadowLg: "none",
1399
+ shadowXl: "none",
1400
+ shadow2xl: "none"
1401
+ }
1402
+ },
1403
+ typography: {
1404
+ preheader: {
1405
+ fontFamily: "font-jetbrains-mono",
1406
+ fontSize: "text-xs",
1407
+ fontWeight: "font-normal",
1408
+ letterSpacing: "tracking-widest",
1409
+ textTransform: "uppercase"
1410
+ },
1411
+ display: {
1412
+ fontFamily: "font-archivo",
1413
+ fontSize: "text-7xl",
1414
+ fontWeight: "font-black",
1415
+ lineHeight: "leading-tight",
1416
+ letterSpacing: "tracking-tight",
1417
+ fluid: { min: 36, max: 64 }
1418
+ },
1419
+ header1: {
1420
+ fontFamily: "font-archivo",
1421
+ fontSize: "text-5xl",
1422
+ fontWeight: "font-extrabold",
1423
+ lineHeight: "leading-tight",
1424
+ letterSpacing: "tracking-tight",
1425
+ fluid: { min: 28, max: 44 }
1426
+ },
1427
+ header2: {
1428
+ fontFamily: "font-archivo",
1429
+ fontSize: "text-3xl",
1430
+ fontWeight: "font-extrabold",
1431
+ lineHeight: "leading-tight",
1432
+ letterSpacing: "tracking-tight",
1433
+ fluid: { min: 22, max: 32 }
1434
+ },
1435
+ header3: {
1436
+ fontFamily: "font-archivo",
1437
+ fontSize: "text-xl",
1438
+ fontWeight: "font-bold",
1439
+ lineHeight: "leading-snug",
1440
+ letterSpacing: "tracking-tight"
1441
+ },
1442
+ header4: {
1443
+ fontFamily: "font-archivo",
1444
+ fontSize: "text-lg",
1445
+ fontWeight: "font-bold",
1446
+ lineHeight: "leading-snug",
1447
+ letterSpacing: "tracking-tight"
1448
+ },
1449
+ subheader1: {
1450
+ fontFamily: "font-inter",
1451
+ fontSize: "text-lg",
1452
+ fontWeight: "font-normal",
1453
+ lineHeight: "leading-relaxed"
1454
+ },
1455
+ subheader2: {
1456
+ fontFamily: "font-inter",
1457
+ fontSize: "text-base",
1458
+ fontWeight: "font-normal",
1459
+ lineHeight: "leading-relaxed"
1460
+ },
1461
+ text1: {
1462
+ fontFamily: "font-inter",
1463
+ fontSize: "text-base",
1464
+ fontWeight: "font-normal",
1465
+ lineHeight: "leading-relaxed"
1466
+ },
1467
+ text2: {
1468
+ fontFamily: "font-inter",
1469
+ fontSize: "text-sm",
1470
+ fontWeight: "font-normal",
1471
+ lineHeight: "leading-relaxed"
1472
+ },
1473
+ link: {
1474
+ fontFamily: "font-inter",
1475
+ fontSize: "text-sm",
1476
+ fontWeight: "font-medium"
1477
+ },
1478
+ button: {
1479
+ fontFamily: "font-jetbrains-mono",
1480
+ fontSize: "text-xs",
1481
+ fontWeight: "font-medium",
1482
+ letterSpacing: "tracking-wider",
1483
+ textTransform: "uppercase"
1484
+ },
1485
+ input: {
1486
+ fontFamily: "font-jetbrains-mono",
1487
+ fontSize: "text-sm",
1488
+ fontWeight: "font-normal"
1489
+ },
1490
+ code: {
1491
+ fontFamily: "font-jetbrains-mono",
1492
+ fontSize: "text-sm",
1493
+ fontWeight: "font-normal",
1494
+ lineHeight: "leading-relaxed"
1495
+ },
1496
+ caption: {
1497
+ fontFamily: "font-jetbrains-mono",
1498
+ fontSize: "text-xs",
1499
+ fontWeight: "font-normal",
1500
+ letterSpacing: "tracking-wider",
1501
+ textTransform: "uppercase"
1502
+ }
1503
+ },
1504
+ highlight: "marker",
1505
+ interactives: {
1506
+ button: {
1507
+ padding: { x: "px-5", y: "py-3" },
1508
+ border: { width: "border", radius: "rounded-none", style: "border-solid" },
1509
+ shadow: "shadow-none",
1510
+ custom: "transition-colors",
1511
+ disabled: { opacity: "opacity-50", cursor: "cursor-not-allowed" }
1512
+ },
1513
+ menu: {
1514
+ padding: { x: "px-1", y: "py-1" },
1515
+ border: { width: "border", radius: "rounded-none", style: "border-solid" },
1516
+ shadow: "shadow-none",
1517
+ item: {
1518
+ padding: { x: "px-3", y: "py-2" },
1519
+ border: { radius: "rounded-none" }
1520
+ }
1521
+ },
1522
+ dialog: {
1523
+ padding: { x: "px-6", y: "py-6" },
1524
+ border: { width: "border", radius: "rounded-none", style: "border-solid" },
1525
+ shadow: "shadow-none"
1526
+ },
1527
+ popover: {
1528
+ padding: { x: "px-4", y: "py-4" },
1529
+ border: { width: "border", radius: "rounded-none", style: "border-solid" },
1530
+ shadow: "shadow-none"
1531
+ },
1532
+ tooltip: {
1533
+ padding: { x: "px-2", y: "py-1" },
1534
+ border: { width: "border", radius: "rounded-none", style: "border-solid" },
1535
+ shadow: "shadow-none"
1536
+ },
1537
+ link: {
1538
+ padding: { x: "px-0", y: "py-0" },
1539
+ custom: "underline-offset-4 hover:underline"
1540
+ },
1541
+ card: {
1542
+ padding: { x: "px-6", y: "py-6" },
1543
+ border: { width: "border", radius: "rounded-none", style: "border-solid" },
1544
+ shadow: "shadow-none",
1545
+ custom: ""
1546
+ },
1547
+ input: {
1548
+ padding: { x: "px-4", y: "py-3" },
1549
+ border: { width: "border", radius: "rounded-none", style: "border-solid" },
1550
+ shadow: "shadow-none",
1551
+ custom: "",
1552
+ disabled: { cursor: "cursor-not-allowed", opacity: "opacity-50" }
1553
+ }
1554
+ },
1555
+ structure: {
1556
+ page: { width: "max-w-6xl" },
1557
+ section: {
1558
+ dividers: true,
1559
+ padding: { x: "px-6", y: "py-20" }
1560
+ }
1561
+ }
1562
+ };
1563
+ var terminal = {
1564
+ id: "terminal",
1565
+ name: "Terminal",
1566
+ theme: themeStyles6
1567
+ };
1568
+
1569
+ // src/primitives/themes/index.ts
1570
+ var themes = [
1571
+ classic,
1572
+ studio,
1573
+ midnight,
1574
+ editorial,
1575
+ neobrutalism,
1576
+ terminal
1577
+ ];
1578
+
1579
+ // src/renderer/generate-theme-styles.ts
1580
+ import convert from "color-convert";
1581
+ function formatHSL(hsl) {
1582
+ return `${hsl[0]} ${hsl[1]}% ${hsl[2]}%`;
1583
+ }
1584
+ var SHORT_OR_LONG_HEX = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i;
1585
+ var HEX_WITH_ALPHA = /^#([0-9a-f]{4}|[0-9a-f]{8})$/i;
1586
+ var CSS_COLOR_FUNCTION = /^(oklch|oklab|lab|lch|hwb|hsla?|rgba?|color)\(\s*[-+0-9a-z%.,/\s]+\)$/i;
1587
+ function resolveThemeColor(value) {
1588
+ const color = value?.trim();
1589
+ if (!color) return "";
1590
+ if (SHORT_OR_LONG_HEX.test(color)) {
1591
+ return `hsl(${formatHSL(convert.hex.hsl(color.replace("#", "")))})`;
1592
+ }
1593
+ if (HEX_WITH_ALPHA.test(color) || CSS_COLOR_FUNCTION.test(color)) return color;
1594
+ return "";
1595
+ }
1596
+ function generateThemeStyles(theme, selector = ".pb-theme") {
1597
+ const colors = theme?.theme?.colors;
1598
+ if (!colors) {
1599
+ return "";
1600
+ }
1601
+ const { light, dark } = colors;
1602
+ if (!light || !dark) {
1603
+ return "";
1604
+ }
1605
+ const block = (c) => `
1606
+ --background: ${resolveThemeColor(c.background)};
1607
+ --foreground: ${resolveThemeColor(c.foreground)};
1608
+ --card: ${resolveThemeColor(c.card)};
1609
+ --card-foreground: ${resolveThemeColor(c.cardForeground)};
1610
+ --popover: ${resolveThemeColor(c.popover)};
1611
+ --popover-foreground: ${resolveThemeColor(c.popoverForeground)};
1612
+ --primary: ${resolveThemeColor(c.primary)};
1613
+ --primary-foreground: ${resolveThemeColor(c.primaryForeground)};
1614
+ --secondary: ${resolveThemeColor(c.secondary)};
1615
+ --secondary-foreground: ${resolveThemeColor(c.secondaryForeground)};
1616
+ --muted: ${resolveThemeColor(c.muted)};
1617
+ --muted-foreground: ${resolveThemeColor(c.mutedForeground)};
1618
+ --accent: ${resolveThemeColor(c.accent)};
1619
+ --accent-foreground: ${resolveThemeColor(c.accentForeground)};
1620
+ --destructive: ${resolveThemeColor(c.destructive)};
1621
+ --border: ${resolveThemeColor(c.border)};
1622
+ --input: ${resolveThemeColor(c.input)};
1623
+ --ring: ${resolveThemeColor(c.ring)};
1624
+ --chart-1: ${resolveThemeColor(c.chart1)};
1625
+ --chart-2: ${resolveThemeColor(c.chart2)};
1626
+ --chart-3: ${resolveThemeColor(c.chart3)};
1627
+ --chart-4: ${resolveThemeColor(c.chart4)};
1628
+ --chart-5: ${resolveThemeColor(c.chart5)};
1629
+ --sidebar-background: ${resolveThemeColor(c.sidebar)};
1630
+ --sidebar-foreground: ${resolveThemeColor(c.sidebarForeground)};
1631
+ --sidebar-primary: ${resolveThemeColor(c.sidebarPrimary)};
1632
+ --sidebar-primary-foreground: ${resolveThemeColor(c.sidebarPrimaryForeground)};
1633
+ --sidebar-accent: ${resolveThemeColor(c.sidebarAccent)};
1634
+ --sidebar-accent-foreground: ${resolveThemeColor(c.sidebarAccentForeground)};
1635
+ --sidebar-border: ${resolveThemeColor(c.sidebarBorder)};
1636
+ --sidebar-ring: ${resolveThemeColor(c.sidebarRing)};
1637
+ --shadow-2xs: ${c.shadow2xs ?? ""};
1638
+ --shadow-xs: ${c.shadowXs ?? ""};
1639
+ --shadow-sm: ${c.shadowSm ?? ""};
1640
+ --shadow-md: ${c.shadowMd ?? ""};
1641
+ --shadow-lg: ${c.shadowLg ?? ""};
1642
+ --shadow-xl: ${c.shadowXl ?? ""};
1643
+ --shadow-2xl: ${c.shadow2xl ?? ""};
1644
+ `;
1645
+ return `
1646
+ ${selector} {
1647
+ ${block(light)}
1648
+ }
1649
+ ${selector}:is(.dark, .dark *) {
1650
+ ${block(dark)}
1651
+ }
1652
+ `;
1653
+ }
1654
+
1655
+ // src/theme/index.ts
1656
+ function resolveTheme(themeId, themeStyle) {
1657
+ if (themeStyle) {
1658
+ return {
1659
+ id: themeId ?? "custom",
1660
+ name: "Custom",
1661
+ theme: themeStyle
1662
+ };
1663
+ }
1664
+ return themes.find((theme) => theme.id === themeId) ?? themes[0];
1665
+ }
1666
+ export {
1667
+ generateThemeStyles,
1668
+ resolveTheme,
1669
+ themes
1670
+ };
1671
+ //# sourceMappingURL=theme.js.map