@portel/photon-core 1.4.0 → 2.1.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 (169) hide show
  1. package/README.md +123 -0
  2. package/dist/auto-ui.d.ts +103 -0
  3. package/dist/auto-ui.d.ts.map +1 -0
  4. package/dist/auto-ui.js +275 -0
  5. package/dist/auto-ui.js.map +1 -0
  6. package/dist/base.d.ts +9 -2
  7. package/dist/base.d.ts.map +1 -1
  8. package/dist/base.js +23 -10
  9. package/dist/base.js.map +1 -1
  10. package/dist/cli-ui-renderer.d.ts +31 -0
  11. package/dist/cli-ui-renderer.d.ts.map +1 -0
  12. package/dist/cli-ui-renderer.js +224 -0
  13. package/dist/cli-ui-renderer.js.map +1 -0
  14. package/dist/dependency-manager.d.ts.map +1 -1
  15. package/dist/dependency-manager.js +0 -1
  16. package/dist/dependency-manager.js.map +1 -1
  17. package/dist/design-system/index.d.ts +21 -0
  18. package/dist/design-system/index.d.ts.map +1 -0
  19. package/dist/design-system/index.js +27 -0
  20. package/dist/design-system/index.js.map +1 -0
  21. package/dist/design-system/tokens.d.ts +149 -0
  22. package/dist/design-system/tokens.d.ts.map +1 -0
  23. package/dist/design-system/tokens.js +413 -0
  24. package/dist/design-system/tokens.js.map +1 -0
  25. package/dist/design-system/transaction-ui.d.ts +70 -0
  26. package/dist/design-system/transaction-ui.d.ts.map +1 -0
  27. package/dist/design-system/transaction-ui.js +982 -0
  28. package/dist/design-system/transaction-ui.js.map +1 -0
  29. package/dist/generator.d.ts +58 -8
  30. package/dist/generator.d.ts.map +1 -1
  31. package/dist/generator.js +9 -4
  32. package/dist/generator.js.map +1 -1
  33. package/dist/index.d.ts +10 -7
  34. package/dist/index.d.ts.map +1 -1
  35. package/dist/index.js +48 -44
  36. package/dist/index.js.map +1 -1
  37. package/dist/io.d.ts +395 -0
  38. package/dist/io.d.ts.map +1 -0
  39. package/dist/io.js +304 -0
  40. package/dist/io.js.map +1 -0
  41. package/dist/path-resolver.d.ts.map +1 -1
  42. package/dist/path-resolver.js +2 -1
  43. package/dist/path-resolver.js.map +1 -1
  44. package/dist/rendering/components.d.ts +29 -0
  45. package/dist/rendering/components.d.ts.map +1 -0
  46. package/dist/rendering/components.js +773 -0
  47. package/dist/rendering/components.js.map +1 -0
  48. package/dist/rendering/field-analyzer.d.ts +48 -0
  49. package/dist/rendering/field-analyzer.d.ts.map +1 -0
  50. package/dist/rendering/field-analyzer.js +270 -0
  51. package/dist/rendering/field-analyzer.js.map +1 -0
  52. package/dist/rendering/field-renderers.d.ts +64 -0
  53. package/dist/rendering/field-renderers.d.ts.map +1 -0
  54. package/dist/rendering/field-renderers.js +317 -0
  55. package/dist/rendering/field-renderers.js.map +1 -0
  56. package/dist/rendering/index.d.ts +28 -0
  57. package/dist/rendering/index.d.ts.map +1 -0
  58. package/dist/rendering/index.js +60 -0
  59. package/dist/rendering/index.js.map +1 -0
  60. package/dist/rendering/layout-selector.d.ts +48 -0
  61. package/dist/rendering/layout-selector.d.ts.map +1 -0
  62. package/dist/rendering/layout-selector.js +347 -0
  63. package/dist/rendering/layout-selector.js.map +1 -0
  64. package/dist/rendering/template-engine.d.ts +41 -0
  65. package/dist/rendering/template-engine.d.ts.map +1 -0
  66. package/dist/rendering/template-engine.js +236 -0
  67. package/dist/rendering/template-engine.js.map +1 -0
  68. package/dist/schema-extractor.d.ts +30 -0
  69. package/dist/schema-extractor.d.ts.map +1 -1
  70. package/dist/schema-extractor.js +205 -12
  71. package/dist/schema-extractor.js.map +1 -1
  72. package/dist/stateful.d.ts +63 -0
  73. package/dist/stateful.d.ts.map +1 -1
  74. package/dist/stateful.js +222 -0
  75. package/dist/stateful.js.map +1 -1
  76. package/dist/types.d.ts +9 -1
  77. package/dist/types.d.ts.map +1 -1
  78. package/dist/types.js.map +1 -1
  79. package/dist/ucp/ap2/handlers.d.ts +242 -0
  80. package/dist/ucp/ap2/handlers.d.ts.map +1 -0
  81. package/dist/ucp/ap2/handlers.js +482 -0
  82. package/dist/ucp/ap2/handlers.js.map +1 -0
  83. package/dist/ucp/ap2/mandates.d.ts +95 -0
  84. package/dist/ucp/ap2/mandates.d.ts.map +1 -0
  85. package/dist/ucp/ap2/mandates.js +234 -0
  86. package/dist/ucp/ap2/mandates.js.map +1 -0
  87. package/dist/ucp/ap2/types.d.ts +305 -0
  88. package/dist/ucp/ap2/types.d.ts.map +1 -0
  89. package/dist/ucp/ap2/types.js +8 -0
  90. package/dist/ucp/ap2/types.js.map +1 -0
  91. package/dist/ucp/capabilities/checkout.d.ts +118 -0
  92. package/dist/ucp/capabilities/checkout.d.ts.map +1 -0
  93. package/dist/ucp/capabilities/checkout.js +344 -0
  94. package/dist/ucp/capabilities/checkout.js.map +1 -0
  95. package/dist/ucp/capabilities/identity.d.ts +130 -0
  96. package/dist/ucp/capabilities/identity.d.ts.map +1 -0
  97. package/dist/ucp/capabilities/identity.js +290 -0
  98. package/dist/ucp/capabilities/identity.js.map +1 -0
  99. package/dist/ucp/capabilities/order.d.ts +142 -0
  100. package/dist/ucp/capabilities/order.d.ts.map +1 -0
  101. package/dist/ucp/capabilities/order.js +383 -0
  102. package/dist/ucp/capabilities/order.js.map +1 -0
  103. package/dist/ucp/index.d.ts +18 -0
  104. package/dist/ucp/index.d.ts.map +1 -0
  105. package/dist/ucp/index.js +19 -0
  106. package/dist/ucp/index.js.map +1 -0
  107. package/dist/ucp/manifest.d.ts +62 -0
  108. package/dist/ucp/manifest.d.ts.map +1 -0
  109. package/dist/ucp/manifest.js +180 -0
  110. package/dist/ucp/manifest.js.map +1 -0
  111. package/dist/ucp/types.d.ts +327 -0
  112. package/dist/ucp/types.d.ts.map +1 -0
  113. package/dist/ucp/types.js +8 -0
  114. package/dist/ucp/types.js.map +1 -0
  115. package/package.json +3 -4
  116. package/src/auto-ui.ts +413 -0
  117. package/src/base.ts +22 -9
  118. package/src/cli-ui-renderer.ts +264 -0
  119. package/src/dependency-manager.ts +0 -1
  120. package/src/design-system/index.ts +30 -0
  121. package/src/design-system/tokens.ts +451 -0
  122. package/src/design-system/transaction-ui.ts +1038 -0
  123. package/src/generator.ts +68 -8
  124. package/src/index.ts +159 -101
  125. package/src/io.ts +493 -0
  126. package/src/path-resolver.ts +2 -1
  127. package/src/rendering/components.ts +785 -0
  128. package/src/rendering/field-analyzer.ts +299 -0
  129. package/src/rendering/field-renderers.ts +356 -0
  130. package/src/rendering/index.ts +63 -0
  131. package/src/rendering/layout-selector.ts +390 -0
  132. package/src/rendering/template-engine.ts +254 -0
  133. package/src/schema-extractor.ts +225 -12
  134. package/src/stateful.ts +301 -0
  135. package/src/types.ts +10 -1
  136. package/src/ucp/ap2/handlers.ts +779 -0
  137. package/src/ucp/ap2/mandates.ts +354 -0
  138. package/src/ucp/ap2/types.ts +441 -0
  139. package/src/ucp/capabilities/checkout.ts +497 -0
  140. package/src/ucp/capabilities/identity.ts +425 -0
  141. package/src/ucp/capabilities/order.ts +549 -0
  142. package/src/ucp/index.ts +27 -0
  143. package/src/ucp/manifest.ts +257 -0
  144. package/src/ucp/types.ts +454 -0
  145. package/dist/cli-formatter.d.ts +0 -92
  146. package/dist/cli-formatter.d.ts.map +0 -1
  147. package/dist/cli-formatter.js +0 -486
  148. package/dist/cli-formatter.js.map +0 -1
  149. package/dist/elicit.d.ts +0 -93
  150. package/dist/elicit.d.ts.map +0 -1
  151. package/dist/elicit.js +0 -373
  152. package/dist/elicit.js.map +0 -1
  153. package/dist/mcp-client.d.ts +0 -218
  154. package/dist/mcp-client.d.ts.map +0 -1
  155. package/dist/mcp-client.js +0 -424
  156. package/dist/mcp-client.js.map +0 -1
  157. package/dist/mcp-sdk-transport.d.ts +0 -88
  158. package/dist/mcp-sdk-transport.d.ts.map +0 -1
  159. package/dist/mcp-sdk-transport.js +0 -360
  160. package/dist/mcp-sdk-transport.js.map +0 -1
  161. package/dist/photon-config.d.ts +0 -86
  162. package/dist/photon-config.d.ts.map +0 -1
  163. package/dist/photon-config.js +0 -156
  164. package/dist/photon-config.js.map +0 -1
  165. package/src/cli-formatter.ts +0 -579
  166. package/src/elicit.ts +0 -438
  167. package/src/mcp-client.ts +0 -561
  168. package/src/mcp-sdk-transport.ts +0 -449
  169. package/src/photon-config.ts +0 -201
