@opencosmos/ui 1.3.1

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 (260) hide show
  1. package/.claude/CLAUDE.md +239 -0
  2. package/README.md +161 -0
  3. package/dist/cli.mjs +151 -0
  4. package/dist/dates.d.mts +20 -0
  5. package/dist/dates.d.ts +20 -0
  6. package/dist/dates.js +240 -0
  7. package/dist/dates.js.map +1 -0
  8. package/dist/dates.mjs +203 -0
  9. package/dist/dates.mjs.map +1 -0
  10. package/dist/dnd.d.mts +126 -0
  11. package/dist/dnd.d.ts +126 -0
  12. package/dist/dnd.js +274 -0
  13. package/dist/dnd.js.map +1 -0
  14. package/dist/dnd.mjs +250 -0
  15. package/dist/dnd.mjs.map +1 -0
  16. package/dist/fontThemes-Dh8mtXES.d.mts +868 -0
  17. package/dist/fontThemes-Dh8mtXES.d.ts +868 -0
  18. package/dist/forms.d.mts +38 -0
  19. package/dist/forms.d.ts +38 -0
  20. package/dist/forms.js +198 -0
  21. package/dist/forms.js.map +1 -0
  22. package/dist/forms.mjs +159 -0
  23. package/dist/forms.mjs.map +1 -0
  24. package/dist/hooks-1b8WaQf1.d.mts +225 -0
  25. package/dist/hooks-CKW8vE9H.d.ts +225 -0
  26. package/dist/hooks.d.mts +3 -0
  27. package/dist/hooks.d.ts +3 -0
  28. package/dist/hooks.js +971 -0
  29. package/dist/hooks.js.map +1 -0
  30. package/dist/hooks.mjs +943 -0
  31. package/dist/hooks.mjs.map +1 -0
  32. package/dist/index-DscTIrZ2.d.mts +29 -0
  33. package/dist/index-DscTIrZ2.d.ts +29 -0
  34. package/dist/index.d.mts +3382 -0
  35. package/dist/index.d.ts +3382 -0
  36. package/dist/index.js +15146 -0
  37. package/dist/index.js.map +1 -0
  38. package/dist/index.mjs +14802 -0
  39. package/dist/index.mjs.map +1 -0
  40. package/dist/providers-CXPDMsl7.d.mts +30 -0
  41. package/dist/providers-Dn_Msjvz.d.ts +30 -0
  42. package/dist/providers.d.mts +3 -0
  43. package/dist/providers.d.ts +3 -0
  44. package/dist/providers.js +1885 -0
  45. package/dist/providers.js.map +1 -0
  46. package/dist/providers.mjs +1859 -0
  47. package/dist/providers.mjs.map +1 -0
  48. package/dist/tables.d.mts +10 -0
  49. package/dist/tables.d.ts +10 -0
  50. package/dist/tables.js +248 -0
  51. package/dist/tables.js.map +1 -0
  52. package/dist/tables.mjs +218 -0
  53. package/dist/tables.mjs.map +1 -0
  54. package/dist/tokens.d.mts +1065 -0
  55. package/dist/tokens.d.ts +1065 -0
  56. package/dist/tokens.js +2637 -0
  57. package/dist/tokens.js.map +1 -0
  58. package/dist/tokens.mjs +2555 -0
  59. package/dist/tokens.mjs.map +1 -0
  60. package/dist/utils-CIIM7dAC.d.ts +986 -0
  61. package/dist/utils-Cs04sxth.d.mts +986 -0
  62. package/dist/utils.d.mts +4 -0
  63. package/dist/utils.d.ts +4 -0
  64. package/dist/utils.js +874 -0
  65. package/dist/utils.js.map +1 -0
  66. package/dist/utils.mjs +806 -0
  67. package/dist/utils.mjs.map +1 -0
  68. package/dist/validation-Bj1ye-v_.d.mts +114 -0
  69. package/dist/validation-Bj1ye-v_.d.ts +114 -0
  70. package/dist/webgl.d.mts +104 -0
  71. package/dist/webgl.d.ts +104 -0
  72. package/dist/webgl.js +226 -0
  73. package/dist/webgl.js.map +1 -0
  74. package/dist/webgl.mjs +195 -0
  75. package/dist/webgl.mjs.map +1 -0
  76. package/package.json +267 -0
  77. package/src/cli.ts +206 -0
  78. package/src/component-registry.ts +183 -0
  79. package/src/components/actions/Button.test.tsx +61 -0
  80. package/src/components/actions/Button.tsx +70 -0
  81. package/src/components/actions/Link.tsx +78 -0
  82. package/src/components/actions/Magnetic.tsx +68 -0
  83. package/src/components/actions/Toggle.test.tsx +40 -0
  84. package/src/components/actions/Toggle.tsx +47 -0
  85. package/src/components/actions/ToggleGroup.tsx +70 -0
  86. package/src/components/actions/index.ts +5 -0
  87. package/src/components/backgrounds/FaultyTerminal.tsx +426 -0
  88. package/src/components/backgrounds/OrbBackground.tsx +424 -0
  89. package/src/components/backgrounds/WarpBackground.tsx +358 -0
  90. package/src/components/backgrounds/index.ts +3 -0
  91. package/src/components/blocks/Hero.tsx +142 -0
  92. package/src/components/blocks/social/OpenGraphCard.tsx +243 -0
  93. package/src/components/cursor/SplashCursor.tsx +1315 -0
  94. package/src/components/cursor/TargetCursor.tsx +187 -0
  95. package/src/components/cursor/index.ts +2 -0
  96. package/src/components/data-display/AspectImage.tsx +73 -0
  97. package/src/components/data-display/Avatar.test.tsx +35 -0
  98. package/src/components/data-display/Avatar.tsx +55 -0
  99. package/src/components/data-display/Badge.test.tsx +43 -0
  100. package/src/components/data-display/Badge.tsx +84 -0
  101. package/src/components/data-display/Brand.tsx +123 -0
  102. package/src/components/data-display/Calendar.tsx +70 -0
  103. package/src/components/data-display/Card.test.tsx +92 -0
  104. package/src/components/data-display/Card.tsx +115 -0
  105. package/src/components/data-display/Code.tsx +210 -0
  106. package/src/components/data-display/CollapsibleCodeBlock.tsx +238 -0
  107. package/src/components/data-display/DataTable.tsx +119 -0
  108. package/src/components/data-display/DescriptionList.tsx +41 -0
  109. package/src/components/data-display/GitHubIcon.tsx +44 -0
  110. package/src/components/data-display/Heading.test.tsx +36 -0
  111. package/src/components/data-display/Heading.tsx +83 -0
  112. package/src/components/data-display/StatCard.tsx +195 -0
  113. package/src/components/data-display/Table.tsx +133 -0
  114. package/src/components/data-display/Text.test.tsx +48 -0
  115. package/src/components/data-display/Text.tsx +144 -0
  116. package/src/components/data-display/Timeline.tsx +194 -0
  117. package/src/components/data-display/TreeView.tsx +226 -0
  118. package/src/components/data-display/Typewriter.tsx +119 -0
  119. package/src/components/data-display/VariableWeightText.tsx +130 -0
  120. package/src/components/data-display/index.ts +19 -0
  121. package/src/components/feedback/Alert.test.tsx +44 -0
  122. package/src/components/feedback/Alert.tsx +65 -0
  123. package/src/components/feedback/EmptyState.tsx +113 -0
  124. package/src/components/feedback/Progress.test.tsx +60 -0
  125. package/src/components/feedback/Progress.tsx +30 -0
  126. package/src/components/feedback/ProgressBar.tsx +158 -0
  127. package/src/components/feedback/Skeleton.test.tsx +39 -0
  128. package/src/components/feedback/Skeleton.tsx +45 -0
  129. package/src/components/feedback/Sonner.tsx +28 -0
  130. package/src/components/feedback/Spinner.test.tsx +33 -0
  131. package/src/components/feedback/Spinner.tsx +99 -0
  132. package/src/components/feedback/Stepper.tsx +307 -0
  133. package/src/components/feedback/Toast/Toast.tsx +243 -0
  134. package/src/components/feedback/Toast/index.ts +2 -0
  135. package/src/components/feedback/index.ts +9 -0
  136. package/src/components/forms/Checkbox.test.tsx +40 -0
  137. package/src/components/forms/Checkbox.tsx +31 -0
  138. package/src/components/forms/ColorPicker.tsx +118 -0
  139. package/src/components/forms/Combobox.tsx +96 -0
  140. package/src/components/forms/DragDrop.tsx +440 -0
  141. package/src/components/forms/FileUpload.tsx +252 -0
  142. package/src/components/forms/FilterButton.tsx +65 -0
  143. package/src/components/forms/Form.tsx +197 -0
  144. package/src/components/forms/Input.test.tsx +46 -0
  145. package/src/components/forms/Input.tsx +43 -0
  146. package/src/components/forms/InputOTP.tsx +81 -0
  147. package/src/components/forms/Label.test.tsx +20 -0
  148. package/src/components/forms/Label.tsx +25 -0
  149. package/src/components/forms/RadioGroup.tsx +51 -0
  150. package/src/components/forms/SearchBar.tsx +215 -0
  151. package/src/components/forms/Select.test.tsx +118 -0
  152. package/src/components/forms/Select.tsx +274 -0
  153. package/src/components/forms/Slider.tsx +29 -0
  154. package/src/components/forms/Switch.test.tsx +76 -0
  155. package/src/components/forms/Switch.tsx +30 -0
  156. package/src/components/forms/TextField.tsx +152 -0
  157. package/src/components/forms/Textarea.test.tsx +41 -0
  158. package/src/components/forms/Textarea.tsx +29 -0
  159. package/src/components/forms/ThemeSwitcher.tsx +290 -0
  160. package/src/components/forms/ThemeToggle.tsx +151 -0
  161. package/src/components/forms/index.ts +19 -0
  162. package/src/components/layout/Accordion.test.tsx +66 -0
  163. package/src/components/layout/Accordion.tsx +64 -0
  164. package/src/components/layout/AspectRatio.tsx +7 -0
  165. package/src/components/layout/Carousel.tsx +277 -0
  166. package/src/components/layout/Collapsible.test.tsx +40 -0
  167. package/src/components/layout/Collapsible.tsx +31 -0
  168. package/src/components/layout/Container.test.tsx +45 -0
  169. package/src/components/layout/Container.tsx +99 -0
  170. package/src/components/layout/CustomizerPanel.tsx +400 -0
  171. package/src/components/layout/DatePicker.tsx +57 -0
  172. package/src/components/layout/Footer/Footer.tsx +175 -0
  173. package/src/components/layout/Footer/index.ts +2 -0
  174. package/src/components/layout/GlassSurface.tsx +82 -0
  175. package/src/components/layout/Grid.test.tsx +31 -0
  176. package/src/components/layout/Grid.tsx +130 -0
  177. package/src/components/layout/Header/Header.tsx +450 -0
  178. package/src/components/layout/Header/index.ts +2 -0
  179. package/src/components/layout/PageLayout.tsx +180 -0
  180. package/src/components/layout/PageTemplate.tsx +158 -0
  181. package/src/components/layout/Resizable.tsx +48 -0
  182. package/src/components/layout/ScrollArea.tsx +53 -0
  183. package/src/components/layout/Separator.test.tsx +28 -0
  184. package/src/components/layout/Separator.tsx +29 -0
  185. package/src/components/layout/Sidebar.tsx +171 -0
  186. package/src/components/layout/Stack.test.tsx +41 -0
  187. package/src/components/layout/Stack.tsx +89 -0
  188. package/src/components/layout/glass-surface.css +60 -0
  189. package/src/components/layout/index.ts +18 -0
  190. package/src/components/motion/AnimatedBeam.tsx +159 -0
  191. package/src/components/navigation/Breadcrumb.test.tsx +57 -0
  192. package/src/components/navigation/Breadcrumb.tsx +119 -0
  193. package/src/components/navigation/Breadcrumbs.tsx +221 -0
  194. package/src/components/navigation/Command.tsx +159 -0
  195. package/src/components/navigation/Menubar.tsx +115 -0
  196. package/src/components/navigation/NavLink.tsx +55 -0
  197. package/src/components/navigation/NavigationMenu.tsx +125 -0
  198. package/src/components/navigation/Pagination.tsx +121 -0
  199. package/src/components/navigation/SecondaryNav.tsx +100 -0
  200. package/src/components/navigation/Tabs.test.tsx +47 -0
  201. package/src/components/navigation/Tabs.tsx +60 -0
  202. package/src/components/navigation/TertiaryNav.tsx +90 -0
  203. package/src/components/navigation/index.ts +10 -0
  204. package/src/components/overlays/AlertDialog.test.tsx +69 -0
  205. package/src/components/overlays/AlertDialog.tsx +166 -0
  206. package/src/components/overlays/ContextMenu.tsx +243 -0
  207. package/src/components/overlays/Dialog.test.tsx +79 -0
  208. package/src/components/overlays/Dialog.tsx +158 -0
  209. package/src/components/overlays/Drawer.tsx +128 -0
  210. package/src/components/overlays/Dropdown.tsx +253 -0
  211. package/src/components/overlays/DropdownMenu.tsx +242 -0
  212. package/src/components/overlays/HoverCard.tsx +32 -0
  213. package/src/components/overlays/Modal.tsx +250 -0
  214. package/src/components/overlays/NotificationCenter.tsx +364 -0
  215. package/src/components/overlays/Popover.test.tsx +40 -0
  216. package/src/components/overlays/Popover.tsx +46 -0
  217. package/src/components/overlays/Sheet.tsx +163 -0
  218. package/src/components/overlays/Tooltip.test.tsx +33 -0
  219. package/src/components/overlays/Tooltip.tsx +32 -0
  220. package/src/components/overlays/index.ts +12 -0
  221. package/src/dates.ts +2 -0
  222. package/src/dnd.ts +1 -0
  223. package/src/forms.ts +1 -0
  224. package/src/globals.css +187 -0
  225. package/src/hooks/index.ts +6 -0
  226. package/src/hooks/useForm.ts +247 -0
  227. package/src/hooks/useMotionPreference.test.ts +102 -0
  228. package/src/hooks/useMotionPreference.ts +78 -0
  229. package/src/hooks/useTheme.ts +58 -0
  230. package/src/hooks.ts +9 -0
  231. package/src/index.ts +168 -0
  232. package/src/lib/animations.ts +356 -0
  233. package/src/lib/breadcrumbs.ts +94 -0
  234. package/src/lib/colors.ts +493 -0
  235. package/src/lib/store/customizer.ts +482 -0
  236. package/src/lib/store/index.ts +3 -0
  237. package/src/lib/store/theme.ts +55 -0
  238. package/src/lib/syntax-parser/index.ts +50 -0
  239. package/src/lib/syntax-parser/patterns.ts +64 -0
  240. package/src/lib/syntax-parser/tokenizer.ts +117 -0
  241. package/src/lib/syntax-parser/types.ts +27 -0
  242. package/src/lib/utils.ts +6 -0
  243. package/src/lib/validation.ts +204 -0
  244. package/src/lib/webgl/Color.ts +11 -0
  245. package/src/lib/webgl/Mesh.ts +41 -0
  246. package/src/lib/webgl/Program.ts +118 -0
  247. package/src/lib/webgl/Renderer.ts +51 -0
  248. package/src/lib/webgl/Triangle.ts +27 -0
  249. package/src/lib/webgl/Vec3.ts +18 -0
  250. package/src/lib/webgl/index.ts +13 -0
  251. package/src/nativewind-env.d.ts +1 -0
  252. package/src/providers/ThemeProvider.tsx +461 -0
  253. package/src/providers/index.ts +1 -0
  254. package/src/providers.ts +7 -0
  255. package/src/tables.ts +1 -0
  256. package/src/test/setup.ts +39 -0
  257. package/src/theme.css +158 -0
  258. package/src/tokens.ts +7 -0
  259. package/src/utils.ts +12 -0
  260. package/src/webgl.ts +1 -0
