@arclux/arc-ui 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (135) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +64 -0
  3. package/package.json +186 -0
  4. package/src/content/accordion-item.js +27 -0
  5. package/src/content/accordion.js +151 -0
  6. package/src/content/animated-number.js +160 -0
  7. package/src/content/aspect-ratio.js +78 -0
  8. package/src/content/avatar-group.js +101 -0
  9. package/src/content/avatar.js +92 -0
  10. package/src/content/badge.js +98 -0
  11. package/src/content/callout.js +141 -0
  12. package/src/content/card.js +75 -0
  13. package/src/content/carousel.js +300 -0
  14. package/src/content/code-block.js +152 -0
  15. package/src/content/collapsible.js +142 -0
  16. package/src/content/color-swatch.js +86 -0
  17. package/src/content/column.js +28 -0
  18. package/src/content/data-table.js +332 -0
  19. package/src/content/divider.js +153 -0
  20. package/src/content/empty-state.js +78 -0
  21. package/src/content/feature-card.js +142 -0
  22. package/src/content/highlight.js +63 -0
  23. package/src/content/icon-library.js +30 -0
  24. package/src/content/icon-registry.js +39 -0
  25. package/src/content/icon.js +95 -0
  26. package/src/content/index.js +44 -0
  27. package/src/content/infinite-scroll.js +144 -0
  28. package/src/content/kbd.js +40 -0
  29. package/src/content/markdown.js +294 -0
  30. package/src/content/marquee.js +166 -0
  31. package/src/content/meter.js +167 -0
  32. package/src/content/scroll-area.js +107 -0
  33. package/src/content/skeleton.js +85 -0
  34. package/src/content/spinner.js +77 -0
  35. package/src/content/stack.js +68 -0
  36. package/src/content/stat.js +72 -0
  37. package/src/content/step.js +22 -0
  38. package/src/content/stepper.js +202 -0
  39. package/src/content/table.js +134 -0
  40. package/src/content/tag.js +156 -0
  41. package/src/content/text.js +111 -0
  42. package/src/content/timeline-item.js +29 -0
  43. package/src/content/timeline.js +170 -0
  44. package/src/content/truncate.js +161 -0
  45. package/src/content/value-card.js +94 -0
  46. package/src/feedback/alert.js +187 -0
  47. package/src/feedback/command-item.js +28 -0
  48. package/src/feedback/command-palette.js +346 -0
  49. package/src/feedback/context-menu.js +299 -0
  50. package/src/feedback/dialog.js +298 -0
  51. package/src/feedback/dropdown-menu.js +259 -0
  52. package/src/feedback/hover-card.js +186 -0
  53. package/src/feedback/index.js +17 -0
  54. package/src/feedback/modal.js +226 -0
  55. package/src/feedback/notification-panel.js +196 -0
  56. package/src/feedback/popover.js +184 -0
  57. package/src/feedback/progress.js +169 -0
  58. package/src/feedback/sheet.js +249 -0
  59. package/src/feedback/toast.js +207 -0
  60. package/src/feedback/tooltip.js +189 -0
  61. package/src/icons/lucide.d.ts +1915 -0
  62. package/src/icons/lucide.js +1915 -0
  63. package/src/icons/phosphor.d.ts +1517 -0
  64. package/src/icons/phosphor.js +1517 -0
  65. package/src/icons/types.d.ts +8 -0
  66. package/src/index.js +9 -0
  67. package/src/input/button.js +127 -0
  68. package/src/input/calendar.js +340 -0
  69. package/src/input/checkbox.js +159 -0
  70. package/src/input/chip.js +120 -0
  71. package/src/input/color-picker.js +461 -0
  72. package/src/input/combobox.js +295 -0
  73. package/src/input/copy-button.js +144 -0
  74. package/src/input/date-picker.js +534 -0
  75. package/src/input/file-upload.js +333 -0
  76. package/src/input/form.js +179 -0
  77. package/src/input/icon-button.js +179 -0
  78. package/src/input/index.js +31 -0
  79. package/src/input/input.js +158 -0
  80. package/src/input/multi-select.js +392 -0
  81. package/src/input/number-input.js +239 -0
  82. package/src/input/otp-input.js +221 -0
  83. package/src/input/pin-input.js +294 -0
  84. package/src/input/radio-group.js +177 -0
  85. package/src/input/radio.js +28 -0
  86. package/src/input/rating.js +195 -0
  87. package/src/input/search.js +371 -0
  88. package/src/input/segmented-control.js +174 -0
  89. package/src/input/select.js +267 -0
  90. package/src/input/slider.js +217 -0
  91. package/src/input/sortable-list.js +345 -0
  92. package/src/input/suggestion.js +26 -0
  93. package/src/input/textarea.js +203 -0
  94. package/src/input/theme-toggle.js +196 -0
  95. package/src/input/toggle.js +166 -0
  96. package/src/layout/app-shell.js +266 -0
  97. package/src/layout/auth-shell.js +153 -0
  98. package/src/layout/container.js +37 -0
  99. package/src/layout/dashboard-grid.js +62 -0
  100. package/src/layout/index.js +15 -0
  101. package/src/layout/page-header.js +100 -0
  102. package/src/layout/page-layout.js +112 -0
  103. package/src/layout/resizable.js +221 -0
  104. package/src/layout/section.js +54 -0
  105. package/src/layout/settings-layout.js +91 -0
  106. package/src/layout/split-pane.js +172 -0
  107. package/src/layout/status-bar.js +84 -0
  108. package/src/layout/toolbar.js +92 -0
  109. package/src/navigation/breadcrumb-item.js +26 -0
  110. package/src/navigation/breadcrumb.js +129 -0
  111. package/src/navigation/drawer.js +183 -0
  112. package/src/navigation/footer.js +99 -0
  113. package/src/navigation/index.js +22 -0
  114. package/src/navigation/link.js +120 -0
  115. package/src/navigation/nav-item.js +46 -0
  116. package/src/navigation/navigation-menu.js +687 -0
  117. package/src/navigation/pagination.js +186 -0
  118. package/src/navigation/scroll-spy.js +198 -0
  119. package/src/navigation/scroll-to-top.js +163 -0
  120. package/src/navigation/sidebar-link.js +28 -0
  121. package/src/navigation/sidebar-section.js +45 -0
  122. package/src/navigation/sidebar.js +336 -0
  123. package/src/navigation/spy-link.js +26 -0
  124. package/src/navigation/tab.js +26 -0
  125. package/src/navigation/tabs.js +202 -0
  126. package/src/navigation/top-bar.js +263 -0
  127. package/src/navigation/tree-item.js +38 -0
  128. package/src/navigation/tree-view.js +255 -0
  129. package/src/shared/index.js +6 -0
  130. package/src/shared/menu-divider.js +9 -0
  131. package/src/shared/menu-item.js +30 -0
  132. package/src/shared/option.js +31 -0
  133. package/src/shared-styles.js +81 -0
  134. package/src/tokens.js +445 -0
  135. package/types/index.d.ts +973 -0