@@ -0,0 +1,451 @@
1
+ /**
2
+ * Photon Design System - Design Tokens
3
+ *
4
+ * Based on:
5
+ * - Material Design 3 token structure (https://m3.material.io/foundations/design-tokens)
6
+ * - Apple HIG 8pt grid system (https://developer.apple.com/design/human-interface-guidelines/layout)
7
+ *
8
+ * This is the foundation for all Photon UI - both BEAM interface and auto-generated UIs.
9
+ */
10
+
11
+ // =============================================================================
12
+ // SPACING - 8pt Grid System (Apple HIG)
13
+ // =============================================================================
14
+
15
+ export const spacing = {
16
+ // Base unit: 4px (for fine adjustments)
17
+ '0': '0',
18
+ '1': '4px', // xs - minimal spacing
19
+ '2': '8px', // sm - tight spacing
20
+ '3': '12px', // md - default spacing
21
+ '4': '16px', // lg - comfortable spacing
22
+ '5': '20px', // xl - generous spacing
23
+ '6': '24px', // 2xl - section spacing
24
+ '8': '32px', // 3xl - large section spacing
25
+ '10': '40px', // 4xl - hero spacing
26
+ '12': '48px', // 5xl - page spacing
27
+ } as const;
28
+
29
+ // Semantic spacing aliases
30
+ export const spacingAliases = {
31
+ none: spacing['0'],
32
+ tight: spacing['1'],
33
+ compact: spacing['2'],
34
+ default: spacing['3'],
35
+ comfortable: spacing['4'],
36
+ spacious: spacing['6'],
37
+ section: spacing['8'],
38
+ } as const;
39
+
40
+ // =============================================================================
41
+ // TYPOGRAPHY - Material Design 3 Type Scale
42
+ // =============================================================================
43
+
44
+ export const fontFamily = {
45
+ sans: '-apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif',
46
+ mono: '"SF Mono", "Fira Code", "Fira Mono", Menlo, Monaco, Consolas, monospace',
47
+ } as const;
48
+
49
+ export const fontSize = {
50
+ // Display - for hero/large numbers
51
+ 'display-lg': '57px',
52
+ 'display-md': '45px',
53
+ 'display-sm': '36px',
54
+
55
+ // Headline - for section headers
56
+ 'headline-lg': '32px',
57
+ 'headline-md': '28px',
58
+ 'headline-sm': '24px',
59
+
60
+ // Title - for card titles, list item titles
61
+ 'title-lg': '22px',
62
+ 'title-md': '16px',
63
+ 'title-sm': '14px',
64
+
65
+ // Body - for content
66
+ 'body-lg': '16px',
67
+ 'body-md': '14px',
68
+ 'body-sm': '12px',
69
+
70
+ // Label - for UI labels, buttons, badges
71
+ 'label-lg': '14px',
72
+ 'label-md': '12px',
73
+ 'label-sm': '11px',
74
+ } as const;
75
+
76
+ export const lineHeight = {
77
+ 'display-lg': '64px',
78
+ 'display-md': '52px',
79
+ 'display-sm': '44px',
80
+ 'headline-lg': '40px',
81
+ 'headline-md': '36px',
82
+ 'headline-sm': '32px',
83
+ 'title-lg': '28px',
84
+ 'title-md': '24px',
85
+ 'title-sm': '20px',
86
+ 'body-lg': '24px',
87
+ 'body-md': '20px',
88
+ 'body-sm': '16px',
89
+ 'label-lg': '20px',
90
+ 'label-md': '16px',
91
+ 'label-sm': '16px',
92
+ } as const;
93
+
94
+ export const fontWeight = {
95
+ regular: '400',
96
+ medium: '500',
97
+ semibold: '600',
98
+ bold: '700',
99
+ } as const;
100
+
101
+ // =============================================================================
102
+ // COLORS - Semantic Color System
103
+ // =============================================================================
104
+
105
+ // Reference colors (raw values)
106
+ const colorPalette = {
107
+ // Neutrals (dark theme optimized)
108
+ neutral: {
109
+ 0: '#000000',
110
+ 5: '#0d0d0d',
111
+ 10: '#1a1a1a',
112
+ 15: '#262626',
113
+ 20: '#333333',
114
+ 30: '#4d4d4d',
115
+ 40: '#666666',
116
+ 50: '#808080',
117
+ 60: '#999999',
118
+ 70: '#b3b3b3',
119
+ 80: '#cccccc',
120
+ 90: '#e6e6e6',
121
+ 95: '#f2f2f2',
122
+ 100: '#ffffff',
123
+ },
124
+
125
+ // Primary (blue - trust, action)
126
+ primary: {
127
+ 10: '#001d36',
128
+ 20: '#003258',
129
+ 30: '#00497d',
130
+ 40: '#0061a4',
131
+ 50: '#2c7bc9',
132
+ 60: '#5094e0',
133
+ 70: '#79aef0',
134
+ 80: '#a4c9ff',
135
+ 90: '#d1e4ff',
136
+ 95: '#e9f1ff',
137
+ },
138
+
139
+ // Success (green)
140
+ success: {
141
+ 10: '#002106',
142
+ 20: '#003910',
143
+ 30: '#00531a',
144
+ 40: '#006e25',
145
+ 50: '#008a30',
146
+ 60: '#1fa940',
147
+ 70: '#4cc760',
148
+ 80: '#73e380',
149
+ 90: '#98ffa0',
150
+ 95: '#c8ffc8',
151
+ },
152
+
153
+ // Warning (amber)
154
+ warning: {
155
+ 10: '#261900',
156
+ 20: '#402d00',
157
+ 30: '#5c4300',
158
+ 40: '#7a5900',
159
+ 50: '#996f00',
160
+ 60: '#b88600',
161
+ 70: '#d89e00',
162
+ 80: '#f9b800',
163
+ 90: '#ffdf9e',
164
+ 95: '#fff0d6',
165
+ },
166
+
167
+ // Error (red)
168
+ error: {
169
+ 10: '#410002',
170
+ 20: '#690005',
171
+ 30: '#93000a',
172
+ 40: '#ba1a1a',
173
+ 50: '#de3730',
174
+ 60: '#ff5449',
175
+ 70: '#ff897d',
176
+ 80: '#ffb4ab',
177
+ 90: '#ffdad6',
178
+ 95: '#ffedea',
179
+ },
180
+ } as const;
181
+
182
+ // System colors (semantic tokens - what components use)
183
+ export const colors = {
184
+ // Surfaces
185
+ surface: colorPalette.neutral[5],
186
+ surfaceContainer: colorPalette.neutral[10],
187
+ surfaceContainerHigh: colorPalette.neutral[15],
188
+ surfaceContainerHighest: colorPalette.neutral[20],
189
+ surfaceBright: colorPalette.neutral[95],
190
+
191
+ // Text on surfaces
192
+ onSurface: colorPalette.neutral[90],
193
+ onSurfaceVariant: colorPalette.neutral[70],
194
+ onSurfaceMuted: colorPalette.neutral[50],
195
+
196
+ // Primary
197
+ primary: colorPalette.primary[70],
198
+ primaryContainer: colorPalette.primary[30],
199
+ onPrimary: colorPalette.primary[10],
200
+ onPrimaryContainer: colorPalette.primary[90],
201
+
202
+ // Success
203
+ success: colorPalette.success[70],
204
+ successContainer: colorPalette.success[20],
205
+ onSuccess: colorPalette.success[10],
206
+ onSuccessContainer: colorPalette.success[90],
207
+
208
+ // Warning
209
+ warning: colorPalette.warning[70],
210
+ warningContainer: colorPalette.warning[20],
211
+ onWarning: colorPalette.warning[10],
212
+ onWarningContainer: colorPalette.warning[90],
213
+
214
+ // Error
215
+ error: colorPalette.error[70],
216
+ errorContainer: colorPalette.error[20],
217
+ onError: colorPalette.error[10],
218
+ onErrorContainer: colorPalette.error[90],
219
+
220
+ // Outline
221
+ outline: colorPalette.neutral[30],
222
+ outlineVariant: colorPalette.neutral[20],
223
+
224
+ // Scrim (overlay)
225
+ scrim: 'rgba(0, 0, 0, 0.5)',
226
+ } as const;
227
+
228
+ // =============================================================================
229
+ // ELEVATION - Material Design 3 Shadows
230
+ // =============================================================================
231
+
232
+ export const elevation = {
233
+ '0': 'none',
234
+ '1': '0px 1px 2px 0px rgba(0, 0, 0, 0.30), 0px 1px 3px 1px rgba(0, 0, 0, 0.15)',
235
+ '2': '0px 1px 2px 0px rgba(0, 0, 0, 0.30), 0px 2px 6px 2px rgba(0, 0, 0, 0.15)',
236
+ '3': '0px 1px 3px 0px rgba(0, 0, 0, 0.30), 0px 4px 8px 3px rgba(0, 0, 0, 0.15)',
237
+ '4': '0px 2px 3px 0px rgba(0, 0, 0, 0.30), 0px 6px 10px 4px rgba(0, 0, 0, 0.15)',
238
+ '5': '0px 4px 4px 0px rgba(0, 0, 0, 0.30), 0px 8px 12px 6px rgba(0, 0, 0, 0.15)',
239
+ } as const;
240
+
241
+ // =============================================================================
242
+ // BORDER RADIUS - Apple HIG inspired
243
+ // =============================================================================
244
+
245
+ export const radius = {
246
+ none: '0',
247
+ sm: '6px', // Small elements (chips, badges)
248
+ md: '10px', // Cards, inputs (iOS default)
249
+ lg: '14px', // Large cards
250
+ xl: '20px', // Modal, sheet
251
+ full: '9999px', // Pills, circles
252
+ } as const;
253
+
254
+ // =============================================================================
255
+ // MOTION - Transitions
256
+ // =============================================================================
257
+
258
+ export const duration = {
259
+ instant: '0ms',
260
+ fast: '100ms',
261
+ normal: '200ms',
262
+ slow: '300ms',
263
+ slower: '500ms',
264
+ } as const;
265
+
266
+ export const easing = {
267
+ standard: 'cubic-bezier(0.2, 0, 0, 1)',
268
+ standardDecelerate: 'cubic-bezier(0, 0, 0, 1)',
269
+ standardAccelerate: 'cubic-bezier(0.3, 0, 1, 1)',
270
+ emphasized: 'cubic-bezier(0.2, 0, 0, 1)',
271
+ emphasizedDecelerate: 'cubic-bezier(0.05, 0.7, 0.1, 1)',
272
+ emphasizedAccelerate: 'cubic-bezier(0.3, 0, 0.8, 0.15)',
273
+ } as const;
274
+
275
+ // =============================================================================
276
+ // INTERACTION - Touch targets (Apple HIG: 44pt minimum)
277
+ // =============================================================================
278
+
279
+ export const touchTarget = {
280
+ min: '44px',
281
+ comfortable: '48px',
282
+ spacious: '56px',
283
+ } as const;
284
+
285
+ // =============================================================================
286
+ // Z-INDEX - Layering system
287
+ // =============================================================================
288
+
289
+ export const zIndex = {
290
+ base: '0',
291
+ dropdown: '100',
292
+ sticky: '200',
293
+ modal: '300',
294
+ popover: '400',
295
+ toast: '500',
296
+ } as const;
297
+
298
+ // =============================================================================
299
+ // CSS CUSTOM PROPERTIES GENERATOR
300
+ // =============================================================================
301
+
302
+ export function generateTokensCSS(): string {
303
+ return `
304
+ /* ==========================================================================
305
+ Photon Design System - Design Tokens
306
+ Based on Material Design 3 + Apple HIG
307
+ ========================================================================== */
308
+
309
+ :root {
310
+ /* Spacing (8pt grid) */
311
+ --space-0: ${spacing['0']};
312
+ --space-1: ${spacing['1']};
313
+ --space-2: ${spacing['2']};
314
+ --space-3: ${spacing['3']};
315
+ --space-4: ${spacing['4']};
316
+ --space-5: ${spacing['5']};
317
+ --space-6: ${spacing['6']};
318
+ --space-8: ${spacing['8']};
319
+ --space-10: ${spacing['10']};
320
+ --space-12: ${spacing['12']};
321
+
322
+ /* Typography - Font Family */
323
+ --font-sans: ${fontFamily.sans};
324
+ --font-mono: ${fontFamily.mono};
325
+
326
+ /* Typography - Font Size */
327
+ --text-display-lg: ${fontSize['display-lg']};
328
+ --text-display-md: ${fontSize['display-md']};
329
+ --text-display-sm: ${fontSize['display-sm']};
330
+ --text-headline-lg: ${fontSize['headline-lg']};
331
+ --text-headline-md: ${fontSize['headline-md']};
332
+ --text-headline-sm: ${fontSize['headline-sm']};
333
+ --text-title-lg: ${fontSize['title-lg']};
334
+ --text-title-md: ${fontSize['title-md']};
335
+ --text-title-sm: ${fontSize['title-sm']};
336
+ --text-body-lg: ${fontSize['body-lg']};
337
+ --text-body-md: ${fontSize['body-md']};
338
+ --text-body-sm: ${fontSize['body-sm']};
339
+ --text-label-lg: ${fontSize['label-lg']};
340
+ --text-label-md: ${fontSize['label-md']};
341
+ --text-label-sm: ${fontSize['label-sm']};
342
+
343
+ /* Typography - Line Height */
344
+ --leading-display-lg: ${lineHeight['display-lg']};
345
+ --leading-display-md: ${lineHeight['display-md']};
346
+ --leading-display-sm: ${lineHeight['display-sm']};
347
+ --leading-headline-lg: ${lineHeight['headline-lg']};
348
+ --leading-headline-md: ${lineHeight['headline-md']};
349
+ --leading-headline-sm: ${lineHeight['headline-sm']};
350
+ --leading-title-lg: ${lineHeight['title-lg']};
351
+ --leading-title-md: ${lineHeight['title-md']};
352
+ --leading-title-sm: ${lineHeight['title-sm']};
353
+ --leading-body-lg: ${lineHeight['body-lg']};
354
+ --leading-body-md: ${lineHeight['body-md']};
355
+ --leading-body-sm: ${lineHeight['body-sm']};
356
+ --leading-label-lg: ${lineHeight['label-lg']};
357
+ --leading-label-md: ${lineHeight['label-md']};
358
+ --leading-label-sm: ${lineHeight['label-sm']};
359
+
360
+ /* Typography - Font Weight */
361
+ --weight-regular: ${fontWeight.regular};
362
+ --weight-medium: ${fontWeight.medium};
363
+ --weight-semibold: ${fontWeight.semibold};
364
+ --weight-bold: ${fontWeight.bold};
365
+
366
+ /* Colors - Surfaces */
367
+ --color-surface: ${colors.surface};
368
+ --color-surface-container: ${colors.surfaceContainer};
369
+ --color-surface-container-high: ${colors.surfaceContainerHigh};
370
+ --color-surface-container-highest: ${colors.surfaceContainerHighest};
371
+ --color-surface-bright: ${colors.surfaceBright};
372
+
373
+ /* Colors - Text */
374
+ --color-on-surface: ${colors.onSurface};
375
+ --color-on-surface-variant: ${colors.onSurfaceVariant};
376
+ --color-on-surface-muted: ${colors.onSurfaceMuted};
377
+
378
+ /* Colors - Primary */
379
+ --color-primary: ${colors.primary};
380
+ --color-primary-container: ${colors.primaryContainer};
381
+ --color-on-primary: ${colors.onPrimary};
382
+ --color-on-primary-container: ${colors.onPrimaryContainer};
383
+
384
+ /* Colors - Success */
385
+ --color-success: ${colors.success};
386
+ --color-success-container: ${colors.successContainer};
387
+ --color-on-success: ${colors.onSuccess};
388
+ --color-on-success-container: ${colors.onSuccessContainer};
389
+
390
+ /* Colors - Warning */
391
+ --color-warning: ${colors.warning};
392
+ --color-warning-container: ${colors.warningContainer};
393
+ --color-on-warning: ${colors.onWarning};
394
+ --color-on-warning-container: ${colors.onWarningContainer};
395
+
396
+ /* Colors - Error */
397
+ --color-error: ${colors.error};
398
+ --color-error-container: ${colors.errorContainer};
399
+ --color-on-error: ${colors.onError};
400
+ --color-on-error-container: ${colors.onErrorContainer};
401
+
402
+ /* Colors - Outline */
403
+ --color-outline: ${colors.outline};
404
+ --color-outline-variant: ${colors.outlineVariant};
405
+
406
+ /* Colors - Scrim */
407
+ --color-scrim: ${colors.scrim};
408
+
409
+ /* Elevation */
410
+ --elevation-0: ${elevation['0']};
411
+ --elevation-1: ${elevation['1']};
412
+ --elevation-2: ${elevation['2']};
413
+ --elevation-3: ${elevation['3']};
414
+ --elevation-4: ${elevation['4']};
415
+ --elevation-5: ${elevation['5']};
416
+
417
+ /* Border Radius */
418
+ --radius-none: ${radius.none};
419
+ --radius-sm: ${radius.sm};
420
+ --radius-md: ${radius.md};
421
+ --radius-lg: ${radius.lg};
422
+ --radius-xl: ${radius.xl};
423
+ --radius-full: ${radius.full};
424
+
425
+ /* Motion */
426
+ --duration-instant: ${duration.instant};
427
+ --duration-fast: ${duration.fast};
428
+ --duration-normal: ${duration.normal};
429
+ --duration-slow: ${duration.slow};
430
+ --duration-slower: ${duration.slower};
431
+
432
+ --ease-standard: ${easing.standard};
433
+ --ease-decelerate: ${easing.standardDecelerate};
434
+ --ease-accelerate: ${easing.standardAccelerate};
435
+ --ease-emphasized: ${easing.emphasized};
436
+
437
+ /* Touch Targets */
438
+ --touch-min: ${touchTarget.min};
439
+ --touch-comfortable: ${touchTarget.comfortable};
440
+ --touch-spacious: ${touchTarget.spacious};
441
+
442
+ /* Z-Index */
443
+ --z-base: ${zIndex.base};
444
+ --z-dropdown: ${zIndex.dropdown};
445
+ --z-sticky: ${zIndex.sticky};
446
+ --z-modal: ${zIndex.modal};
447
+ --z-popover: ${zIndex.popover};
448
+ --z-toast: ${zIndex.toast};
449
+ }
450
+ `;
451
+ }