@@ -0,0 +1,2555 @@
1
+ "use client";
2
+
3
+ // ../tokens/src/base.ts
4
+ var baseTokens = {
5
+ /**
6
+ * Spacing scale (based on 4px grid)
7
+ */
8
+ spacing: {
9
+ "0": "0",
10
+ "0.5": "0.125rem",
11
+ // 2px
12
+ "1": "0.25rem",
13
+ // 4px
14
+ "2": "0.5rem",
15
+ // 8px
16
+ "3": "0.75rem",
17
+ // 12px
18
+ "4": "1rem",
19
+ // 16px
20
+ "5": "1.25rem",
21
+ // 20px
22
+ "6": "1.5rem",
23
+ // 24px
24
+ "8": "2rem",
25
+ // 32px
26
+ "10": "2.5rem",
27
+ // 40px
28
+ "12": "3rem",
29
+ // 48px
30
+ "16": "4rem",
31
+ // 64px
32
+ "20": "5rem",
33
+ // 80px
34
+ "24": "6rem",
35
+ // 96px
36
+ "32": "8rem"
37
+ // 128px
38
+ },
39
+ /**
40
+ * Typography scales
41
+ */
42
+ fontSize: {
43
+ "xs": "0.75rem",
44
+ // 12px
45
+ "sm": "0.875rem",
46
+ // 14px
47
+ "base": "1rem",
48
+ // 16px
49
+ "lg": "1.125rem",
50
+ // 18px
51
+ "xl": "1.25rem",
52
+ // 20px
53
+ "2xl": "1.5rem",
54
+ // 24px
55
+ "3xl": "1.875rem",
56
+ // 30px
57
+ "4xl": "2.25rem",
58
+ // 36px
59
+ "5xl": "3rem",
60
+ // 48px
61
+ "6xl": "3.75rem",
62
+ // 60px
63
+ "7xl": "4.5rem",
64
+ // 72px
65
+ "8xl": "6rem"
66
+ // 96px
67
+ },
68
+ fontWeight: {
69
+ light: "300",
70
+ normal: "400",
71
+ medium: "500",
72
+ semibold: "600",
73
+ bold: "700",
74
+ extrabold: "800",
75
+ black: "900"
76
+ },
77
+ lineHeight: {
78
+ none: "1",
79
+ tight: "1.25",
80
+ snug: "1.375",
81
+ normal: "1.5",
82
+ relaxed: "1.625",
83
+ loose: "2"
84
+ },
85
+ /**
86
+ * Border radius
87
+ */
88
+ borderRadius: {
89
+ none: "0",
90
+ sm: "0.125rem",
91
+ // 2px
92
+ DEFAULT: "0.25rem",
93
+ // 4px
94
+ md: "0.375rem",
95
+ // 6px
96
+ lg: "0.5rem",
97
+ // 8px
98
+ xl: "0.75rem",
99
+ // 12px
100
+ "2xl": "1rem",
101
+ // 16px
102
+ "3xl": "1.5rem",
103
+ // 24px
104
+ full: "9999px"
105
+ },
106
+ /**
107
+ * Motion durations (base values - themes can override)
108
+ */
109
+ duration: {
110
+ instant: "0ms",
111
+ fast: "150ms",
112
+ normal: "300ms",
113
+ slow: "500ms",
114
+ slower: "800ms"
115
+ },
116
+ /**
117
+ * Easing curves (base values - themes can override)
118
+ */
119
+ ease: {
120
+ linear: "linear",
121
+ in: "cubic-bezier(0.4, 0, 1, 1)",
122
+ out: "cubic-bezier(0, 0, 0.2, 1)",
123
+ inOut: "cubic-bezier(0.4, 0, 0.2, 1)"
124
+ },
125
+ /**
126
+ * Z-index scale
127
+ */
128
+ zIndex: {
129
+ "auto": "auto",
130
+ "0": "0",
131
+ "10": "10",
132
+ "20": "20",
133
+ "30": "30",
134
+ "40": "40",
135
+ "50": "50",
136
+ dropdown: "1000",
137
+ sticky: "1020",
138
+ fixed: "1030",
139
+ modalBackdrop: "1040",
140
+ modal: "1050",
141
+ popover: "1060",
142
+ tooltip: "1070"
143
+ },
144
+ /**
145
+ * Focus ring configuration
146
+ */
147
+ focus: {
148
+ width: "2px",
149
+ offset: "2px",
150
+ style: "solid"
151
+ }
152
+ };
153
+ var spacing = {
154
+ xs: baseTokens.spacing["1"],
155
+ // 4px — Tight internal padding
156
+ sm: baseTokens.spacing["2"],
157
+ // 8px — Default gap
158
+ md: baseTokens.spacing["4"],
159
+ // 16px — Section padding
160
+ lg: baseTokens.spacing["6"],
161
+ // 24px — Card padding
162
+ xl: baseTokens.spacing["8"],
163
+ // 32px — Section margins
164
+ "2xl": baseTokens.spacing["12"],
165
+ // 48px — Page sections
166
+ "3xl": baseTokens.spacing["16"]
167
+ // 64px — Major divisions
168
+ };
169
+ var typography = {
170
+ fonts: {
171
+ sans: "var(--font-body)",
172
+ serif: "var(--font-heading)",
173
+ mono: "var(--font-mono)"
174
+ },
175
+ sizes: {
176
+ xs: baseTokens.fontSize.xs,
177
+ // 12px — Fine print
178
+ sm: baseTokens.fontSize.sm,
179
+ // 14px — Secondary text
180
+ base: baseTokens.fontSize.base,
181
+ // 16px — Body text
182
+ lg: baseTokens.fontSize.lg,
183
+ // 18px — Lead paragraphs
184
+ xl: baseTokens.fontSize.xl,
185
+ // 20px — Section headers
186
+ "2xl": baseTokens.fontSize["2xl"],
187
+ // 24px — Page headers
188
+ "3xl": baseTokens.fontSize["3xl"]
189
+ // 30px — Hero text
190
+ },
191
+ weights: {
192
+ normal: baseTokens.fontWeight.normal,
193
+ // 400
194
+ medium: baseTokens.fontWeight.medium,
195
+ // 500
196
+ semibold: baseTokens.fontWeight.semibold,
197
+ // 600
198
+ bold: baseTokens.fontWeight.bold
199
+ // 700
200
+ },
201
+ leading: {
202
+ tight: baseTokens.lineHeight.tight,
203
+ // 1.25 — Headings
204
+ normal: baseTokens.lineHeight.normal,
205
+ // 1.5 — Body
206
+ relaxed: baseTokens.lineHeight.relaxed
207
+ // 1.625 — Spacious reading
208
+ }
209
+ };
210
+ var motion = {
211
+ duration: baseTokens.duration,
212
+ easing: {
213
+ default: baseTokens.ease.out,
214
+ // Most transitions
215
+ spring: "cubic-bezier(0.16, 1, 0.3, 1)",
216
+ // Playful interactions
217
+ linear: baseTokens.ease.linear
218
+ // Progress indicators
219
+ }
220
+ };
221
+
222
+ // ../tokens/src/studio.ts
223
+ var studioTokens = {
224
+ light: {
225
+ colors: {
226
+ // Backgrounds
227
+ background: "#ffffff",
228
+ backgroundSecondary: "#fafafa",
229
+ backgroundTertiary: "#f5f5f5",
230
+ // Foregrounds
231
+ foreground: "#0a0a0a",
232
+ foregroundSecondary: "#525252",
233
+ foregroundTertiary: "#a3a3a3",
234
+ // Brand
235
+ primary: "#0a0a0a",
236
+ primaryForeground: "#ffffff",
237
+ secondary: "#f5f5f5",
238
+ secondaryForeground: "#0a0a0a",
239
+ accent: "#0070f3",
240
+ accentForeground: "#ffffff",
241
+ // Borders
242
+ border: "#d4d4d4",
243
+ borderSubtle: "#f5f5f5",
244
+ // States
245
+ hover: "#fafafa",
246
+ active: "#f0f0f0",
247
+ // Link hover states
248
+ linkHover: "#0a0a0a",
249
+ linkHoverForeground: "#ffffff",
250
+ // Semantic
251
+ success: "#00a86b",
252
+ successForeground: "#ffffff",
253
+ warning: "#f59e0b",
254
+ warningForeground: "#ffffff",
255
+ error: "#ef4444",
256
+ errorForeground: "#ffffff",
257
+ info: "#0070f3",
258
+ infoForeground: "#ffffff",
259
+ // Component-specific colors
260
+ card: "#ffffff",
261
+ cardForeground: "#0a0a0a",
262
+ popover: "#ffffff",
263
+ popoverForeground: "#0a0a0a",
264
+ muted: "#f5f5f5",
265
+ mutedForeground: "#737373",
266
+ destructive: "#ef4444",
267
+ destructiveForeground: "#ffffff",
268
+ input: "#d4d4d4",
269
+ ring: "#0a0a0a",
270
+ // Surface is used by various components
271
+ surface: "#fafafa",
272
+ // Glass effects
273
+ glass: "rgba(255, 255, 255, 0.7)",
274
+ glassBorder: "rgba(0, 0, 0, 0.1)"
275
+ },
276
+ effects: {
277
+ blur: {
278
+ sm: "blur(4px)",
279
+ md: "blur(8px)",
280
+ lg: "blur(16px)",
281
+ xl: "blur(24px)"
282
+ },
283
+ shadow: {
284
+ sm: "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
285
+ md: "0 4px 6px -1px rgba(0, 0, 0, 0.1)",
286
+ lg: "0 10px 15px -3px rgba(0, 0, 0, 0.1)",
287
+ xl: "0 20px 25px -5px rgba(0, 0, 0, 0.1)",
288
+ "2xl": "0 25px 50px -12px rgba(0, 0, 0, 0.25)"
289
+ }
290
+ }
291
+ },
292
+ dark: {
293
+ colors: {
294
+ // Backgrounds
295
+ background: "#000000",
296
+ backgroundSecondary: "#171717",
297
+ backgroundTertiary: "#262626",
298
+ // Foregrounds
299
+ foreground: "#fafafa",
300
+ foregroundSecondary: "#a3a3a3",
301
+ foregroundTertiary: "#858585",
302
+ // Brand
303
+ primary: "#ffffff",
304
+ primaryForeground: "#0a0a0a",
305
+ secondary: "#262626",
306
+ secondaryForeground: "#fafafa",
307
+ accent: "#0090ff",
308
+ accentForeground: "#ffffff",
309
+ // Borders
310
+ border: "#404040",
311
+ borderSubtle: "#1a1a1a",
312
+ // States
313
+ hover: "#1a1a1a",
314
+ active: "#262626",
315
+ // Link hover states
316
+ linkHover: "#ffffff",
317
+ linkHoverForeground: "#0a0a0a",
318
+ // Semantic
319
+ success: "#10b981",
320
+ successForeground: "#ffffff",
321
+ warning: "#f59e0b",
322
+ warningForeground: "#ffffff",
323
+ error: "#ef4444",
324
+ errorForeground: "#ffffff",
325
+ info: "#0090ff",
326
+ infoForeground: "#ffffff",
327
+ // Component-specific colors
328
+ card: "#0a0a0a",
329
+ cardForeground: "#fafafa",
330
+ popover: "#0a0a0a",
331
+ popoverForeground: "#fafafa",
332
+ muted: "#262626",
333
+ mutedForeground: "#a3a3a3",
334
+ destructive: "#ef4444",
335
+ destructiveForeground: "#ffffff",
336
+ input: "#404040",
337
+ ring: "#d4d4d4",
338
+ // Surface is used by various components
339
+ surface: "#171717",
340
+ // Glass effects
341
+ glass: "rgba(0, 0, 0, 0.7)",
342
+ glassBorder: "rgba(255, 255, 255, 0.1)"
343
+ },
344
+ effects: {
345
+ blur: {
346
+ sm: "blur(4px)",
347
+ md: "blur(8px)",
348
+ lg: "blur(16px)",
349
+ xl: "blur(24px)"
350
+ },
351
+ shadow: {
352
+ sm: "0 1px 2px 0 rgba(0, 0, 0, 0.3)",
353
+ md: "0 4px 6px -1px rgba(0, 0, 0, 0.5)",
354
+ lg: "0 10px 15px -3px rgba(0, 0, 0, 0.6)",
355
+ xl: "0 20px 25px -5px rgba(0, 0, 0, 0.7)",
356
+ "2xl": "0 25px 50px -12px rgba(0, 0, 0, 0.8)"
357
+ }
358
+ }
359
+ },
360
+ /**
361
+ * Motion personality for Studio theme
362
+ */
363
+ motion: {
364
+ // Duration scales based on motion slider (0-10)
365
+ getDuration: (intensity) => {
366
+ if (intensity === 0) return "0ms";
367
+ const ms = 150 + (intensity - 1) * 40;
368
+ return `${ms}ms`;
369
+ },
370
+ // Easing curves - smooth and professional
371
+ ease: {
372
+ default: "cubic-bezier(0.4, 0, 0.2, 1)",
373
+ // ease-in-out
374
+ in: "cubic-bezier(0.4, 0, 1, 1)",
375
+ out: "cubic-bezier(0, 0, 0.2, 1)",
376
+ spring: "cubic-bezier(0.16, 1, 0.3, 1)"
377
+ // Smooth spring
378
+ }
379
+ },
380
+ /**
381
+ * Interaction tokens for Studio theme
382
+ * Subtle, professional — minimal overlay, gentle scale
383
+ */
384
+ interactions: {
385
+ hover: { overlayColor: { light: "#000000", dark: "#ffffff" }, opacity: 0.06 },
386
+ active: { scale: 0.98 },
387
+ focus: { ringWidth: "2px", ringOffset: "2px" },
388
+ disabled: { opacity: 0.5 }
389
+ },
390
+ typography: {
391
+ heading: {
392
+ fontFamily: "var(--font-geist-sans)",
393
+ fontWeight: "600",
394
+ letterSpacing: "-0.02em"
395
+ },
396
+ body: {
397
+ fontFamily: "var(--font-geist-sans)",
398
+ fontWeight: "400",
399
+ letterSpacing: "0"
400
+ },
401
+ mono: {
402
+ fontFamily: "var(--font-geist-mono)",
403
+ fontWeight: "400",
404
+ letterSpacing: "0"
405
+ }
406
+ }
407
+ };
408
+
409
+ // ../tokens/src/terra.ts
410
+ var terraTokens = {
411
+ light: {
412
+ colors: {
413
+ // Warm, earthy backgrounds
414
+ background: "#faf8f5",
415
+ backgroundSecondary: "#f5f1eb",
416
+ backgroundTertiary: "#ede8e0",
417
+ // Warm neutrals for text
418
+ foreground: "#2d2823",
419
+ foregroundSecondary: "#5a524a",
420
+ foregroundTertiary: "#8a7f72",
421
+ // Muted sage green as primary
422
+ primary: "#7a9b7f",
423
+ primaryForeground: "#faf8f5",
424
+ primaryHover: "#6a8b6f",
425
+ // Secondary - warm stone
426
+ secondary: "#ede8e0",
427
+ secondaryForeground: "#2d2823",
428
+ // Warm terracotta accent
429
+ accent: "#c17a5f",
430
+ accentForeground: "#faf8f5",
431
+ accentHover: "#b16a4f",
432
+ // Semantic colors with muted, organic tones
433
+ success: "#6b8e6f",
434
+ successForeground: "#faf8f5",
435
+ warning: "#d4a574",
436
+ warningForeground: "#2d2823",
437
+ error: "#c17a5f",
438
+ errorForeground: "#faf8f5",
439
+ info: "#8b9dc3",
440
+ infoForeground: "#faf8f5",
441
+ // Borders - warm subtle
442
+ border: "#e0d8cf",
443
+ borderSubtle: "#ede8e0",
444
+ // States
445
+ hover: "#f5f1eb",
446
+ active: "#ede8e0",
447
+ // Link hover states - Muted sage green
448
+ linkHover: "#7a9b7f",
449
+ linkHoverForeground: "#faf8f5",
450
+ // Soft glass effects
451
+ glass: "rgba(250, 248, 245, 0.85)",
452
+ glassBorder: "rgba(122, 155, 127, 0.15)"
453
+ },
454
+ effects: {
455
+ blur: {
456
+ sm: "blur(6px)",
457
+ md: "blur(12px)",
458
+ lg: "blur(20px)",
459
+ xl: "blur(32px)"
460
+ },
461
+ shadow: {
462
+ sm: "0 2px 4px 0 rgba(45, 40, 35, 0.06)",
463
+ md: "0 4px 8px -2px rgba(45, 40, 35, 0.08)",
464
+ lg: "0 8px 16px -4px rgba(45, 40, 35, 0.12)",
465
+ xl: "0 16px 32px -8px rgba(45, 40, 35, 0.16)",
466
+ "2xl": "0 24px 48px -12px rgba(45, 40, 35, 0.20)"
467
+ }
468
+ }
469
+ },
470
+ dark: {
471
+ colors: {
472
+ // Deep forest backgrounds
473
+ background: "#1a1614",
474
+ backgroundSecondary: "#252220",
475
+ backgroundTertiary: "#2f2b28",
476
+ // Warm light text
477
+ foreground: "#f5f1eb",
478
+ foregroundSecondary: "#c7bfb5",
479
+ foregroundTertiary: "#8a7f72",
480
+ // Brighter sage for dark mode
481
+ primary: "#a8c5ad",
482
+ primaryForeground: "#1a1614",
483
+ primaryHover: "#b8d5bd",
484
+ // Secondary - lighter warm stone
485
+ secondary: "#2f2b28",
486
+ secondaryForeground: "#f5f1eb",
487
+ // Warm peachy accent for dark
488
+ accent: "#e5a78a",
489
+ accentForeground: "#1a1614",
490
+ accentHover: "#f5b79a",
491
+ // Semantic colors adjusted for dark
492
+ success: "#95b89a",
493
+ successForeground: "#1a1614",
494
+ warning: "#e5c59a",
495
+ warningForeground: "#1a1614",
496
+ error: "#e5a78a",
497
+ errorForeground: "#1a1614",
498
+ info: "#a8b5d5",
499
+ infoForeground: "#1a1614",
500
+ // Borders
501
+ border: "#3a3530",
502
+ borderSubtle: "#2f2b28",
503
+ // States
504
+ hover: "#252220",
505
+ active: "#2f2b28",
506
+ // Link hover states - Brighter sage for dark mode
507
+ linkHover: "#a8c5ad",
508
+ linkHoverForeground: "#1a1614",
509
+ // Dark glass effects
510
+ glass: "rgba(26, 22, 20, 0.85)",
511
+ glassBorder: "rgba(168, 197, 173, 0.2)"
512
+ },
513
+ effects: {
514
+ blur: {
515
+ sm: "blur(6px)",
516
+ md: "blur(12px)",
517
+ lg: "blur(20px)",
518
+ xl: "blur(32px)"
519
+ },
520
+ shadow: {
521
+ sm: "0 2px 4px 0 rgba(0, 0, 0, 0.3)",
522
+ md: "0 4px 8px -2px rgba(0, 0, 0, 0.4)",
523
+ lg: "0 8px 16px -4px rgba(0, 0, 0, 0.5)",
524
+ xl: "0 16px 32px -8px rgba(0, 0, 0, 0.6)",
525
+ "2xl": "0 24px 48px -12px rgba(0, 0, 0, 0.7)"
526
+ }
527
+ }
528
+ },
529
+ motion: {
530
+ getDuration: (intensity) => {
531
+ if (intensity === 0) return "0ms";
532
+ const ms = 300 + (intensity - 1) * 60;
533
+ return `${ms}ms`;
534
+ },
535
+ ease: {
536
+ default: "cubic-bezier(0.33, 1, 0.68, 1)",
537
+ // Organic, flowing
538
+ in: "cubic-bezier(0.4, 0, 1, 1)",
539
+ out: "cubic-bezier(0, 0, 0.2, 1)",
540
+ spring: "cubic-bezier(0.16, 1, 0.3, 1)"
541
+ }
542
+ },
543
+ /**
544
+ * Interaction tokens for Terra theme
545
+ * Warm, organic — earthy overlay tones, softer scale
546
+ */
547
+ interactions: {
548
+ hover: { overlayColor: { light: "#2d2823", dark: "#f5f1eb" }, opacity: 0.07 },
549
+ active: { scale: 0.97 },
550
+ focus: { ringWidth: "2px", ringOffset: "2px" },
551
+ disabled: { opacity: 0.5 }
552
+ },
553
+ typography: {
554
+ heading: {
555
+ fontFamily: "var(--font-terra-serif)",
556
+ // Lora serif
557
+ fontWeight: "600",
558
+ letterSpacing: "-0.01em"
559
+ },
560
+ body: {
561
+ fontFamily: "var(--font-terra-sans)",
562
+ // Instrument Sans
563
+ fontWeight: "400",
564
+ letterSpacing: "0"
565
+ },
566
+ mono: {
567
+ fontFamily: "var(--font-terra-mono)",
568
+ fontWeight: "400",
569
+ letterSpacing: "0"
570
+ }
571
+ }
572
+ };
573
+
574
+ // ../tokens/src/volt.ts
575
+ var voltTokens = {
576
+ light: {
577
+ colors: {
578
+ // Bright, punchy backgrounds
579
+ background: "#ffffff",
580
+ backgroundSecondary: "#f8f9fb",
581
+ backgroundTertiary: "#f0f2f5",
582
+ // Sharp contrast text
583
+ foreground: "#0a0a0a",
584
+ foregroundSecondary: "#4a4a4a",
585
+ foregroundTertiary: "#8a8a8a",
586
+ // Electric blue primary (WCAG AA compliant)
587
+ primary: "#0066ff",
588
+ primaryForeground: "#ffffff",
589
+ primaryHover: "#0052cc",
590
+ // Secondary - cool gray
591
+ secondary: "#f0f2f5",
592
+ secondaryForeground: "#0a0a0a",
593
+ // Vibrant cyan accent
594
+ accent: "#00d9ff",
595
+ accentForeground: "#0a0a0a",
596
+ accentHover: "#00c3e6",
597
+ // Bold semantic colors
598
+ success: "#00cc66",
599
+ successForeground: "#ffffff",
600
+ warning: "#ffaa00",
601
+ warningForeground: "#0a0a0a",
602
+ error: "#ff3366",
603
+ errorForeground: "#ffffff",
604
+ info: "#3399ff",
605
+ infoForeground: "#ffffff",
606
+ // Borders
607
+ border: "#e0e4ea",
608
+ borderSubtle: "#f0f2f5",
609
+ // States
610
+ hover: "#f8f9fb",
611
+ active: "#f0f2f5",
612
+ // Link hover states - Electric blue with high contrast
613
+ linkHover: "#0066ff",
614
+ linkHoverForeground: "#ffffff",
615
+ // Crisp glass effects
616
+ glass: "rgba(255, 255, 255, 0.8)",
617
+ glassBorder: "rgba(0, 102, 255, 0.2)"
618
+ },
619
+ effects: {
620
+ blur: {
621
+ sm: "blur(8px)",
622
+ md: "blur(16px)",
623
+ lg: "blur(32px)",
624
+ xl: "blur(48px)"
625
+ },
626
+ shadow: {
627
+ sm: "0 0 8px rgba(0, 102, 255, 0.15)",
628
+ md: "0 0 16px rgba(0, 102, 255, 0.2)",
629
+ lg: "0 0 24px rgba(0, 102, 255, 0.25)",
630
+ xl: "0 0 32px rgba(0, 102, 255, 0.3)",
631
+ "2xl": "0 0 48px rgba(0, 102, 255, 0.4)"
632
+ }
633
+ }
634
+ },
635
+ dark: {
636
+ colors: {
637
+ // Pure black cyberpunk background
638
+ background: "#000000",
639
+ backgroundSecondary: "#0a0a0a",
640
+ backgroundTertiary: "#141414",
641
+ // Bright white text
642
+ foreground: "#ffffff",
643
+ foregroundSecondary: "#b3b3b3",
644
+ foregroundTertiary: "#666666",
645
+ // Neon blue primary
646
+ primary: "#0099ff",
647
+ primaryForeground: "#000000",
648
+ primaryHover: "#00aaff",
649
+ // Secondary - dark gray
650
+ secondary: "#141414",
651
+ secondaryForeground: "#ffffff",
652
+ // Neon cyan accent
653
+ accent: "#00ffff",
654
+ accentForeground: "#000000",
655
+ accentHover: "#33ffff",
656
+ // Neon semantic colors
657
+ success: "#00ff99",
658
+ successForeground: "#000000",
659
+ warning: "#ffcc00",
660
+ warningForeground: "#000000",
661
+ error: "#ff0066",
662
+ errorForeground: "#ffffff",
663
+ info: "#66ccff",
664
+ infoForeground: "#000000",
665
+ // Borders
666
+ border: "#1a1a1a",
667
+ borderSubtle: "#141414",
668
+ // States
669
+ hover: "#0a0a0a",
670
+ active: "#141414",
671
+ // Link hover states - Neon cyan (high luma)
672
+ linkHover: "#00ffff",
673
+ linkHoverForeground: "#000000",
674
+ // Dark glass with glow
675
+ glass: "rgba(0, 0, 0, 0.8)",
676
+ glassBorder: "rgba(0, 153, 255, 0.3)"
677
+ },
678
+ effects: {
679
+ blur: {
680
+ sm: "blur(8px)",
681
+ md: "blur(16px)",
682
+ lg: "blur(32px)",
683
+ xl: "blur(48px)"
684
+ },
685
+ shadow: {
686
+ sm: "0 0 12px rgba(0, 153, 255, 0.4)",
687
+ md: "0 0 20px rgba(0, 153, 255, 0.5)",
688
+ lg: "0 0 32px rgba(0, 153, 255, 0.6)",
689
+ xl: "0 0 48px rgba(0, 153, 255, 0.7)",
690
+ "2xl": "0 0 64px rgba(0, 153, 255, 0.8)"
691
+ }
692
+ }
693
+ },
694
+ motion: {
695
+ getDuration: (intensity) => {
696
+ if (intensity === 0) return "0ms";
697
+ const ms = 100 + (intensity - 1) * 25;
698
+ return `${ms}ms`;
699
+ },
700
+ ease: {
701
+ default: "cubic-bezier(0.16, 1, 0.3, 1)",
702
+ // Snappy spring
703
+ in: "cubic-bezier(0.4, 0, 1, 1)",
704
+ out: "cubic-bezier(0, 0, 0.2, 1)",
705
+ spring: "cubic-bezier(0.68, -0.55, 0.27, 1.55)"
706
+ // Bouncy
707
+ }
708
+ },
709
+ /**
710
+ * Interaction tokens for Volt theme
711
+ * Electric, brand-tinted — blue overlay, punchy scale
712
+ */
713
+ interactions: {
714
+ hover: { overlayColor: { light: "#0066ff", dark: "#0099ff" }, opacity: 0.1 },
715
+ active: { scale: 0.96 },
716
+ focus: { ringWidth: "2px", ringOffset: "2px" },
717
+ disabled: { opacity: 0.5 }
718
+ },
719
+ typography: {
720
+ heading: {
721
+ fontFamily: "var(--font-volt-sans)",
722
+ // Space Grotesk
723
+ fontWeight: "700",
724
+ // Bold
725
+ letterSpacing: "-0.03em"
726
+ },
727
+ body: {
728
+ fontFamily: "var(--font-volt-sans)",
729
+ fontWeight: "400",
730
+ letterSpacing: "0"
731
+ },
732
+ mono: {
733
+ fontFamily: "var(--font-volt-mono)",
734
+ // Fira Code
735
+ fontWeight: "400",
736
+ letterSpacing: "0"
737
+ }
738
+ }
739
+ };
740
+
741
+ // ../tokens/src/speedboat.ts
742
+ var speedboatTokens = {
743
+ light: {
744
+ colors: {
745
+ // Backgrounds
746
+ background: "#FFFFFF",
747
+ backgroundSecondary: "#F8F8F8",
748
+ // grey50
749
+ backgroundTertiary: "#ECECEC",
750
+ // grey100
751
+ // Foregrounds
752
+ foreground: "#212121",
753
+ // grey900 — ContentPrimary
754
+ foregroundSecondary: "#5D5D5D",
755
+ // grey700 — ContentSecondary
756
+ foregroundTertiary: "#8891A7",
757
+ // grey500 — muted icons
758
+ // Brand
759
+ primary: "#346BEA",
760
+ // accent blue
761
+ primaryForeground: "#FFFFFF",
762
+ secondary: "#EBF0FD",
763
+ // blue100 — chip bg
764
+ secondaryForeground: "#1E49AA",
765
+ // blue600 — chip text
766
+ accent: "#346BEA",
767
+ // same as primary for Speedboat
768
+ accentForeground: "#FFFFFF",
769
+ // Borders
770
+ border: "#ECECEC",
771
+ // grey100 — BorderPrimary
772
+ borderSubtle: "#F8F8F8",
773
+ // grey50
774
+ // States
775
+ hover: "#F8F8F8",
776
+ // grey50
777
+ active: "#ECECEC",
778
+ // grey100
779
+ // Link hover states
780
+ linkHover: "#1E49AA",
781
+ // blue600
782
+ linkHoverForeground: "#FFFFFF",
783
+ // Semantic
784
+ success: "#2E7D32",
785
+ successForeground: "#FFFFFF",
786
+ warning: "#E65100",
787
+ warningForeground: "#FFFFFF",
788
+ error: "#C62828",
789
+ errorForeground: "#FFFFFF",
790
+ info: "#346BEA",
791
+ infoForeground: "#FFFFFF",
792
+ // Component-specific colors
793
+ card: "#FFFFFF",
794
+ cardForeground: "#212121",
795
+ popover: "#FFFFFF",
796
+ popoverForeground: "#212121",
797
+ muted: "#F8F8F8",
798
+ // grey50
799
+ mutedForeground: "#8891A7",
800
+ // grey500
801
+ destructive: "#C62828",
802
+ // error red
803
+ destructiveForeground: "#FFFFFF",
804
+ input: "#DFDFDF",
805
+ // grey200 — input borders
806
+ ring: "#346BEA",
807
+ // accent blue for focus rings
808
+ // Surface
809
+ surface: "#F8F8F8",
810
+ // grey50
811
+ // Glass effects
812
+ glass: "rgba(255, 255, 255, 0.85)",
813
+ glassBorder: "rgba(0, 0, 0, 0.08)"
814
+ },
815
+ effects: {
816
+ blur: {
817
+ sm: "blur(4px)",
818
+ md: "blur(8px)",
819
+ lg: "blur(16px)",
820
+ xl: "blur(24px)"
821
+ },
822
+ shadow: {
823
+ sm: "0 1px 2px rgba(0, 0, 0, 0.05)",
824
+ md: "0 2px 8px rgba(0, 0, 0, 0.08)",
825
+ lg: "0 4px 16px rgba(0, 0, 0, 0.10)",
826
+ xl: "0 8px 24px rgba(0, 0, 0, 0.12)",
827
+ "2xl": "0 16px 48px rgba(0, 0, 0, 0.16)"
828
+ }
829
+ }
830
+ },
831
+ dark: {
832
+ colors: {
833
+ // Backgrounds — derived dark palette
834
+ background: "#0F1117",
835
+ backgroundSecondary: "#1A1C25",
836
+ backgroundTertiary: "#252833",
837
+ // Foregrounds
838
+ foreground: "#F0F0F2",
839
+ foregroundSecondary: "#A0A3B1",
840
+ foregroundTertiary: "#6B6F80",
841
+ // Brand — keep the accent blue, slightly brighten for dark bg
842
+ primary: "#4A7FF7",
843
+ primaryForeground: "#FFFFFF",
844
+ secondary: "#1E2540",
845
+ secondaryForeground: "#A6C1FF",
846
+ // blue300
847
+ accent: "#4A7FF7",
848
+ accentForeground: "#FFFFFF",
849
+ // Borders
850
+ border: "#2E3140",
851
+ borderSubtle: "#1A1C25",
852
+ // States
853
+ hover: "#1A1C25",
854
+ active: "#252833",
855
+ // Link hover states
856
+ linkHover: "#A6C1FF",
857
+ // blue300 — lighter for dark mode
858
+ linkHoverForeground: "#0F1117",
859
+ // Semantic — slightly brighter versions for dark bg
860
+ success: "#4CAF50",
861
+ successForeground: "#FFFFFF",
862
+ warning: "#FF8A50",
863
+ warningForeground: "#FFFFFF",
864
+ error: "#EF5350",
865
+ errorForeground: "#FFFFFF",
866
+ info: "#4A7FF7",
867
+ infoForeground: "#FFFFFF",
868
+ // Component-specific colors
869
+ card: "#1A1C25",
870
+ cardForeground: "#F0F0F2",
871
+ popover: "#1A1C25",
872
+ popoverForeground: "#F0F0F2",
873
+ muted: "#252833",
874
+ mutedForeground: "#6B6F80",
875
+ destructive: "#EF5350",
876
+ destructiveForeground: "#FFFFFF",
877
+ input: "#2E3140",
878
+ ring: "#4A7FF7",
879
+ // Surface
880
+ surface: "#1A1C25",
881
+ // Glass effects
882
+ glass: "rgba(15, 17, 23, 0.85)",
883
+ glassBorder: "rgba(255, 255, 255, 0.08)"
884
+ },
885
+ effects: {
886
+ blur: {
887
+ sm: "blur(4px)",
888
+ md: "blur(8px)",
889
+ lg: "blur(16px)",
890
+ xl: "blur(24px)"
891
+ },
892
+ shadow: {
893
+ sm: "0 1px 2px rgba(0, 0, 0, 0.20)",
894
+ md: "0 2px 8px rgba(0, 0, 0, 0.30)",
895
+ lg: "0 4px 16px rgba(0, 0, 0, 0.35)",
896
+ xl: "0 8px 24px rgba(0, 0, 0, 0.40)",
897
+ "2xl": "0 16px 48px rgba(0, 0, 0, 0.50)"
898
+ }
899
+ }
900
+ },
901
+ /**
902
+ * Motion personality for Speedboat theme
903
+ * Professional and snappy — slightly faster than Studio
904
+ */
905
+ motion: {
906
+ getDuration: (intensity) => {
907
+ if (intensity === 0) return "0ms";
908
+ const ms = 120 + (intensity - 1) * 35;
909
+ return `${ms}ms`;
910
+ },
911
+ ease: {
912
+ default: "cubic-bezier(0.4, 0, 0.2, 1)",
913
+ in: "cubic-bezier(0.4, 0, 1, 1)",
914
+ out: "cubic-bezier(0, 0, 0.2, 1)",
915
+ spring: "cubic-bezier(0.16, 1, 0.3, 1)"
916
+ }
917
+ },
918
+ /**
919
+ * Interaction tokens for Speedboat theme
920
+ * Professional, clean — matches Studio's subtle feel
921
+ */
922
+ interactions: {
923
+ hover: { overlayColor: { light: "#000000", dark: "#ffffff" }, opacity: 0.06 },
924
+ active: { scale: 0.98 },
925
+ focus: { ringWidth: "2px", ringOffset: "2px" },
926
+ disabled: { opacity: 0.5 }
927
+ },
928
+ /**
929
+ * Typography for Speedboat theme
930
+ * Montserrat headings + Roboto body — Moloco brand fonts
931
+ */
932
+ typography: {
933
+ heading: {
934
+ fontFamily: "var(--font-montserrat)",
935
+ fontWeight: "700",
936
+ letterSpacing: "-0.01em"
937
+ },
938
+ body: {
939
+ fontFamily: "var(--font-roboto)",
940
+ fontWeight: "400",
941
+ letterSpacing: "0"
942
+ },
943
+ mono: {
944
+ fontFamily: "var(--font-geist-mono)",
945
+ fontWeight: "400",
946
+ letterSpacing: "0"
947
+ }
948
+ }
949
+ };
950
+
951
+ // ../tokens/src/typography.ts
952
+ var fontFamilies = {
953
+ studio: {
954
+ heading: "Outfit",
955
+ body: "Manrope",
956
+ mono: "Fira Code",
957
+ description: "Modern geometric sans-serif with clean readability",
958
+ usage: {
959
+ heading: "Headlines, titles, emphasis",
960
+ body: "Paragraphs, UI text, readable content",
961
+ mono: "Code blocks, technical content"
962
+ }
963
+ },
964
+ terra: {
965
+ heading: "Lora",
966
+ // Serif for elegance
967
+ body: "Instrument Sans",
968
+ serif: "Lora",
969
+ // Explicit serif reference
970
+ sans: "Instrument Sans",
971
+ // Explicit sans reference
972
+ mono: "Fira Code",
973
+ description: "Elegant serif headings with modern sans body",
974
+ usage: {
975
+ heading: "Elegant headings, article titles",
976
+ body: "Long-form content, UI text",
977
+ serif: "Pull quotes, emphasis",
978
+ sans: "UI elements, captions",
979
+ mono: "Code blocks, technical content"
980
+ }
981
+ },
982
+ volt: {
983
+ heading: "Space Grotesk",
984
+ body: "Space Grotesk",
985
+ sans: "Space Grotesk",
986
+ mono: "Fira Code",
987
+ description: "Tech-forward, consistent geometric throughout",
988
+ usage: {
989
+ heading: "All headlines",
990
+ body: "All body text (unified typography)",
991
+ sans: "All sans-serif needs",
992
+ mono: "Code blocks, technical content"
993
+ }
994
+ },
995
+ speedboat: {
996
+ heading: "Montserrat",
997
+ body: "Roboto",
998
+ sans: "Roboto",
999
+ mono: "Fira Code",
1000
+ description: "Moloco brand typography \u2014 Montserrat headings with Roboto body",
1001
+ usage: {
1002
+ heading: "Brand headings, section titles",
1003
+ body: "UI text, data labels, form content",
1004
+ sans: "All sans-serif needs",
1005
+ mono: "Code blocks, technical content"
1006
+ }
1007
+ }
1008
+ };
1009
+ var fontLoadingConfig = {
1010
+ studio: {
1011
+ heading: { family: "Outfit", weights: ["300", "400", "500", "600", "700", "800"] },
1012
+ body: { family: "Manrope", weights: ["300", "400", "500", "600", "700", "800"] },
1013
+ mono: { family: "Fira Code", weights: ["400", "500", "600", "700"] }
1014
+ },
1015
+ terra: {
1016
+ heading: { family: "Lora", weights: ["400", "500", "600", "700"] },
1017
+ body: { family: "Instrument Sans", weights: ["400", "500", "600", "700"] },
1018
+ mono: { family: "Fira Code", weights: ["400", "500", "600", "700"] }
1019
+ },
1020
+ volt: {
1021
+ heading: { family: "Space Grotesk", weights: ["300", "400", "500", "600", "700"] },
1022
+ body: { family: "Space Grotesk", weights: ["300", "400", "500", "600", "700"] },
1023
+ mono: { family: "Fira Code", weights: ["400", "500", "600", "700"] }
1024
+ }
1025
+ };
1026
+ var fontSizes = {
1027
+ // Body text scale
1028
+ xs: { base: "0.75rem", mobile: "0.75rem" },
1029
+ // 12px
1030
+ sm: { base: "0.875rem", mobile: "0.875rem" },
1031
+ // 14px
1032
+ base: { base: "1rem", mobile: "1rem" },
1033
+ // 16px
1034
+ lg: { base: "1.125rem", mobile: "1rem" },
1035
+ // 18px / 16px mobile
1036
+ xl: { base: "1.25rem", mobile: "1.125rem" },
1037
+ // 20px / 18px mobile
1038
+ "2xl": { base: "1.5rem", mobile: "1.25rem" },
1039
+ // 24px / 20px mobile
1040
+ "3xl": { base: "1.875rem", mobile: "1.5rem" },
1041
+ // 30px / 24px mobile
1042
+ // Heading scale (h6 → h1)
1043
+ "4xl": { base: "2.25rem", mobile: "1.875rem" },
1044
+ // 36px / 30px - h3
1045
+ "5xl": { base: "3rem", mobile: "2.25rem" },
1046
+ // 48px / 36px - h2
1047
+ "6xl": { base: "3.75rem", mobile: "2.5rem" },
1048
+ // 60px / 40px - h1
1049
+ "7xl": { base: "4.5rem", mobile: "3rem" },
1050
+ // 72px / 48px - Display
1051
+ "8xl": { base: "6rem", mobile: "3.75rem" },
1052
+ // 96px / 60px - Hero
1053
+ "9xl": { base: "8rem", mobile: "4.5rem" }
1054
+ // 128px / 72px - Ultra
1055
+ };
1056
+ var semanticSizes = {
1057
+ "heading-1": "hero",
1058
+ "heading-2": "5xl",
1059
+ "heading-3": "4xl",
1060
+ "heading-4": "2xl",
1061
+ "heading-5": "xl",
1062
+ "heading-6": "lg",
1063
+ "body-large": "lg",
1064
+ "body": "base",
1065
+ "body-small": "sm",
1066
+ "caption": "xs"
1067
+ };
1068
+ var fontWeights = {
1069
+ thin: "100",
1070
+ extralight: "200",
1071
+ light: "300",
1072
+ normal: "400",
1073
+ medium: "500",
1074
+ semibold: "600",
1075
+ bold: "700",
1076
+ extrabold: "800",
1077
+ black: "900"
1078
+ };
1079
+ var semanticWeights = {
1080
+ heading: "bold",
1081
+ // Default heading weight
1082
+ "heading-light": "semibold",
1083
+ "heading-heavy": "extrabold",
1084
+ body: "normal",
1085
+ // Default body weight
1086
+ "body-emphasis": "medium",
1087
+ "body-strong": "semibold",
1088
+ caption: "normal"
1089
+ };
1090
+ var lineHeights = {
1091
+ none: "1",
1092
+ tight: "1.25",
1093
+ snug: "1.375",
1094
+ normal: "1.5",
1095
+ relaxed: "1.625",
1096
+ loose: "1.75",
1097
+ extraloose: "2"
1098
+ };
1099
+ var semanticLineHeights = {
1100
+ heading: "tight",
1101
+ "heading-display": "none",
1102
+ // Very tight for large display text
1103
+ body: "normal",
1104
+ "body-relaxed": "relaxed",
1105
+ caption: "snug"
1106
+ };
1107
+ var letterSpacing = {
1108
+ tighter: "-0.05em",
1109
+ tight: "-0.025em",
1110
+ normal: "0",
1111
+ wide: "0.025em",
1112
+ wider: "0.05em",
1113
+ widest: "0.1em"
1114
+ };
1115
+ var semanticLetterSpacing = {
1116
+ heading: "tight",
1117
+ "heading-display": "tighter",
1118
+ body: "normal",
1119
+ "small-caps": "wider",
1120
+ "all-caps": "widest"
1121
+ };
1122
+ var typePresets = {
1123
+ "display-large": {
1124
+ size: fontSizes["8xl"],
1125
+ weight: fontWeights.bold,
1126
+ lineHeight: lineHeights.none,
1127
+ letterSpacing: letterSpacing.tighter,
1128
+ description: "Large hero text, landing pages"
1129
+ },
1130
+ "display": {
1131
+ size: fontSizes["7xl"],
1132
+ weight: fontWeights.bold,
1133
+ lineHeight: lineHeights.tight,
1134
+ letterSpacing: letterSpacing.tight,
1135
+ description: "Hero sections, major headings"
1136
+ },
1137
+ "heading-1": {
1138
+ size: fontSizes["6xl"],
1139
+ weight: fontWeights.bold,
1140
+ lineHeight: lineHeights.tight,
1141
+ letterSpacing: letterSpacing.tight,
1142
+ description: "Page titles, h1"
1143
+ },
1144
+ "heading-2": {
1145
+ size: fontSizes["5xl"],
1146
+ weight: fontWeights.bold,
1147
+ lineHeight: lineHeights.tight,
1148
+ letterSpacing: letterSpacing.normal,
1149
+ description: "Section titles, h2"
1150
+ },
1151
+ "heading-3": {
1152
+ size: fontSizes["4xl"],
1153
+ weight: fontWeights.semibold,
1154
+ lineHeight: lineHeights.snug,
1155
+ letterSpacing: letterSpacing.normal,
1156
+ description: "Subsection titles, h3"
1157
+ },
1158
+ "heading-4": {
1159
+ size: fontSizes["2xl"],
1160
+ weight: fontWeights.semibold,
1161
+ lineHeight: lineHeights.snug,
1162
+ letterSpacing: letterSpacing.normal,
1163
+ description: "Component titles, h4"
1164
+ },
1165
+ "heading-5": {
1166
+ size: fontSizes.xl,
1167
+ weight: fontWeights.medium,
1168
+ lineHeight: lineHeights.normal,
1169
+ letterSpacing: letterSpacing.normal,
1170
+ description: "Small headings, h5"
1171
+ },
1172
+ "heading-6": {
1173
+ size: fontSizes.lg,
1174
+ weight: fontWeights.medium,
1175
+ lineHeight: lineHeights.normal,
1176
+ letterSpacing: letterSpacing.normal,
1177
+ description: "Tiny headings, h6"
1178
+ },
1179
+ "body-large": {
1180
+ size: fontSizes.lg,
1181
+ weight: fontWeights.normal,
1182
+ lineHeight: lineHeights.relaxed,
1183
+ letterSpacing: letterSpacing.normal,
1184
+ description: "Lead paragraphs, intro text"
1185
+ },
1186
+ "body": {
1187
+ size: fontSizes.base,
1188
+ weight: fontWeights.normal,
1189
+ lineHeight: lineHeights.normal,
1190
+ letterSpacing: letterSpacing.normal,
1191
+ description: "Default body text"
1192
+ },
1193
+ "body-small": {
1194
+ size: fontSizes.sm,
1195
+ weight: fontWeights.normal,
1196
+ lineHeight: lineHeights.normal,
1197
+ letterSpacing: letterSpacing.normal,
1198
+ description: "Small body text, fine print"
1199
+ },
1200
+ "caption": {
1201
+ size: fontSizes.xs,
1202
+ weight: fontWeights.normal,
1203
+ lineHeight: lineHeights.snug,
1204
+ letterSpacing: letterSpacing.wide,
1205
+ description: "Captions, labels, metadata"
1206
+ },
1207
+ "overline": {
1208
+ size: fontSizes.xs,
1209
+ weight: fontWeights.semibold,
1210
+ lineHeight: lineHeights.normal,
1211
+ letterSpacing: letterSpacing.widest,
1212
+ description: "Eyebrows, categories, all-caps labels"
1213
+ }
1214
+ };
1215
+ function getFontVariable(theme, type) {
1216
+ return `--font-${theme}-${type}`;
1217
+ }
1218
+ function getThemeFontVariables(theme) {
1219
+ const fonts = fontFamilies[theme];
1220
+ const vars = {};
1221
+ Object.entries(fonts).forEach(([key, value]) => {
1222
+ if (typeof value === "string") {
1223
+ vars[`--font-${theme}-${key}`] = value;
1224
+ }
1225
+ });
1226
+ return vars;
1227
+ }
1228
+ function getResponsiveFontSize(sizeKey) {
1229
+ const size = fontSizes[sizeKey];
1230
+ return `font-size: ${size.mobile}; @media (min-width: 768px) { font-size: ${size.base}; }`;
1231
+ }
1232
+ var typographySystem = {
1233
+ families: fontFamilies,
1234
+ sizes: fontSizes,
1235
+ weights: fontWeights,
1236
+ lineHeights,
1237
+ letterSpacing,
1238
+ presets: typePresets,
1239
+ semantic: {
1240
+ sizes: semanticSizes,
1241
+ weights: semanticWeights,
1242
+ lineHeights: semanticLineHeights,
1243
+ letterSpacing: semanticLetterSpacing
1244
+ },
1245
+ utils: {
1246
+ getFontVariable,
1247
+ getThemeFontVariables,
1248
+ getResponsiveFontSize
1249
+ }
1250
+ };
1251
+
1252
+ // ../tokens/src/syntax.ts
1253
+ var syntaxColors = {
1254
+ light: {
1255
+ comment: "#22863a",
1256
+ // Green for comments
1257
+ keyword: "#8250df",
1258
+ // Purple for keywords (import, export, const, etc.)
1259
+ function: "#6639ba",
1260
+ // Purple for function names
1261
+ string: "#c1592a",
1262
+ // Orange for strings
1263
+ number: "#0a3069",
1264
+ // Blue for numbers
1265
+ boolean: "#0550ae",
1266
+ // Blue for booleans
1267
+ operator: "#1a1a1a",
1268
+ // Almost black for operators
1269
+ property: "#0550ae",
1270
+ // Blue for properties
1271
+ className: "#005cc5",
1272
+ // Blue for class names
1273
+ tag: "#005cc5",
1274
+ // Blue for HTML/JSX tags
1275
+ attribute: "#0550ae",
1276
+ // Blue for attributes
1277
+ variable: "#0550ae",
1278
+ // Blue for variables
1279
+ punctuation: "#57606a",
1280
+ // Gray for punctuation
1281
+ plain: "#1a1a1a"
1282
+ // Default text color
1283
+ },
1284
+ dark: {
1285
+ comment: "#6A9955",
1286
+ // Green for comments
1287
+ keyword: "#C586C0",
1288
+ // Purple for keywords (import, export, const, etc.)
1289
+ function: "#DCDCAA",
1290
+ // Yellow for function names
1291
+ string: "#CE9178",
1292
+ // Orange for strings
1293
+ number: "#B5CEA8",
1294
+ // Light green for numbers
1295
+ boolean: "#569CD6",
1296
+ // Blue for booleans
1297
+ operator: "#D4D4D4",
1298
+ // Light gray for operators
1299
+ property: "#9CDCFE",
1300
+ // Light blue for properties
1301
+ className: "#4EC9B0",
1302
+ // Cyan for class names
1303
+ tag: "#4EC9B0",
1304
+ // Cyan for HTML/JSX tags
1305
+ attribute: "#9CDCFE",
1306
+ // Light blue for attributes
1307
+ variable: "#9CDCFE",
1308
+ // Light blue for variables
1309
+ punctuation: "#808080",
1310
+ // Gray for punctuation
1311
+ plain: "#D4D4D4"
1312
+ // Default text color
1313
+ }
1314
+ };
1315
+ var codeColors = {
1316
+ light: {
1317
+ // Block code background - cool gray for subtle distinction
1318
+ blockBackground: "#F8F9FA",
1319
+ // Inline code background - pale amber for warmth and visibility
1320
+ inlineBackground: "#FEF3E7",
1321
+ // Border color for definition and separation
1322
+ border: "#E1E4E8"
1323
+ },
1324
+ dark: {
1325
+ // Block code background - VS Code-inspired dark background
1326
+ blockBackground: "#1E1E1E",
1327
+ // Inline code background - slightly lighter for contrast
1328
+ inlineBackground: "#252525",
1329
+ // Border color for definition
1330
+ border: "#3D3D3D"
1331
+ }
1332
+ };
1333
+
1334
+ // ../tokens/src/color-palettes.ts
1335
+ var colorPalettes = [
1336
+ // === PROFESSIONAL ===
1337
+ {
1338
+ id: "deep-trust",
1339
+ name: "Deep Trust",
1340
+ description: "Confident navy with subtle warmth",
1341
+ category: "professional",
1342
+ primary: "#1e3a5f",
1343
+ secondary: "#64748b",
1344
+ accent: "#f59e0b",
1345
+ harmony: "Split-Complementary",
1346
+ bestFor: ["Finance", "Legal", "Enterprise SaaS"],
1347
+ rationale: "Navy (trust, authority) paired with Slate (neutral utility) and Amber (approachable warmth). The amber accent draws attention to CTAs without disrupting professional gravitas. High contrast ratios ensure accessibility.",
1348
+ wcagAA: true,
1349
+ wcagAAA: true
1350
+ },
1351
+ {
1352
+ id: "graphite-precision",
1353
+ name: "Graphite Precision",
1354
+ description: "Modern technical authority",
1355
+ category: "professional",
1356
+ primary: "#0f172a",
1357
+ secondary: "#475569",
1358
+ accent: "#0ea5e9",
1359
+ harmony: "Analogous + Accent",
1360
+ bestFor: ["Dev Tools", "Analytics", "SaaS Dashboards"],
1361
+ rationale: "Near-black primary (Slate 900) conveys technical sophistication. Steel secondary provides UI structure. Sky blue accent pops for interactive elements. Inspired by developer tools like VS Code and GitHub.",
1362
+ wcagAA: true,
1363
+ wcagAAA: false
1364
+ },
1365
+ {
1366
+ id: "obsidian-gold",
1367
+ name: "Obsidian Gold",
1368
+ description: "Premium high-end authority",
1369
+ category: "professional",
1370
+ primary: "#09090b",
1371
+ secondary: "#3f3f46",
1372
+ accent: "#ca8a04",
1373
+ harmony: "Complementary",
1374
+ bestFor: ["Luxury Tech", "Premium Services", "High-End Products"],
1375
+ rationale: "Zinc 950 primary delivers true premium feel without harsh black. Zinc 700 secondary creates layered depth for cards and containers. Yellow-700 gold accent signals exclusivity and value.",
1376
+ wcagAA: true,
1377
+ wcagAAA: true
1378
+ },
1379
+ {
1380
+ id: "slate-ember",
1381
+ name: "Slate Ember",
1382
+ description: "Warm corporate modernism",
1383
+ category: "professional",
1384
+ primary: "#334155",
1385
+ secondary: "#94a3b8",
1386
+ accent: "#ea580c",
1387
+ harmony: "Complementary",
1388
+ bestFor: ["Consulting", "B2B Services", "Corporate Sites"],
1389
+ rationale: "Slate 700 primary feels mature yet approachable. Slate 400 secondary lightens UI without losing professionalism. Orange 600 accent energizes without overwhelming\u2014perfect for subtle call-to-action emphasis.",
1390
+ wcagAA: true,
1391
+ wcagAAA: true
1392
+ },
1393
+ // === CREATIVE ===
1394
+ {
1395
+ id: "sunset-gradient",
1396
+ name: "Sunset Gradient",
1397
+ description: "Warm analogous energy flow",
1398
+ category: "creative",
1399
+ primary: "#db2777",
1400
+ secondary: "#f97316",
1401
+ accent: "#fbbf24",
1402
+ harmony: "Analogous",
1403
+ bestFor: ["Design Agencies", "Portfolios", "Creative Studios"],
1404
+ rationale: "Pink 600 \u2192 Orange 500 \u2192 Amber 400 creates natural warmth progression mimicking golden hour. This analogous flow feels cohesive yet dynamic. Works beautifully with white backgrounds and dark text.",
1405
+ wcagAA: true,
1406
+ wcagAAA: false
1407
+ },
1408
+ {
1409
+ id: "electric-violet",
1410
+ name: "Electric Violet",
1411
+ description: "Bold complementary punch",
1412
+ category: "creative",
1413
+ primary: "#7c3aed",
1414
+ secondary: "#be185d",
1415
+ accent: "#fb923c",
1416
+ harmony: "Triadic",
1417
+ bestFor: ["Entertainment", "Events", "Music", "Gaming"],
1418
+ rationale: "Violet 600, Rose 700, and Orange 400 form a dynamic triadic harmony. Each color is equidistant on the wheel, creating maximum visual interest while maintaining balance. Use violet as dominant, rose for sections, orange for CTAs.",
1419
+ wcagAA: true,
1420
+ wcagAAA: false
1421
+ },
1422
+ {
1423
+ id: "indigo-bloom",
1424
+ name: "Indigo Bloom",
1425
+ description: "Sophisticated feminine power",
1426
+ category: "creative",
1427
+ primary: "#4338ca",
1428
+ secondary: "#be123c",
1429
+ accent: "#d946ef",
1430
+ harmony: "Split-Complementary",
1431
+ bestFor: ["Beauty", "Fashion Tech", "Lifestyle Apps"],
1432
+ rationale: "Indigo 700 anchors with depth and sophistication. Rose 700 provides rich contrast. Fuchsia 500 accent sparkles for highlights and interactions. The palette balances strength with approachability.",
1433
+ wcagAA: true,
1434
+ wcagAAA: true
1435
+ },
1436
+ {
1437
+ id: "coral-reef",
1438
+ name: "Coral Reef",
1439
+ description: "Playful warmth with depth",
1440
+ category: "creative",
1441
+ primary: "#f43f5e",
1442
+ secondary: "#06b6d4",
1443
+ accent: "#fcd34d",
1444
+ harmony: "Triadic",
1445
+ bestFor: ["Social Apps", "Community Platforms", "Lifestyle"],
1446
+ rationale: "Rose 500 (coral), Cyan 500 (ocean), and Amber 300 (sand) evoke tropical vibrancy. This triadic scheme feels energetic yet grounded. Great for apps targeting younger, socially-engaged audiences.",
1447
+ wcagAA: true,
1448
+ wcagAAA: false
1449
+ },
1450
+ // === NATURE ===
1451
+ {
1452
+ id: "forest-floor",
1453
+ name: "Forest Floor",
1454
+ description: "Deep organic earthiness",
1455
+ category: "nature",
1456
+ primary: "#14532d",
1457
+ secondary: "#78350f",
1458
+ accent: "#84cc16",
1459
+ harmony: "Analogous + Accent",
1460
+ bestFor: ["Sustainability", "Wellness", "Organic Products"],
1461
+ rationale: "Green 900 (deep forest) and Amber 900 (rich earth/bark) create grounded warmth. Lime 500 accent represents new growth and vitality. This palette speaks to environmental consciousness and natural authenticity.",
1462
+ wcagAA: true,
1463
+ wcagAAA: true
1464
+ },
1465
+ {
1466
+ id: "ocean-calm",
1467
+ name: "Ocean Calm",
1468
+ description: "Tranquil aquatic serenity",
1469
+ category: "nature",
1470
+ primary: "#0f766e",
1471
+ secondary: "#0284c7",
1472
+ accent: "#22d3ee",
1473
+ harmony: "Analogous",
1474
+ bestFor: ["Healthcare", "Meditation", "Clean Tech"],
1475
+ rationale: "Teal 700, Sky 600, and Cyan 400 form a calming blue-green progression. Mimics depth variations in water. Low emotional intensity promotes trust and calm\u2014ideal for wellness and health applications.",
1476
+ wcagAA: true,
1477
+ wcagAAA: false
1478
+ },
1479
+ {
1480
+ id: "sage-garden",
1481
+ name: "Sage Garden",
1482
+ description: "Botanical mindfulness",
1483
+ category: "nature",
1484
+ primary: "#6366f1",
1485
+ secondary: "#059669",
1486
+ accent: "#fef08a",
1487
+ harmony: "Triadic",
1488
+ bestFor: ["Meditation Apps", "Spa", "Personal Growth"],
1489
+ rationale: "Indigo 500 (lavender energy), Emerald 600 (sage calm), Yellow 200 (morning light). Named colors match actual botanicals. Soft yellow accent provides gentle illumination for key interactions.",
1490
+ wcagAA: true,
1491
+ wcagAAA: false
1492
+ },
1493
+ {
1494
+ id: "desert-dawn",
1495
+ name: "Desert Dawn",
1496
+ description: "Warm arid minimalism",
1497
+ category: "nature",
1498
+ primary: "#d6d3d1",
1499
+ secondary: "#a8a29e",
1500
+ accent: "#c2410c",
1501
+ harmony: "Monochromatic + Accent",
1502
+ bestFor: ["Architecture", "Interior Design", "Artisan Goods"],
1503
+ rationale: "Stone 300 and Stone 400 create subtle warmth typical of desert sands. Orange 700 accent recalls desert flora and sunset. Minimalist yet rich\u2014perfect for showcasing products and photography.",
1504
+ wcagAA: false,
1505
+ wcagAAA: false
1506
+ },
1507
+ // === VIBRANT ===
1508
+ {
1509
+ id: "neon-signal",
1510
+ name: "Neon Signal",
1511
+ description: "High-energy cyberpunk electric",
1512
+ category: "vibrant",
1513
+ primary: "#06b6d4",
1514
+ secondary: "#d946ef",
1515
+ accent: "#fde047",
1516
+ harmony: "Triadic (CMY-based)",
1517
+ bestFor: ["Gaming", "Web3", "Music Streaming", "Youth Apps"],
1518
+ rationale: "Cyan 500, Fuchsia 500, Yellow 300 approximate CMY primaries\u2014the digital/print color model. Creates electric, almost glitch-aesthetic energy. Use sparingly on dark backgrounds for maximum impact.",
1519
+ wcagAA: false,
1520
+ wcagAAA: false
1521
+ },
1522
+ {
1523
+ id: "citrus-burst",
1524
+ name: "Citrus Burst",
1525
+ description: "Maximum fresh impact",
1526
+ category: "vibrant",
1527
+ primary: "#65a30d",
1528
+ secondary: "#7c3aed",
1529
+ accent: "#14b8a6",
1530
+ harmony: "Split-Complementary",
1531
+ bestFor: ["Sports", "Energy Drinks", "Youth Brands"],
1532
+ rationale: "Lime 600, Violet 600, and Teal 500 create intentional visual tension. The near-complementary lime/violet pairing vibrates with energy, while teal accent provides unexpected freshness. Bold and unapologetic.",
1533
+ wcagAA: false,
1534
+ wcagAAA: false
1535
+ },
1536
+ {
1537
+ id: "fire-intensity",
1538
+ name: "Fire Intensity",
1539
+ description: "Passionate warmth progression",
1540
+ category: "vibrant",
1541
+ primary: "#b91c1c",
1542
+ secondary: "#ea580c",
1543
+ accent: "#fbbf24",
1544
+ harmony: "Analogous (Warm)",
1545
+ bestFor: ["Food Delivery", "Fitness", "Action Sports"],
1546
+ rationale: "Red 700 \u2192 Orange 600 \u2192 Amber 400 represents heat intensity from coals to flame to spark. This warm analogous progression demands attention and creates urgency. Best balanced with plenty of whitespace.",
1547
+ wcagAA: true,
1548
+ wcagAAA: false
1549
+ },
1550
+ {
1551
+ id: "aurora-borealis",
1552
+ name: "Aurora Borealis",
1553
+ description: "Ethereal northern lights",
1554
+ category: "vibrant",
1555
+ primary: "#0891b2",
1556
+ secondary: "#7c3aed",
1557
+ accent: "#22c55e",
1558
+ harmony: "Triadic",
1559
+ bestFor: ["Astronomy Apps", "Science", "Innovation"],
1560
+ rationale: "Cyan 600, Violet 600, and Green 500 capture the magical shifting hues of aurora displays. Equally spaced on the wheel, they create visual wonder without chaos. Perfect for science and exploration themes.",
1561
+ wcagAA: true,
1562
+ wcagAAA: false
1563
+ },
1564
+ // === MINIMAL ===
1565
+ {
1566
+ id: "swiss-mono",
1567
+ name: "Swiss Mono",
1568
+ description: "International style precision",
1569
+ category: "minimal",
1570
+ primary: "#000000",
1571
+ secondary: "#52525b",
1572
+ accent: "#2563eb",
1573
+ harmony: "Achromatic + Accent",
1574
+ bestFor: ["Typography", "Photography", "Editorial"],
1575
+ rationale: "Pure black and Zinc 600 honor Swiss International Style. Blue 600 accent (classic 'international blue') provides subtle direction without disrupting minimalist purity. Maximum contrast, zero distraction.",
1576
+ wcagAA: true,
1577
+ wcagAAA: true
1578
+ },
1579
+ {
1580
+ id: "paper-whisper",
1581
+ name: "Paper Whisper",
1582
+ description: "Soft reading comfort",
1583
+ category: "minimal",
1584
+ primary: "#27272a",
1585
+ secondary: "#71717a",
1586
+ accent: "#a1a1aa",
1587
+ harmony: "Monochromatic",
1588
+ bestFor: ["Reading Apps", "Journaling", "Documentation"],
1589
+ rationale: "Zinc 800, 500, and 400 create subtle hierarchy without color distraction. True monochrome reduces cognitive load for reading-heavy interfaces. Accent provides gentle distinction for interactive elements.",
1590
+ wcagAA: true,
1591
+ wcagAAA: true
1592
+ },
1593
+ {
1594
+ id: "cool-slate",
1595
+ name: "Cool Slate",
1596
+ description: "Technical quiet confidence",
1597
+ category: "minimal",
1598
+ primary: "#334155",
1599
+ secondary: "#64748b",
1600
+ accent: "#38bdf8",
1601
+ harmony: "Analogous + Accent",
1602
+ bestFor: ["Architecture Portfolios", "Consulting", "Legal Tech"],
1603
+ rationale: "Slate 700 and 500 create cool, professional atmosphere. Sky 400 accent whispers rather than shouts\u2014perfect for subtle navigation cues and sparse interactive highlights.",
1604
+ wcagAA: true,
1605
+ wcagAAA: true
1606
+ },
1607
+ {
1608
+ id: "warm-neutral",
1609
+ name: "Warm Neutral",
1610
+ description: "Organic minimalism",
1611
+ category: "minimal",
1612
+ primary: "#292524",
1613
+ secondary: "#78716c",
1614
+ accent: "#92400e",
1615
+ harmony: "Monochromatic + Accent",
1616
+ bestFor: ["Artisan E-commerce", "Coffee Brands", "Craft"],
1617
+ rationale: "Stone 800 and 500 provide warmth missing from pure grays. Amber 800 accent recalls coffee, leather, wood\u2014materials with character. Minimal but not cold, modern but not sterile.",
1618
+ wcagAA: true,
1619
+ wcagAAA: true
1620
+ },
1621
+ // === LUXURY ===
1622
+ {
1623
+ id: "royal-velvet",
1624
+ name: "Royal Velvet",
1625
+ description: "Regal opulent depth",
1626
+ category: "luxury",
1627
+ primary: "#4c1d95",
1628
+ secondary: "#1e1b4b",
1629
+ accent: "#d97706",
1630
+ harmony: "Complementary",
1631
+ bestFor: ["VIP Services", "Luxury Hotels", "Private Banking"],
1632
+ rationale: "Violet 900 (deep purple) and Indigo 950 (near-black midnight) create layered richness. Amber 600 gold accent adds warmth and signals value. Historically associated with royalty and exclusivity.",
1633
+ wcagAA: true,
1634
+ wcagAAA: true
1635
+ },
1636
+ {
1637
+ id: "champagne-noir",
1638
+ name: "Champagne Noir",
1639
+ description: "High-fashion sophistication",
1640
+ category: "luxury",
1641
+ primary: "#0c0a09",
1642
+ secondary: "#1c1917",
1643
+ accent: "#d4af37",
1644
+ harmony: "Monochromatic + Metallic",
1645
+ bestFor: ["Fashion", "Jewelry", "Luxury Retail"],
1646
+ rationale: "Stone 950 (warm black) and Stone 900 create subtle depth. True metallic gold (#D4AF37) elevates beyond standard amber. The warmth in blacks prevents coldness while maintaining elegance.",
1647
+ wcagAA: true,
1648
+ wcagAAA: true
1649
+ },
1650
+ {
1651
+ id: "emerald-club",
1652
+ name: "Emerald Club",
1653
+ description: "Old money establishment",
1654
+ category: "luxury",
1655
+ primary: "#064e3b",
1656
+ secondary: "#166534",
1657
+ accent: "#b45309",
1658
+ harmony: "Analogous + Accent",
1659
+ bestFor: ["Private Clubs", "Wealth Management", "Heritage Brands"],
1660
+ rationale: "Emerald 900 and Green 800 create tone-on-tone richness associated with stability and tradition. Bronze/Amber 700 accent recalls old brass and mahogany. Communicates established trustworthiness.",
1661
+ wcagAA: true,
1662
+ wcagAAA: true
1663
+ },
1664
+ {
1665
+ id: "midnight-sapphire",
1666
+ name: "Midnight Sapphire",
1667
+ description: "Contemporary luxury tech",
1668
+ category: "luxury",
1669
+ primary: "#172554",
1670
+ secondary: "#1e3a8a",
1671
+ accent: "#fafafa",
1672
+ harmony: "Monochromatic + Contrast",
1673
+ bestFor: ["Luxury Auto", "Premium Electronics", "Elite Services"],
1674
+ rationale: "Blue 950 and Blue 800 create depth like sapphire gemstone. Pure white (Zinc 50) accent cuts through dramatically. Modern luxury aesthetic\u2014think high-end automotive interfaces.",
1675
+ wcagAA: true,
1676
+ wcagAAA: true
1677
+ },
1678
+ // === PLAYFUL ===
1679
+ {
1680
+ id: "candy-shop",
1681
+ name: "Candy Shop",
1682
+ description: "Joyful youthful sweetness",
1683
+ category: "playful",
1684
+ primary: "#ec4899",
1685
+ secondary: "#8b5cf6",
1686
+ accent: "#facc15",
1687
+ harmony: "Triadic",
1688
+ bestFor: ["Kids Apps", "Toys", "Gaming", "Entertainment"],
1689
+ rationale: "Pink 500 (bubble gum), Violet 500 (grape), Yellow 400 (lemon drop) evoke candy store joy. Classic gender-neutral playful combination. High saturation communicates energy and fun.",
1690
+ wcagAA: false,
1691
+ wcagAAA: false
1692
+ },
1693
+ {
1694
+ id: "sunny-day",
1695
+ name: "Sunny Day",
1696
+ description: "Optimistic primary colors",
1697
+ category: "playful",
1698
+ primary: "#2563eb",
1699
+ secondary: "#16a34a",
1700
+ accent: "#fbbf24",
1701
+ harmony: "Triadic (Primary-based)",
1702
+ bestFor: ["Education", "Children's Apps", "Learning Platforms"],
1703
+ rationale: "Blue 600 (sky), Green 600 (grass), Amber 400 (sun) are universally recognized and accessible. This primary-adjacent scheme feels familiar and approachable to all ages and cultures.",
1704
+ wcagAA: true,
1705
+ wcagAAA: false
1706
+ },
1707
+ {
1708
+ id: "mint-berry",
1709
+ name: "Mint Berry",
1710
+ description: "Fresh dessert sweetness",
1711
+ category: "playful",
1712
+ primary: "#10b981",
1713
+ secondary: "#ec4899",
1714
+ accent: "#06b6d4",
1715
+ harmony: "Split-Complementary",
1716
+ bestFor: ["Food Apps", "Lifestyle", "Wellness for Youth"],
1717
+ rationale: "Emerald 500 (mint), Pink 500 (berry), Cyan 500 (ice) create dessert-inspired freshness. High contrast between green and pink creates visual interest while cyan cools the palette.",
1718
+ wcagAA: false,
1719
+ wcagAAA: false
1720
+ },
1721
+ {
1722
+ id: "rainbow-pop",
1723
+ name: "Rainbow Pop",
1724
+ description: "Maximalist celebration",
1725
+ category: "playful",
1726
+ primary: "#f43f5e",
1727
+ secondary: "#8b5cf6",
1728
+ accent: "#06b6d4",
1729
+ harmony: "Triadic",
1730
+ bestFor: ["Pride Events", "Festivals", "Inclusive Communities"],
1731
+ rationale: "Rose 500, Violet 500, Cyan 500 span the visible spectrum. Celebrates diversity and inclusion through color. Each hue can represent different aspects while maintaining visual harmony.",
1732
+ wcagAA: false,
1733
+ wcagAAA: false
1734
+ },
1735
+ // === ACCESSIBLE ===
1736
+ {
1737
+ id: "high-clarity",
1738
+ name: "High Clarity",
1739
+ description: "Maximum readability",
1740
+ category: "accessible",
1741
+ primary: "#1f2937",
1742
+ secondary: "#4b5563",
1743
+ accent: "#0284c7",
1744
+ harmony: "Monochromatic + Accent",
1745
+ bestFor: ["Government", "Healthcare", "Education"],
1746
+ rationale: "Gray 800 and 600 on white exceed WCAG AAA contrast requirements (7:1+). Sky 600 accent passes AA for large text. Designed for universal accessibility including visual impairments.",
1747
+ wcagAA: true,
1748
+ wcagAAA: true
1749
+ },
1750
+ {
1751
+ id: "safe-contrast",
1752
+ name: "Safe Contrast",
1753
+ description: "Color-blind friendly",
1754
+ category: "accessible",
1755
+ primary: "#0369a1",
1756
+ secondary: "#374151",
1757
+ accent: "#ea580c",
1758
+ harmony: "Complementary",
1759
+ bestFor: ["Data Visualization", "Forms", "Critical Interfaces"],
1760
+ rationale: "Sky 700 and Gray 700 are distinguishable across common color blindness types. Orange 600 accent avoids red-green confusion. Tested with deuteranopia, protanopia, and tritanopia simulations.",
1761
+ wcagAA: true,
1762
+ wcagAAA: false
1763
+ },
1764
+ {
1765
+ id: "gentle-reader",
1766
+ name: "Gentle Reader",
1767
+ description: "Low eye strain",
1768
+ category: "accessible",
1769
+ primary: "#44403c",
1770
+ secondary: "#78716c",
1771
+ accent: "#2563eb",
1772
+ harmony: "Monochromatic + Accent",
1773
+ bestFor: ["Long-Form Reading", "Elderly Users", "Medical"],
1774
+ rationale: "Stone 700 and 500 avoid harsh black while maintaining readability. Reduced contrast prevents eye fatigue for extended reading. Blue 600 accent is universally distinguishable.",
1775
+ wcagAA: true,
1776
+ wcagAAA: true
1777
+ },
1778
+ {
1779
+ id: "clear-signal",
1780
+ name: "Clear Signal",
1781
+ description: "Semantic color safe",
1782
+ category: "accessible",
1783
+ primary: "#1e293b",
1784
+ secondary: "#64748b",
1785
+ accent: "#7c3aed",
1786
+ harmony: "Analogous + Accent",
1787
+ bestFor: ["Medical Interfaces", "Critical Systems", "Accessibility-First"],
1788
+ rationale: "Slate 800 and 500 provide clear hierarchy. Violet 600 accent is visible to most color vision types and doesn't conflict with semantic red/green/yellow states. Reserves those colors for their intended meanings.",
1789
+ wcagAA: true,
1790
+ wcagAAA: true
1791
+ }
1792
+ ];
1793
+ function getPalettesByCategory(category) {
1794
+ return colorPalettes.filter((p) => p.category === category);
1795
+ }
1796
+ function getPalettesByMood(mood) {
1797
+ return colorPalettes.filter(
1798
+ (p) => p.description.toLowerCase().includes(mood.toLowerCase()) || p.rationale?.toLowerCase().includes(mood.toLowerCase()) || p.mood?.some((m) => m.toLowerCase().includes(mood.toLowerCase()))
1799
+ );
1800
+ }
1801
+ function getPalettesForUseCase(useCase) {
1802
+ return colorPalettes.filter(
1803
+ (p) => p.bestFor?.some((uc) => uc.toLowerCase().includes(useCase.toLowerCase()))
1804
+ );
1805
+ }
1806
+ function getAccessiblePalettes(level = "AA") {
1807
+ return colorPalettes.filter(
1808
+ (p) => level === "AAA" ? p.wcagAAA : p.wcagAA
1809
+ );
1810
+ }
1811
+
1812
+ // ../tokens/src/color-utils.ts
1813
+ function hexToRgb(hex) {
1814
+ const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
1815
+ return result ? {
1816
+ r: parseInt(result[1], 16),
1817
+ g: parseInt(result[2], 16),
1818
+ b: parseInt(result[3], 16)
1819
+ } : null;
1820
+ }
1821
+ function hexToHSL(hex) {
1822
+ const rgb = hexToRgb(hex);
1823
+ if (!rgb) return { h: 0, s: 0, l: 0 };
1824
+ const r = rgb.r / 255;
1825
+ const g = rgb.g / 255;
1826
+ const b = rgb.b / 255;
1827
+ const max = Math.max(r, g, b);
1828
+ const min = Math.min(r, g, b);
1829
+ let h = 0, s = 0, l = (max + min) / 2;
1830
+ if (max !== min) {
1831
+ const d = max - min;
1832
+ s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
1833
+ switch (max) {
1834
+ case r:
1835
+ h = ((g - b) / d + (g < b ? 6 : 0)) / 6;
1836
+ break;
1837
+ case g:
1838
+ h = ((b - r) / d + 2) / 6;
1839
+ break;
1840
+ case b:
1841
+ h = ((r - g) / d + 4) / 6;
1842
+ break;
1843
+ }
1844
+ }
1845
+ return {
1846
+ h: Math.round(h * 360),
1847
+ s: Math.round(s * 100),
1848
+ l: Math.round(l * 100)
1849
+ };
1850
+ }
1851
+ function hslToHex(h, s, l) {
1852
+ h = h / 360;
1853
+ s = s / 100;
1854
+ l = l / 100;
1855
+ let r, g, b;
1856
+ if (s === 0) {
1857
+ r = g = b = l;
1858
+ } else {
1859
+ const hue2rgb = (p2, q2, t) => {
1860
+ if (t < 0) t += 1;
1861
+ if (t > 1) t -= 1;
1862
+ if (t < 1 / 6) return p2 + (q2 - p2) * 6 * t;
1863
+ if (t < 1 / 2) return q2;
1864
+ if (t < 2 / 3) return p2 + (q2 - p2) * (2 / 3 - t) * 6;
1865
+ return p2;
1866
+ };
1867
+ const q = l < 0.5 ? l * (1 + s) : l + s - l * s;
1868
+ const p = 2 * l - q;
1869
+ r = hue2rgb(p, q, h + 1 / 3);
1870
+ g = hue2rgb(p, q, h);
1871
+ b = hue2rgb(p, q, h - 1 / 3);
1872
+ }
1873
+ const toHex = (x) => {
1874
+ const hex = Math.round(x * 255).toString(16);
1875
+ return hex.length === 1 ? "0" + hex : hex;
1876
+ };
1877
+ return `#${toHex(r)}${toHex(g)}${toHex(b)}`;
1878
+ }
1879
+ function adjustLightness(hex, percent) {
1880
+ const hsl = hexToHSL(hex);
1881
+ const newL = Math.max(0, Math.min(100, hsl.l + percent));
1882
+ return hslToHex(hsl.h, hsl.s, newL);
1883
+ }
1884
+ function adjustSaturation(hex, percent) {
1885
+ const hsl = hexToHSL(hex);
1886
+ const newS = Math.max(0, Math.min(100, hsl.s + percent));
1887
+ return hslToHex(hsl.h, newS, hsl.l);
1888
+ }
1889
+ function rotateHue(hex, degrees) {
1890
+ const hsl = hexToHSL(hex);
1891
+ const newH = (hsl.h + degrees) % 360;
1892
+ return hslToHex(newH, hsl.s, hsl.l);
1893
+ }
1894
+ function adjustOpacity(hex, opacity) {
1895
+ const rgb = hexToRgb(hex);
1896
+ if (!rgb) return hex;
1897
+ return `rgba(${rgb.r}, ${rgb.g}, ${rgb.b}, ${opacity})`;
1898
+ }
1899
+ function getLuminance(r, g, b) {
1900
+ const [rs, gs, bs] = [r, g, b].map((c) => {
1901
+ const srgb = c / 255;
1902
+ return srgb <= 0.03928 ? srgb / 12.92 : Math.pow((srgb + 0.055) / 1.055, 2.4);
1903
+ });
1904
+ return 0.2126 * rs + 0.7152 * gs + 0.0722 * bs;
1905
+ }
1906
+ function getContrastRatio(hex1, hex2) {
1907
+ const rgb1 = hexToRgb(hex1);
1908
+ const rgb2 = hexToRgb(hex2);
1909
+ if (!rgb1 || !rgb2) return 0;
1910
+ const lum1 = getLuminance(rgb1.r, rgb1.g, rgb1.b);
1911
+ const lum2 = getLuminance(rgb2.r, rgb2.g, rgb2.b);
1912
+ const lighter = Math.max(lum1, lum2);
1913
+ const darker = Math.min(lum1, lum2);
1914
+ return (lighter + 0.05) / (darker + 0.05);
1915
+ }
1916
+ function getOptimalForeground(bgHex, whiteHex = "#ffffff", blackHex = "#000000") {
1917
+ const whiteRatio = getContrastRatio(bgHex, whiteHex);
1918
+ const blackRatio = getContrastRatio(bgHex, blackHex);
1919
+ return whiteRatio > blackRatio ? whiteHex : blackHex;
1920
+ }
1921
+
1922
+ // ../tokens/src/token-graph.ts
1923
+ var primaryColorDerivations = {
1924
+ // Links use primary color
1925
+ "--color-link": {
1926
+ source: "--color-primary",
1927
+ transform: (primary) => primary,
1928
+ description: "Links inherit primary brand color"
1929
+ },
1930
+ // Focus ring uses primary color
1931
+ "--color-ring": {
1932
+ source: "--color-primary",
1933
+ transform: (primary) => primary,
1934
+ description: "Focus rings use primary for brand consistency"
1935
+ },
1936
+ // Link hover is slightly darker primary
1937
+ "--color-link-hover": {
1938
+ source: "--color-primary",
1939
+ transform: (primary) => adjustLightness(primary, -10),
1940
+ description: "Link hover is 10% darker for visual feedback"
1941
+ },
1942
+ // Chart primary series
1943
+ "--chart-1": {
1944
+ source: "--color-primary",
1945
+ transform: (primary) => primary,
1946
+ description: "First chart series uses primary"
1947
+ },
1948
+ // Chart secondary series (lighter tint)
1949
+ "--chart-2": {
1950
+ source: "--color-primary",
1951
+ transform: (primary) => adjustLightness(primary, 20),
1952
+ description: "Second chart series is lighter tint of primary"
1953
+ },
1954
+ // Chart tertiary series (darker shade)
1955
+ "--chart-3": {
1956
+ source: "--color-primary",
1957
+ transform: (primary) => adjustLightness(primary, -15),
1958
+ description: "Third chart series is darker shade of primary"
1959
+ },
1960
+ // Chart quaternary (desaturated primary)
1961
+ "--chart-4": {
1962
+ source: "--color-primary",
1963
+ transform: (primary) => adjustSaturation(primary, -30),
1964
+ description: "Fourth chart series is muted primary"
1965
+ },
1966
+ // Chart quinary (complementary color)
1967
+ "--chart-5": {
1968
+ source: "--color-primary",
1969
+ transform: (primary) => rotateHue(primary, 180),
1970
+ description: "Fifth chart series is complementary to primary"
1971
+ }
1972
+ };
1973
+ var secondaryColorDerivations = {
1974
+ // Hover states
1975
+ "--color-hover": {
1976
+ source: "--color-secondary",
1977
+ transform: (secondary) => secondary,
1978
+ description: "Hover backgrounds use secondary"
1979
+ },
1980
+ // Active states
1981
+ "--color-active": {
1982
+ source: "--color-secondary",
1983
+ transform: (secondary) => adjustLightness(secondary, -5),
1984
+ description: "Active state is slightly darker secondary"
1985
+ },
1986
+ // Muted backgrounds
1987
+ "--color-muted": {
1988
+ source: "--color-secondary",
1989
+ transform: (secondary) => secondary,
1990
+ description: "Muted sections use secondary color"
1991
+ }
1992
+ };
1993
+ var accentColorDerivations = {
1994
+ // Info semantic color uses accent
1995
+ "--color-info": {
1996
+ source: "--color-accent",
1997
+ transform: (accent) => accent,
1998
+ description: "Info semantic color uses accent"
1999
+ },
2000
+ // Info foreground calculated for contrast
2001
+ "--color-info-foreground": {
2002
+ source: "--color-accent",
2003
+ transform: (accent) => getOptimalForeground(accent),
2004
+ description: "Info foreground calculated for contrast"
2005
+ }
2006
+ };
2007
+ var modeSpecificDerivations = {
2008
+ "--color-primary-muted": {
2009
+ light: {
2010
+ source: "--color-primary",
2011
+ transform: (primary) => adjustLightness(primary, 40),
2012
+ description: "Muted primary for light backgrounds"
2013
+ },
2014
+ dark: {
2015
+ source: "--color-primary",
2016
+ transform: (primary) => adjustLightness(primary, -20),
2017
+ description: "Muted primary for dark backgrounds"
2018
+ }
2019
+ },
2020
+ "--color-primary-subtle": {
2021
+ light: {
2022
+ source: "--color-primary",
2023
+ transform: (primary) => adjustOpacity(primary, 0.1),
2024
+ description: "Subtle primary background for light mode"
2025
+ },
2026
+ dark: {
2027
+ source: "--color-primary",
2028
+ transform: (primary) => adjustOpacity(primary, 0.2),
2029
+ description: "Subtle primary background for dark mode"
2030
+ }
2031
+ }
2032
+ };
2033
+ var tokenDependencyGraph = {
2034
+ primary: primaryColorDerivations,
2035
+ secondary: secondaryColorDerivations,
2036
+ accent: accentColorDerivations,
2037
+ modeSpecific: modeSpecificDerivations
2038
+ };
2039
+ function getDependentTokens(sourceToken) {
2040
+ const dependents = [];
2041
+ Object.entries(primaryColorDerivations).forEach(([token, config]) => {
2042
+ if (config.source === sourceToken) {
2043
+ dependents.push(token);
2044
+ }
2045
+ });
2046
+ Object.entries(secondaryColorDerivations).forEach(([token, config]) => {
2047
+ if (config.source === sourceToken) {
2048
+ dependents.push(token);
2049
+ }
2050
+ });
2051
+ Object.entries(accentColorDerivations).forEach(([token, config]) => {
2052
+ if (config.source === sourceToken) {
2053
+ dependents.push(token);
2054
+ }
2055
+ });
2056
+ return dependents;
2057
+ }
2058
+ function computeDerivedTokens(sourceToken, sourceValue, mode) {
2059
+ const derived = {};
2060
+ Object.entries(primaryColorDerivations).forEach(([token, config]) => {
2061
+ if (config.source === sourceToken) {
2062
+ derived[token] = config.transform(sourceValue);
2063
+ }
2064
+ });
2065
+ Object.entries(secondaryColorDerivations).forEach(([token, config]) => {
2066
+ if (config.source === sourceToken) {
2067
+ derived[token] = config.transform(sourceValue);
2068
+ }
2069
+ });
2070
+ Object.entries(accentColorDerivations).forEach(([token, config]) => {
2071
+ if (config.source === sourceToken) {
2072
+ derived[token] = config.transform(sourceValue);
2073
+ }
2074
+ });
2075
+ Object.entries(modeSpecificDerivations).forEach(([token, configs]) => {
2076
+ const config = configs[mode];
2077
+ if (config.source === sourceToken) {
2078
+ derived[token] = config.transform(sourceValue);
2079
+ }
2080
+ });
2081
+ return derived;
2082
+ }
2083
+
2084
+ // ../tokens/src/fontThemes.ts
2085
+ var fontThemes = [
2086
+ // === PROFESSIONAL ===
2087
+ {
2088
+ id: "studio",
2089
+ name: "Studio",
2090
+ description: "Professional and balanced, perfect for modern SaaS products",
2091
+ category: "professional",
2092
+ heading: "Outfit",
2093
+ body: "Manrope",
2094
+ mono: "Fira Code",
2095
+ headingWeight: "700",
2096
+ bodyWeight: "400",
2097
+ letterSpacing: { heading: "-0.02em", body: "0" },
2098
+ lineHeight: { heading: "1.2", body: "1.6" },
2099
+ wcagReadable: true,
2100
+ mood: ["professional", "modern", "clean"],
2101
+ bestFor: "SaaS products, business sites, dashboards",
2102
+ pairing: "Sans + Sans (Geometric + Humanist)"
2103
+ },
2104
+ {
2105
+ id: "modern-swiss",
2106
+ name: "Modern Swiss",
2107
+ description: "Clean and neutral, maximum readability",
2108
+ category: "professional",
2109
+ heading: "Inter",
2110
+ body: "Inter",
2111
+ mono: "JetBrains Mono",
2112
+ headingWeight: "700",
2113
+ bodyWeight: "400",
2114
+ letterSpacing: { heading: "-0.02em", body: "0" },
2115
+ lineHeight: { heading: "1.2", body: "1.7" },
2116
+ wcagReadable: true,
2117
+ mood: ["minimal", "clean", "modern"],
2118
+ bestFor: "Documentation, dashboards, data-heavy UIs",
2119
+ pairing: "Sans (Single Font)"
2120
+ },
2121
+ {
2122
+ id: "corporate-authority",
2123
+ name: "Corporate Authority",
2124
+ description: "Classic sans-serif with technical precision",
2125
+ category: "professional",
2126
+ heading: "Roboto",
2127
+ body: "Roboto",
2128
+ mono: "Roboto Mono",
2129
+ headingWeight: "700",
2130
+ bodyWeight: "400",
2131
+ letterSpacing: { heading: "-0.01em", body: "0" },
2132
+ lineHeight: { heading: "1.2", body: "1.6" },
2133
+ wcagReadable: true,
2134
+ mood: ["corporate", "reliable", "neutral"],
2135
+ bestFor: "Enterprise software, Google-style products, admin panels",
2136
+ pairing: "Sans (Roboto Family)"
2137
+ },
2138
+ // === EDITORIAL ===
2139
+ {
2140
+ id: "sage",
2141
+ name: "Sage",
2142
+ description: "Elegant serif heading with clean sans body",
2143
+ category: "editorial",
2144
+ heading: "Lora",
2145
+ body: "Instrument Sans",
2146
+ mono: "Fira Code",
2147
+ headingWeight: "600",
2148
+ bodyWeight: "400",
2149
+ letterSpacing: { heading: "-0.01em", body: "0" },
2150
+ lineHeight: { heading: "1.3", body: "1.7" },
2151
+ wcagReadable: true,
2152
+ mood: ["elegant", "warm", "organic"],
2153
+ bestFor: "Editorial sites, blogs, portfolios",
2154
+ pairing: "Serif + Sans (Classic Editorial)"
2155
+ },
2156
+ {
2157
+ id: "editorial-classic",
2158
+ name: "Editorial Classic",
2159
+ description: "Timeless serif pairing for long-form content",
2160
+ category: "editorial",
2161
+ heading: "Playfair Display",
2162
+ body: "Source Sans Pro",
2163
+ mono: "Fira Code",
2164
+ headingWeight: "700",
2165
+ bodyWeight: "400",
2166
+ letterSpacing: { heading: "0", body: "0" },
2167
+ lineHeight: { heading: "1.2", body: "1.7" },
2168
+ wcagReadable: true,
2169
+ mood: ["classic", "elegant", "readable"],
2170
+ bestFor: "Magazines, blogs, long-form articles",
2171
+ pairing: "Serif + Sans (High Contrast)"
2172
+ },
2173
+ {
2174
+ id: "literary",
2175
+ name: "Literary",
2176
+ description: "Sophisticated serif pairing for premium content",
2177
+ category: "editorial",
2178
+ heading: "Merriweather",
2179
+ body: "Lato",
2180
+ mono: "Fira Code",
2181
+ headingWeight: "700",
2182
+ bodyWeight: "400",
2183
+ letterSpacing: { heading: "0", body: "0" },
2184
+ lineHeight: { heading: "1.3", body: "1.7" },
2185
+ wcagReadable: true,
2186
+ mood: ["sophisticated", "literary", "warm"],
2187
+ bestFor: "Publishing, literary journals, premium blogs",
2188
+ pairing: "Serif + Sans (Warm & Readable)"
2189
+ },
2190
+ // === TECH ===
2191
+ {
2192
+ id: "volt",
2193
+ name: "Volt",
2194
+ description: "Bold and electric, one font for everything",
2195
+ category: "tech",
2196
+ heading: "Space Grotesk",
2197
+ body: "Space Grotesk",
2198
+ mono: "Fira Code",
2199
+ headingWeight: "700",
2200
+ bodyWeight: "400",
2201
+ letterSpacing: { heading: "-0.03em", body: "0" },
2202
+ lineHeight: { heading: "1.2", body: "1.6" },
2203
+ wcagReadable: true,
2204
+ mood: ["bold", "modern", "tech"],
2205
+ bestFor: "Tech startups, developer tools, portfolios",
2206
+ pairing: "Sans (Single Font)"
2207
+ },
2208
+ {
2209
+ id: "tech-mono",
2210
+ name: "Tech Monospace",
2211
+ description: "Monospace everything, for the hackers",
2212
+ category: "tech",
2213
+ heading: "JetBrains Mono",
2214
+ body: "JetBrains Mono",
2215
+ mono: "JetBrains Mono",
2216
+ headingWeight: "700",
2217
+ bodyWeight: "400",
2218
+ letterSpacing: { heading: "0", body: "0" },
2219
+ lineHeight: { heading: "1.2", body: "1.6" },
2220
+ wcagReadable: true,
2221
+ mood: ["tech", "hacker", "minimal"],
2222
+ bestFor: "Developer tools, coding tutorials, terminal UIs",
2223
+ pairing: "Mono (Single Font)"
2224
+ },
2225
+ {
2226
+ id: "dev-tools",
2227
+ name: "Dev Tools",
2228
+ description: "GitHub-inspired clean technical aesthetic",
2229
+ category: "tech",
2230
+ heading: "IBM Plex Sans",
2231
+ body: "IBM Plex Sans",
2232
+ mono: "IBM Plex Mono",
2233
+ headingWeight: "600",
2234
+ bodyWeight: "400",
2235
+ letterSpacing: { heading: "-0.01em", body: "0" },
2236
+ lineHeight: { heading: "1.2", body: "1.6" },
2237
+ wcagReadable: true,
2238
+ mood: ["technical", "precise", "modern"],
2239
+ bestFor: "Developer platforms, code editors, documentation",
2240
+ pairing: "Sans (IBM Plex Family)"
2241
+ },
2242
+ // === FRIENDLY ===
2243
+ {
2244
+ id: "friendly-rounded",
2245
+ name: "Friendly & Rounded",
2246
+ description: "Approachable and warm, great for consumer apps",
2247
+ category: "friendly",
2248
+ heading: "Quicksand",
2249
+ body: "Open Sans",
2250
+ mono: "Fira Code",
2251
+ headingWeight: "600",
2252
+ bodyWeight: "400",
2253
+ letterSpacing: { heading: "0", body: "0" },
2254
+ lineHeight: { heading: "1.3", body: "1.7" },
2255
+ wcagReadable: true,
2256
+ mood: ["friendly", "approachable", "warm"],
2257
+ bestFor: "Consumer apps, education, healthcare",
2258
+ pairing: "Rounded Sans + Humanist Sans"
2259
+ },
2260
+ {
2261
+ id: "warm-welcome",
2262
+ name: "Warm Welcome",
2263
+ description: "Inviting and accessible for all audiences",
2264
+ category: "friendly",
2265
+ heading: "Nunito",
2266
+ body: "Nunito Sans",
2267
+ mono: "Fira Code",
2268
+ headingWeight: "700",
2269
+ bodyWeight: "400",
2270
+ letterSpacing: { heading: "-0.01em", body: "0" },
2271
+ lineHeight: { heading: "1.3", body: "1.7" },
2272
+ wcagReadable: true,
2273
+ mood: ["welcoming", "friendly", "accessible"],
2274
+ bestFor: "Community platforms, education, non-profits",
2275
+ pairing: "Rounded Sans (Nunito Family)"
2276
+ },
2277
+ // === MINIMAL ===
2278
+ {
2279
+ id: "minimal-sans",
2280
+ name: "Minimal Sans",
2281
+ description: "Pure simplicity with Work Sans",
2282
+ category: "minimal",
2283
+ heading: "Work Sans",
2284
+ body: "Work Sans",
2285
+ mono: "Fira Code",
2286
+ headingWeight: "600",
2287
+ bodyWeight: "400",
2288
+ letterSpacing: { heading: "-0.02em", body: "0" },
2289
+ lineHeight: { heading: "1.2", body: "1.6" },
2290
+ wcagReadable: true,
2291
+ mood: ["minimal", "clean", "efficient"],
2292
+ bestFor: "Minimalist sites, portfolios, agencies",
2293
+ pairing: "Sans (Single Font)"
2294
+ },
2295
+ {
2296
+ id: "system-ui",
2297
+ name: "System UI",
2298
+ description: "Native system fonts for instant familiarity",
2299
+ category: "minimal",
2300
+ heading: "System UI",
2301
+ body: "System UI",
2302
+ mono: "SF Mono",
2303
+ headingWeight: "700",
2304
+ bodyWeight: "400",
2305
+ letterSpacing: { heading: "-0.01em", body: "0" },
2306
+ lineHeight: { heading: "1.2", body: "1.6" },
2307
+ wcagReadable: true,
2308
+ mood: ["native", "fast", "familiar"],
2309
+ bestFor: "Performance-critical apps, utilities, system tools",
2310
+ pairing: "System Fonts (Zero Load Time)"
2311
+ },
2312
+ // === LUXURY ===
2313
+ {
2314
+ id: "luxury-serif",
2315
+ name: "Luxury Serif",
2316
+ description: "Sophisticated and high-end",
2317
+ category: "luxury",
2318
+ heading: "Cormorant Garamond",
2319
+ body: "Raleway",
2320
+ mono: "Fira Code",
2321
+ headingWeight: "600",
2322
+ bodyWeight: "300",
2323
+ letterSpacing: { heading: "0.02em", body: "0.01em" },
2324
+ lineHeight: { heading: "1.3", body: "1.7" },
2325
+ wcagReadable: false,
2326
+ // Thinner weights
2327
+ mood: ["luxury", "elegant", "sophisticated"],
2328
+ bestFor: "Fashion, luxury brands, high-end services",
2329
+ pairing: "Serif + Thin Sans"
2330
+ },
2331
+ {
2332
+ id: "prestige",
2333
+ name: "Prestige",
2334
+ description: "Refined elegance with Bodoni-inspired display",
2335
+ category: "luxury",
2336
+ heading: "Libre Bodoni",
2337
+ body: "Montserrat",
2338
+ mono: "Fira Code",
2339
+ headingWeight: "700",
2340
+ bodyWeight: "300",
2341
+ letterSpacing: { heading: "0.03em", body: "0.02em" },
2342
+ lineHeight: { heading: "1.2", body: "1.7" },
2343
+ wcagReadable: false,
2344
+ // Display font + thin weight
2345
+ mood: ["prestige", "refined", "luxurious"],
2346
+ bestFor: "Luxury fashion, jewelry, premium services",
2347
+ pairing: "Serif Display + Geometric Sans"
2348
+ },
2349
+ // === CREATIVE ===
2350
+ {
2351
+ id: "creative-bold",
2352
+ name: "Creative Bold",
2353
+ description: "Strong personality with Poppins",
2354
+ category: "creative",
2355
+ heading: "Poppins",
2356
+ body: "Poppins",
2357
+ mono: "Fira Code",
2358
+ headingWeight: "700",
2359
+ bodyWeight: "400",
2360
+ letterSpacing: { heading: "-0.01em", body: "0" },
2361
+ lineHeight: { heading: "1.2", body: "1.6" },
2362
+ wcagReadable: true,
2363
+ mood: ["bold", "creative", "energetic"],
2364
+ bestFor: "Creative agencies, portfolios, marketing sites",
2365
+ pairing: "Geometric Sans (Single Font)"
2366
+ },
2367
+ {
2368
+ id: "artistic-flair",
2369
+ name: "Artistic Flair",
2370
+ description: "Expressive serif with modern sans",
2371
+ category: "creative",
2372
+ heading: "Abril Fatface",
2373
+ body: "Work Sans",
2374
+ mono: "Fira Code",
2375
+ headingWeight: "400",
2376
+ bodyWeight: "400",
2377
+ letterSpacing: { heading: "0", body: "0" },
2378
+ lineHeight: { heading: "1.1", body: "1.6" },
2379
+ wcagReadable: true,
2380
+ mood: ["artistic", "expressive", "bold"],
2381
+ bestFor: "Art galleries, creative studios, designer portfolios",
2382
+ pairing: "Display Serif + Neutral Sans"
2383
+ },
2384
+ // === PLAYFUL ===
2385
+ {
2386
+ id: "playful-rounded",
2387
+ name: "Playful Rounded",
2388
+ description: "Fun and energetic for youth audiences",
2389
+ category: "playful",
2390
+ heading: "Fredoka",
2391
+ body: "Karla",
2392
+ mono: "Fira Code",
2393
+ headingWeight: "700",
2394
+ bodyWeight: "400",
2395
+ letterSpacing: { heading: "0", body: "0" },
2396
+ lineHeight: { heading: "1.3", body: "1.6" },
2397
+ wcagReadable: true,
2398
+ mood: ["playful", "fun", "youthful"],
2399
+ bestFor: "Kids apps, games, entertainment",
2400
+ pairing: "Rounded Display + Grotesque Sans"
2401
+ }
2402
+ ];
2403
+ function getFontThemesByCategory(category) {
2404
+ return fontThemes.filter((ft) => ft.category === category);
2405
+ }
2406
+ function getFontThemesByMood(mood) {
2407
+ return fontThemes.filter(
2408
+ (ft) => ft.description.toLowerCase().includes(mood.toLowerCase()) || ft.bestFor?.toLowerCase().includes(mood.toLowerCase()) || ft.mood?.some((m) => m.toLowerCase().includes(mood.toLowerCase()))
2409
+ );
2410
+ }
2411
+ function getFontThemesForUseCase(useCase) {
2412
+ return fontThemes.filter(
2413
+ (ft) => ft.bestFor?.toLowerCase().includes(useCase.toLowerCase())
2414
+ );
2415
+ }
2416
+ function getAccessibleFontThemes() {
2417
+ return fontThemes.filter((ft) => ft.wcagReadable === true);
2418
+ }
2419
+ function getFontThemeById(id) {
2420
+ return fontThemes.find((ft) => ft.id === id);
2421
+ }
2422
+ function generateScale(fontTheme) {
2423
+ const headingWeight = parseInt(fontTheme.headingWeight || "700", 10);
2424
+ const bodyWeight = parseInt(fontTheme.bodyWeight || "400", 10);
2425
+ const headingLetterSpacing = fontTheme.letterSpacing?.heading || "-0.02em";
2426
+ const bodyLetterSpacing = fontTheme.letterSpacing?.body || "0";
2427
+ const headingLineHeight = parseFloat(fontTheme.lineHeight?.heading || "1.2");
2428
+ const bodyLineHeight = parseFloat(fontTheme.lineHeight?.body || "1.6");
2429
+ return {
2430
+ display: {
2431
+ fontFamily: fontTheme.heading,
2432
+ weight: Math.min(headingWeight + 100, 800),
2433
+ // Slightly bolder for display
2434
+ size: 96,
2435
+ lineHeight: 1.1,
2436
+ letterSpacing: "-0.03em"
2437
+ },
2438
+ h1: {
2439
+ fontFamily: fontTheme.heading,
2440
+ weight: headingWeight,
2441
+ size: 64,
2442
+ lineHeight: headingLineHeight,
2443
+ letterSpacing: headingLetterSpacing
2444
+ },
2445
+ h2: {
2446
+ fontFamily: fontTheme.heading,
2447
+ weight: Math.max(headingWeight - 100, 600),
2448
+ // Slightly lighter than H1
2449
+ size: 48,
2450
+ lineHeight: 1.3,
2451
+ letterSpacing: headingLetterSpacing === "-0.02em" ? "-0.01em" : headingLetterSpacing
2452
+ },
2453
+ h3: {
2454
+ fontFamily: fontTheme.heading,
2455
+ weight: Math.max(headingWeight - 100, 600),
2456
+ size: 36,
2457
+ lineHeight: 1.3,
2458
+ letterSpacing: "0"
2459
+ },
2460
+ h4: {
2461
+ fontFamily: fontTheme.heading,
2462
+ weight: Math.max(headingWeight - 100, 600),
2463
+ size: 24,
2464
+ lineHeight: 1.4,
2465
+ letterSpacing: "0"
2466
+ },
2467
+ body: {
2468
+ fontFamily: fontTheme.body,
2469
+ weight: bodyWeight,
2470
+ size: 16,
2471
+ lineHeight: bodyLineHeight,
2472
+ letterSpacing: bodyLetterSpacing
2473
+ },
2474
+ small: {
2475
+ fontFamily: fontTheme.body,
2476
+ weight: bodyWeight,
2477
+ size: 14,
2478
+ lineHeight: 1.5,
2479
+ letterSpacing: "0.01em"
2480
+ },
2481
+ code: {
2482
+ fontFamily: fontTheme.mono,
2483
+ weight: 400,
2484
+ // Code is typically regular weight
2485
+ size: 14,
2486
+ lineHeight: 1.4,
2487
+ letterSpacing: "0"
2488
+ }
2489
+ };
2490
+ }
2491
+
2492
+ // ../tokens/src/index.ts
2493
+ var THEME_NAMES = ["studio", "terra", "volt", "speedboat"];
2494
+ var PUBLIC_THEME_NAMES = ["studio", "terra", "volt"];
2495
+ var COLOR_MODES = ["light", "dark"];
2496
+ export {
2497
+ COLOR_MODES,
2498
+ PUBLIC_THEME_NAMES,
2499
+ THEME_NAMES,
2500
+ accentColorDerivations,
2501
+ adjustLightness,
2502
+ adjustOpacity,
2503
+ adjustSaturation,
2504
+ baseTokens,
2505
+ codeColors,
2506
+ colorPalettes,
2507
+ computeDerivedTokens,
2508
+ fontFamilies,
2509
+ fontLoadingConfig,
2510
+ fontSizes,
2511
+ fontThemes,
2512
+ fontWeights,
2513
+ generateScale,
2514
+ getAccessibleFontThemes,
2515
+ getAccessiblePalettes,
2516
+ getContrastRatio,
2517
+ getDependentTokens,
2518
+ getFontThemeById,
2519
+ getFontThemesByCategory,
2520
+ getFontThemesByMood,
2521
+ getFontThemesForUseCase,
2522
+ getFontVariable,
2523
+ getLuminance,
2524
+ getOptimalForeground,
2525
+ getPalettesByCategory,
2526
+ getPalettesByMood,
2527
+ getPalettesForUseCase,
2528
+ getResponsiveFontSize,
2529
+ getThemeFontVariables,
2530
+ hexToHSL,
2531
+ hexToRgb,
2532
+ hslToHex,
2533
+ letterSpacing,
2534
+ lineHeights,
2535
+ modeSpecificDerivations,
2536
+ motion,
2537
+ primaryColorDerivations,
2538
+ rotateHue,
2539
+ secondaryColorDerivations,
2540
+ semanticLetterSpacing,
2541
+ semanticLineHeights,
2542
+ semanticSizes,
2543
+ semanticWeights,
2544
+ spacing,
2545
+ speedboatTokens,
2546
+ studioTokens,
2547
+ syntaxColors,
2548
+ terraTokens,
2549
+ tokenDependencyGraph,
2550
+ typePresets,
2551
+ typography,
2552
+ typographySystem,
2553
+ voltTokens
2554
+ };
2555
+ //# sourceMappingURL=tokens.mjs.map