@@ -0,0 +1,81 @@
1
+ import { css } from 'lit';
2
+
3
+ /**
4
+ * Shared CSS custom properties injected into every ARC UI component's shadow DOM.
5
+ *
6
+ * Theme-sensitive tokens (colors, gradients, glows, shadows) are NOT set here.
7
+ * They inherit from tokens.css on the document root, which handles
8
+ * dark/light/auto themes and .theme-fixed overrides.
9
+ *
10
+ * Only static tokens (typography, spacing, radii, transitions, layout) live here
11
+ * as fallback defaults.
12
+ */
13
+ export const tokenStyles = css`
14
+ :host {
15
+ --font-body: 'Host Grotesk', system-ui, sans-serif;
16
+ --font-accent: 'Tektur', system-ui, sans-serif;
17
+ --font-mono: 'JetBrains Mono', ui-monospace, monospace;
18
+
19
+ --display-xl-size: clamp(36px, 5vw, 52px);
20
+ --display-xl-weight: 500;
21
+ --display-xl-spacing: -1px;
22
+ --heading-size: clamp(22px, 2.5vw, 26px);
23
+ --heading-weight: 500;
24
+ --text-3xl: clamp(28px, 3vw, 36px);
25
+ --text-lg: clamp(18px, 1.5vw, 20px);
26
+ --body-size: clamp(15px, 1.2vw, 16px);
27
+ --body-weight: 500;
28
+ --body-lh: 1.7;
29
+ --wordmark-size: clamp(20px, 2.5vw, 28px);
30
+ --wordmark-weight: 500;
31
+ --wordmark-spacing: clamp(8px, 1.2vw, 14px);
32
+ --section-title-size: 12px;
33
+ --section-title-weight: 600;
34
+ --section-title-spacing: 4px;
35
+ --ui-accent-size: 16px;
36
+ --ui-accent-weight: 600;
37
+ --ui-accent-spacing: 1px;
38
+ --code-size: 13px;
39
+ --code-lh: 1.8;
40
+ --label-inline-size: 10px;
41
+ --label-inline-spacing: 3px;
42
+
43
+ --space-xs: 4px;
44
+ --space-sm: 8px;
45
+ --space-md: 16px;
46
+ --space-lg: 24px;
47
+ --space-xl: 40px;
48
+ --space-2xl: 64px;
49
+ --space-3xl: 96px;
50
+ --space-4xl: 128px;
51
+
52
+ --radius-sm: 4px;
53
+ --radius-md: 10px;
54
+ --radius-lg: 14px;
55
+ --radius-xl: 20px;
56
+ --radius-full: 9999px;
57
+
58
+ --transition-fast: 120ms ease;
59
+ --transition-base: 200ms ease;
60
+ --transition-slow: 400ms ease;
61
+
62
+ --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
63
+ --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
64
+ --duration-enter: 500ms;
65
+ --duration-exit: 300ms;
66
+
67
+ --touch-min: 24px;
68
+ --touch-pad: 4px;
69
+
70
+ --max-width: 1120px;
71
+ --max-width-sm: 720px;
72
+ --nav-height: 64px;
73
+ }
74
+
75
+ @media (pointer: coarse) {
76
+ :host {
77
+ --touch-min: 42px;
78
+ --touch-pad: 10px;
79
+ }
80
+ }
81
+ `;
package/src/tokens.js ADDED
@@ -0,0 +1,445 @@
1
+ /**
2
+ * Arclight Design Tokens
3
+ * Single source of truth — extracted from arclight.build
4
+ */
5
+
6
+ export const tokens = {
7
+ /* ── Backgrounds ── */
8
+ color: {
9
+ bgDeep: 'rgb(3, 3, 7)',
10
+ bgSurface: 'rgb(10, 10, 15)',
11
+ bgBase: 'rgb(10, 10, 15)',
12
+ bgCard: 'rgb(13, 13, 18)',
13
+ bgElevated: 'rgb(17, 17, 22)',
14
+
15
+ /* Text */
16
+ textPrimary: 'rgb(232, 232, 236)',
17
+ textSecondary: 'rgb(138, 138, 150)',
18
+ textMuted: 'rgb(124, 124, 137)',
19
+ textGhost: 'rgb(107, 107, 128)',
20
+
21
+ /* Borders */
22
+ borderSubtle: 'rgb(24, 24, 30)',
23
+ borderDefault: 'rgb(34, 34, 41)',
24
+ borderBright: 'rgb(51, 51, 64)',
25
+
26
+ /* Accent */
27
+ accentBlue: 'rgb(77, 126, 247)',
28
+ accentViolet: 'rgb(139, 92, 246)',
29
+
30
+ /* Feedback */
31
+ success: 'rgb(52, 211, 153)',
32
+ error: 'rgb(239, 68, 68)',
33
+ warning: 'rgb(245, 158, 11)',
34
+ info: 'rgb(59, 130, 246)',
35
+ },
36
+
37
+ /* RGB channels (for alpha compositing) */
38
+ rgb: {
39
+ accentBlue: '77, 126, 247',
40
+ accentViolet: '139, 92, 246',
41
+ textPrimary: '232, 232, 236',
42
+ textMuted: '124, 124, 137',
43
+ error: '239, 68, 68',
44
+ success: '52, 211, 153',
45
+ warning: '245, 158, 11',
46
+ info: '59, 130, 246',
47
+ white: '255, 255, 255',
48
+ black: '0, 0, 0',
49
+ },
50
+
51
+ /* ── Typography ── */
52
+ font: {
53
+ body: "'Host Grotesk', system-ui, sans-serif",
54
+ accent: "'Tektur', system-ui, sans-serif",
55
+ mono: "'JetBrains Mono', ui-monospace, monospace",
56
+ },
57
+
58
+ fontSize: {
59
+ xs: '12px',
60
+ sm: '14px',
61
+ md: '15px',
62
+ lg: 'clamp(18px, 1.5vw, 20px)',
63
+ xl: 'clamp(22px, 2.5vw, 26px)',
64
+ '2xl': 'clamp(28px, 3vw, 36px)',
65
+ '3xl': 'clamp(36px, 5vw, 52px)',
66
+ displayXl: 'var(--text-3xl)',
67
+ heading: 'var(--text-xl)',
68
+ body: 'var(--text-md)',
69
+ wordmark: 'clamp(20px, 2.5vw, 28px)',
70
+ sectionTitle: 'var(--text-xs)',
71
+ uiAccent: '16px',
72
+ code: 'var(--text-sm)',
73
+ labelInline: 'var(--text-xs)',
74
+ },
75
+
76
+ fontWeight: {
77
+ displayXl: 500,
78
+ heading: 500,
79
+ body: 500,
80
+ wordmark: 500,
81
+ sectionTitle: 600,
82
+ uiAccent: 600,
83
+ },
84
+
85
+ letterSpacing: {
86
+ displayXl: '-1px',
87
+ sectionTitle: '4px',
88
+ uiAccent: '1px',
89
+ wordmark: 'clamp(8px, 1.2vw, 14px)',
90
+ },
91
+
92
+ lineHeight: {
93
+ body: 1.7,
94
+ code: 1.8,
95
+ heading: 1.2,
96
+ },
97
+
98
+ /* ── Spacing ── */
99
+ space: {
100
+ xs: '4px',
101
+ sm: '8px',
102
+ md: '16px',
103
+ lg: '24px',
104
+ xl: '40px',
105
+ '2xl': '64px',
106
+ '3xl': '96px',
107
+ '4xl': '128px',
108
+ },
109
+
110
+ /* ── Radii ── */
111
+ radius: {
112
+ sm: '4px',
113
+ md: '10px',
114
+ lg: '14px',
115
+ xl: '20px',
116
+ full: '9999px',
117
+ },
118
+
119
+ /* ── Transitions ── */
120
+ transition: {
121
+ fast: '120ms ease',
122
+ base: '200ms ease',
123
+ slow: '400ms ease',
124
+ },
125
+
126
+ /* ── Motion ── */
127
+ easing: {
128
+ outExpo: 'cubic-bezier(0.16, 1, 0.3, 1)',
129
+ inOut: 'cubic-bezier(0.4, 0, 0.2, 1)',
130
+ },
131
+
132
+ duration: {
133
+ enter: '500ms',
134
+ exit: '300ms',
135
+ },
136
+
137
+ /* ── Shadows ── */
138
+ shadow: {
139
+ xs: '0 1px 2px rgba(0, 0, 0, 0.2)',
140
+ sm: '0 2px 4px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.15)',
141
+ md: '0 4px 12px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.15)',
142
+ lg: '0 8px 24px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.15)',
143
+ xl: '0 16px 48px rgba(0, 0, 0, 0.35), 0 8px 16px rgba(0, 0, 0, 0.15)',
144
+ overlay: '0 8px 32px rgba(0, 0, 0, 0.4)',
145
+ },
146
+
147
+ /* ── Z-Index ── */
148
+ zIndex: {
149
+ base: 0,
150
+ dropdown: 100,
151
+ sticky: 200,
152
+ drawer: 300,
153
+ modal: 400,
154
+ popover: 500,
155
+ toast: 600,
156
+ tooltip: 700,
157
+ max: 9999,
158
+ },
159
+
160
+ /* ── Breakpoints ── */
161
+ breakpoint: {
162
+ xs: '480px',
163
+ sm: '640px',
164
+ md: '768px',
165
+ lg: '1024px',
166
+ xl: '1280px',
167
+ '2xl': '1536px',
168
+ },
169
+
170
+ /* ── Opacity ── */
171
+ opacity: {
172
+ disabled: 0.5,
173
+ muted: 0.6,
174
+ hover: 0.8,
175
+ visible: 1,
176
+ },
177
+
178
+ /* ── Interactive ── */
179
+ touch: {
180
+ min: '44px',
181
+ pad: '12px',
182
+ },
183
+
184
+ /* ── Layout ── */
185
+ layout: {
186
+ maxWidth: '1120px',
187
+ maxWidthSm: '720px',
188
+ navHeight: '64px',
189
+ },
190
+
191
+ /* ── Gradients ── */
192
+ gradient: {
193
+ displayText: 'linear-gradient(135deg, rgb(232, 232, 236) 0%, rgb(124, 124, 137) 100%)',
194
+ accentText: 'linear-gradient(90deg, rgb(77, 126, 247), rgb(139, 92, 246))',
195
+ divider: 'linear-gradient(90deg, transparent, rgb(24, 24, 30), transparent)',
196
+ dividerGlow: 'linear-gradient(90deg, transparent, rgba(77,126,247,0.2), rgba(139,92,246,0.12), transparent)',
197
+ },
198
+
199
+ /* ── Glow (box-shadow presets) ── */
200
+ glow: {
201
+ white: '0 0 6px rgba(232,232,236,0.6), 0 0 18px rgba(232,232,236,0.25), 0 0 40px rgba(232,232,236,0.1)',
202
+ blue: '0 0 8px rgba(77,126,247,0.9), 0 0 20px rgba(77,126,247,0.5), 0 0 44px rgba(77,126,247,0.25), 0 0 80px rgba(77,126,247,0.1)',
203
+ violet: '0 0 8px rgba(139,92,246,0.9), 0 0 20px rgba(139,92,246,0.5), 0 0 44px rgba(139,92,246,0.25), 0 0 80px rgba(139,92,246,0.1)',
204
+ },
205
+
206
+ /* ── Card / Ambient Glow ── */
207
+ glowCard: {
208
+ hover: '0 0 20px rgba(77,126,247,0.08), 0 0 40px rgba(139,92,246,0.04)',
209
+ },
210
+
211
+ /* ── Focus ── */
212
+ focus: {
213
+ ring: '0 0 0 2px rgb(3, 3, 7), 0 0 0 4px rgb(77, 126, 247)',
214
+ glow: '0 0 0 2px rgb(3, 3, 7), 0 0 0 4px rgb(77, 126, 247), 0 0 16px rgba(77,126,247,0.3)',
215
+ },
216
+ };
217
+
218
+ /** CSS custom properties string — inject into :host or :root */
219
+ export const cssVariables = `
220
+ --bg-deep: ${tokens.color.bgDeep};
221
+ --bg-surface: ${tokens.color.bgSurface};
222
+ --bg-base: ${tokens.color.bgBase};
223
+ --bg-card: ${tokens.color.bgCard};
224
+ --bg-elevated: ${tokens.color.bgElevated};
225
+
226
+ --text-primary: ${tokens.color.textPrimary};
227
+ --text-secondary: ${tokens.color.textSecondary};
228
+ --text-muted: ${tokens.color.textMuted};
229
+ --text-ghost: ${tokens.color.textGhost};
230
+
231
+ --border-subtle: ${tokens.color.borderSubtle};
232
+ --border-default: ${tokens.color.borderDefault};
233
+ --border-bright: ${tokens.color.borderBright};
234
+
235
+ --accent-primary: ${tokens.color.accentBlue};
236
+ --accent-secondary: ${tokens.color.accentViolet};
237
+ --accent-primary-rgb: ${tokens.rgb.accentBlue};
238
+ --accent-secondary-rgb: ${tokens.rgb.accentViolet};
239
+ --text-primary-rgb: ${tokens.rgb.textPrimary};
240
+ --text-muted-rgb: ${tokens.rgb.textMuted};
241
+ --color-error-rgb: ${tokens.rgb.error};
242
+ --white-rgb: ${tokens.rgb.white};
243
+ --black-rgb: ${tokens.rgb.black};
244
+
245
+ --accent-primary-subtle: rgba(${tokens.rgb.accentBlue}, 0.06);
246
+ --accent-primary-border: rgba(${tokens.rgb.accentBlue}, 0.12);
247
+ --accent-primary-glow: rgba(${tokens.rgb.accentBlue}, 0.2);
248
+ --accent-primary-ring: rgba(${tokens.rgb.accentBlue}, 0.15);
249
+ --accent-secondary-subtle: rgba(${tokens.rgb.accentViolet}, 0.06);
250
+ --accent-secondary-border: rgba(${tokens.rgb.accentViolet}, 0.12);
251
+ --accent-secondary-glow: rgba(${tokens.rgb.accentViolet}, 0.2);
252
+
253
+ --color-success: ${tokens.color.success};
254
+ --color-success-rgb: ${tokens.rgb.success};
255
+ --color-error: ${tokens.color.error};
256
+ --color-error-subtle: rgba(${tokens.rgb.error}, 0.1);
257
+ --color-warning: ${tokens.color.warning};
258
+ --color-warning-rgb: ${tokens.rgb.warning};
259
+ --color-warning-subtle: rgba(${tokens.rgb.warning}, 0.1);
260
+ --color-info: ${tokens.color.info};
261
+ --color-info-rgb: ${tokens.rgb.info};
262
+ --color-info-subtle: rgba(${tokens.rgb.info}, 0.1);
263
+
264
+ --shadow-xs: ${tokens.shadow.xs};
265
+ --shadow-sm: ${tokens.shadow.sm};
266
+ --shadow-md: ${tokens.shadow.md};
267
+ --shadow-lg: ${tokens.shadow.lg};
268
+ --shadow-xl: ${tokens.shadow.xl};
269
+ --shadow-overlay: ${tokens.shadow.overlay};
270
+
271
+ --z-base: ${tokens.zIndex.base};
272
+ --z-dropdown: ${tokens.zIndex.dropdown};
273
+ --z-sticky: ${tokens.zIndex.sticky};
274
+ --z-drawer: ${tokens.zIndex.drawer};
275
+ --z-modal: ${tokens.zIndex.modal};
276
+ --z-popover: ${tokens.zIndex.popover};
277
+ --z-toast: ${tokens.zIndex.toast};
278
+ --z-tooltip: ${tokens.zIndex.tooltip};
279
+ --z-max: ${tokens.zIndex.max};
280
+
281
+ --breakpoint-xs: ${tokens.breakpoint.xs};
282
+ --breakpoint-sm: ${tokens.breakpoint.sm};
283
+ --breakpoint-md: ${tokens.breakpoint.md};
284
+ --breakpoint-lg: ${tokens.breakpoint.lg};
285
+ --breakpoint-xl: ${tokens.breakpoint.xl};
286
+ --breakpoint-2xl: ${tokens.breakpoint['2xl']};
287
+
288
+ --opacity-disabled: ${tokens.opacity.disabled};
289
+ --opacity-muted: ${tokens.opacity.muted};
290
+ --opacity-hover: ${tokens.opacity.hover};
291
+ --opacity-visible: ${tokens.opacity.visible};
292
+
293
+ --font-body: ${tokens.font.body};
294
+ --font-accent: ${tokens.font.accent};
295
+ --font-mono: ${tokens.font.mono};
296
+
297
+ --text-xs: ${tokens.fontSize.xs};
298
+ --text-sm: ${tokens.fontSize.sm};
299
+ --text-md: ${tokens.fontSize.md};
300
+ --text-lg: ${tokens.fontSize.lg};
301
+ --text-xl: ${tokens.fontSize.xl};
302
+ --text-2xl: ${tokens.fontSize['2xl']};
303
+ --text-3xl: ${tokens.fontSize['3xl']};
304
+
305
+ --display-xl-size: ${tokens.fontSize.displayXl};
306
+ --display-xl-weight: ${tokens.fontWeight.displayXl};
307
+ --display-xl-spacing: ${tokens.letterSpacing.displayXl};
308
+ --heading-size: ${tokens.fontSize.heading};
309
+ --heading-weight: ${tokens.fontWeight.heading};
310
+ --heading-lh: ${tokens.lineHeight.heading};
311
+ --body-size: ${tokens.fontSize.body};
312
+ --body-weight: ${tokens.fontWeight.body};
313
+ --body-lh: ${tokens.lineHeight.body};
314
+ --wordmark-size: ${tokens.fontSize.wordmark};
315
+ --wordmark-weight: ${tokens.fontWeight.wordmark};
316
+ --wordmark-spacing: ${tokens.letterSpacing.wordmark};
317
+ --section-title-size: ${tokens.fontSize.sectionTitle};
318
+ --section-title-weight: ${tokens.fontWeight.sectionTitle};
319
+ --section-title-spacing: ${tokens.letterSpacing.sectionTitle};
320
+ --ui-accent-size: ${tokens.fontSize.uiAccent};
321
+ --ui-accent-weight: ${tokens.fontWeight.uiAccent};
322
+ --ui-accent-spacing: ${tokens.letterSpacing.uiAccent};
323
+ --code-size: ${tokens.fontSize.code};
324
+ --code-lh: ${tokens.lineHeight.code};
325
+ --label-inline-size: ${tokens.fontSize.labelInline};
326
+ --label-inline-spacing: 3px;
327
+
328
+ --touch-min: ${tokens.touch.min};
329
+ --touch-pad: ${tokens.touch.pad};
330
+
331
+ --space-xs: ${tokens.space.xs};
332
+ --space-sm: ${tokens.space.sm};
333
+ --space-md: ${tokens.space.md};
334
+ --space-lg: ${tokens.space.lg};
335
+ --space-xl: ${tokens.space.xl};
336
+ --space-2xl: ${tokens.space['2xl']};
337
+ --space-3xl: ${tokens.space['3xl']};
338
+ --space-4xl: ${tokens.space['4xl']};
339
+
340
+ --radius-sm: ${tokens.radius.sm};
341
+ --radius-md: ${tokens.radius.md};
342
+ --radius-lg: ${tokens.radius.lg};
343
+ --radius-xl: ${tokens.radius.xl};
344
+ --radius-full: ${tokens.radius.full};
345
+
346
+ --transition-fast: ${tokens.transition.fast};
347
+ --transition-base: ${tokens.transition.base};
348
+ --transition-slow: ${tokens.transition.slow};
349
+
350
+ --ease-out-expo: ${tokens.easing.outExpo};
351
+ --ease-in-out: ${tokens.easing.inOut};
352
+ --duration-enter: ${tokens.duration.enter};
353
+ --duration-exit: ${tokens.duration.exit};
354
+
355
+ --gradient-display-text: ${tokens.gradient.displayText};
356
+ --gradient-accent-text: ${tokens.gradient.accentText};
357
+ --gradient-divider: ${tokens.gradient.divider};
358
+ --gradient-divider-glow: ${tokens.gradient.dividerGlow};
359
+ --gradient-page-ambient: radial-gradient(ellipse, rgba(${tokens.rgb.white},0.015) 0%, transparent 70%);
360
+
361
+ --glow-white: ${tokens.glow.white};
362
+ --glow-primary: ${tokens.glow.blue};
363
+ --glow-secondary: ${tokens.glow.violet};
364
+
365
+ --glow-line-white: linear-gradient(90deg, transparent, rgba(${tokens.rgb.textPrimary},0.35), transparent);
366
+ --glow-line-blue: linear-gradient(90deg, transparent, rgba(${tokens.rgb.accentBlue},0.7), transparent);
367
+ --glow-line-gradient: linear-gradient(90deg, transparent, ${tokens.color.accentBlue}, ${tokens.color.accentViolet}, transparent);
368
+
369
+ --glow-card-hover: ${tokens.glowCard.hover};
370
+ --gradient-border-glow: linear-gradient(135deg, rgba(${tokens.rgb.accentBlue},0.15), rgba(${tokens.rgb.accentViolet},0.1), rgba(${tokens.rgb.accentBlue},0.05));
371
+ --gradient-ambient: radial-gradient(circle at 15% 85%, rgba(${tokens.rgb.accentBlue},0.04) 0%, transparent 50%),
372
+ radial-gradient(circle at 85% 15%, rgba(${tokens.rgb.accentViolet},0.03) 0%, transparent 50%);
373
+
374
+ --focus-ring: ${tokens.focus.ring};
375
+ --focus-glow: ${tokens.focus.glow};
376
+
377
+ --max-width: ${tokens.layout.maxWidth};
378
+ --max-width-sm: ${tokens.layout.maxWidthSm};
379
+ --nav-height: ${tokens.layout.navHeight};
380
+
381
+ --bg-hover: rgba(${tokens.rgb.white}, 0.04);
382
+ --overlay-backdrop: rgba(${tokens.rgb.black}, 0.6);
383
+ `;
384
+
385
+ /** Light theme color overrides */
386
+ export const lightTokens = {
387
+ color: {
388
+ bgDeep: 'rgb(242, 242, 248)',
389
+ bgSurface: 'rgb(248, 248, 252)',
390
+ bgBase: 'rgb(244, 244, 250)',
391
+ bgCard: 'rgb(248, 248, 252)',
392
+ bgElevated: 'rgb(238, 238, 246)',
393
+ textPrimary: 'rgb(35, 35, 55)',
394
+ textSecondary: 'rgb(85, 88, 108)',
395
+ textMuted: 'rgb(115, 118, 140)',
396
+ textGhost: 'rgb(150, 152, 172)',
397
+ borderSubtle: 'rgb(230, 232, 238)',
398
+ borderDefault: 'rgb(210, 214, 222)',
399
+ borderBright: 'rgb(190, 195, 205)',
400
+ accentBlue: 'rgb(55, 105, 235)',
401
+ accentViolet: 'rgb(120, 70, 230)',
402
+ },
403
+ rgb: {
404
+ accentBlue: '55, 105, 235',
405
+ accentViolet: '120, 70, 230',
406
+ textPrimary: '35, 35, 55',
407
+ textMuted: '115, 118, 140',
408
+ },
409
+ glow: {
410
+ blue: '0 0 8px rgba(55,105,235,0.5), 0 0 24px rgba(55,105,235,0.2), 0 0 48px rgba(55,105,235,0.08)',
411
+ violet: '0 0 8px rgba(120,70,230,0.5), 0 0 24px rgba(120,70,230,0.2), 0 0 48px rgba(120,70,230,0.08)',
412
+ white: '0 0 8px rgba(55,105,235,0.15), 0 0 20px rgba(120,70,230,0.08)',
413
+ },
414
+ glowCard: {
415
+ hover: '0 0 20px rgba(55,105,235,0.12), 0 0 40px rgba(120,70,230,0.06)',
416
+ },
417
+ shadow: {
418
+ xs: '0 1px 2px rgba(55,105,235,0.06)',
419
+ sm: '0 2px 4px rgba(55,105,235,0.08), 0 1px 2px rgba(120,70,230,0.04)',
420
+ md: '0 4px 12px rgba(55,105,235,0.1), 0 2px 4px rgba(120,70,230,0.05)',
421
+ lg: '0 8px 24px rgba(55,105,235,0.12), 0 4px 8px rgba(120,70,230,0.06)',
422
+ xl: '0 16px 48px rgba(55,105,235,0.14), 0 8px 16px rgba(120,70,230,0.07)',
423
+ overlay: '0 4px 24px rgba(55,105,235,0.1), 0 8px 48px rgba(120,70,230,0.06)',
424
+ },
425
+ };
426
+
427
+ /** Fixed dark tokens for nav/footer regions */
428
+ export const fixedDarkTokens = {
429
+ color: {
430
+ bgDeep: 'rgb(3, 3, 7)',
431
+ bgSurface: 'rgb(10, 10, 15)',
432
+ bgBase: 'rgb(10, 10, 15)',
433
+ bgCard: 'rgb(13, 13, 18)',
434
+ bgElevated: 'rgb(17, 17, 22)',
435
+ textPrimary: 'rgb(232, 232, 236)',
436
+ textSecondary: 'rgb(138, 138, 150)',
437
+ textMuted: 'rgb(124, 124, 137)',
438
+ textGhost: 'rgb(107, 107, 128)',
439
+ borderSubtle: 'rgb(24, 24, 30)',
440
+ borderDefault: 'rgb(34, 34, 41)',
441
+ borderBright: 'rgb(51, 51, 64)',
442
+ },
443
+ };
444
+
445
+ export default tokens;