@titan-design/react-ui 0.2.5 → 0.2.7

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 (158) hide show
  1. package/dist/chunk-3VLOBS6O.mjs +846 -0
  2. package/dist/chunk-3VLOBS6O.mjs.map +1 -0
  3. package/dist/{chunk-UXVRPOME.mjs → chunk-5SSKGS6E.mjs} +3 -783
  4. package/dist/chunk-5SSKGS6E.mjs.map +1 -0
  5. package/dist/index.d.mts +1005 -4
  6. package/dist/index.d.ts +1005 -4
  7. package/dist/index.js +6043 -213
  8. package/dist/index.js.map +1 -1
  9. package/dist/index.mjs +5901 -177
  10. package/dist/index.mjs.map +1 -1
  11. package/dist/theme/index.d.mts +57 -1
  12. package/dist/theme/index.d.ts +57 -1
  13. package/dist/theme/index.js +63 -0
  14. package/dist/theme/index.js.map +1 -1
  15. package/dist/theme/index.mjs +2 -1
  16. package/dist/theme/tokens-css.d.mts +18 -0
  17. package/dist/theme/tokens-css.d.ts +18 -0
  18. package/dist/theme/tokens-css.js +289 -0
  19. package/dist/theme/tokens-css.js.map +1 -0
  20. package/dist/theme/tokens-css.mjs +24 -0
  21. package/dist/theme/tokens-css.mjs.map +1 -0
  22. package/docs/WEB_SETUP.md +217 -0
  23. package/package.json +17 -5
  24. package/src/components/custom/DateTime/DateTime.stories.tsx +1 -1
  25. package/src/components/custom/Gauge/Gauge.stories.tsx +45 -0
  26. package/src/components/custom/Gauge/Gauge.test.tsx +71 -0
  27. package/src/components/custom/Gauge/Gauge.tsx +167 -0
  28. package/src/components/custom/Gauge/index.ts +2 -0
  29. package/src/components/custom/Scatter/Scatter.stories.tsx +85 -0
  30. package/src/components/custom/Scatter/Scatter.test.tsx +96 -0
  31. package/src/components/custom/Scatter/Scatter.tsx +260 -0
  32. package/src/components/custom/Scatter/index.ts +2 -0
  33. package/src/components/custom/Sidebar/Sidebar.tsx +1 -1
  34. package/src/components/custom/Treemap/Treemap.stories.tsx +60 -0
  35. package/src/components/custom/Treemap/Treemap.test.tsx +67 -0
  36. package/src/components/custom/Treemap/Treemap.tsx +192 -0
  37. package/src/components/custom/Treemap/index.ts +2 -0
  38. package/src/components/custom/Workout/BaseBadge.stories.tsx +75 -0
  39. package/src/components/custom/Workout/BaseBadge.test.tsx +102 -0
  40. package/src/components/custom/Workout/BaseBadge.tsx +113 -0
  41. package/src/components/custom/Workout/BodyMap.stories.tsx +121 -0
  42. package/src/components/custom/Workout/BodyMap.test.tsx +124 -0
  43. package/src/components/custom/Workout/BodyMap.tsx +348 -0
  44. package/src/components/custom/Workout/BodyMapDetailPanel.stories.tsx +171 -0
  45. package/src/components/custom/Workout/BodyMapDetailPanel.test.tsx +225 -0
  46. package/src/components/custom/Workout/BodyMapDetailPanel.tsx +478 -0
  47. package/src/components/custom/Workout/CapacityBandChart.stories.tsx +125 -0
  48. package/src/components/custom/Workout/CapacityBandChart.test.tsx +193 -0
  49. package/src/components/custom/Workout/CapacityBandChart.tsx +493 -0
  50. package/src/components/custom/Workout/DeviationBar.stories.tsx +58 -0
  51. package/src/components/custom/Workout/DeviationBar.test.tsx +86 -0
  52. package/src/components/custom/Workout/DeviationBar.tsx +78 -0
  53. package/src/components/custom/Workout/ExerciseCard.stories.tsx +186 -0
  54. package/src/components/custom/Workout/ExerciseCard.test.tsx +319 -0
  55. package/src/components/custom/Workout/ExerciseCard.tsx +429 -0
  56. package/src/components/custom/Workout/InputBar.stories.tsx +75 -0
  57. package/src/components/custom/Workout/InputBar.test.tsx +116 -0
  58. package/src/components/custom/Workout/InputBar.tsx +163 -0
  59. package/src/components/custom/Workout/IntensityBar.stories.tsx +60 -0
  60. package/src/components/custom/Workout/IntensityBar.test.tsx +113 -0
  61. package/src/components/custom/Workout/IntensityBar.tsx +166 -0
  62. package/src/components/custom/Workout/MesoCard.stories.tsx +152 -0
  63. package/src/components/custom/Workout/MesoCard.test.tsx +170 -0
  64. package/src/components/custom/Workout/MesoCard.tsx +235 -0
  65. package/src/components/custom/Workout/MesoProgressBar.stories.tsx +85 -0
  66. package/src/components/custom/Workout/MesoProgressBar.test.tsx +141 -0
  67. package/src/components/custom/Workout/MesoProgressBar.tsx +161 -0
  68. package/src/components/custom/Workout/MesoStatusCard.stories.tsx +126 -0
  69. package/src/components/custom/Workout/MesoStatusCard.test.tsx +209 -0
  70. package/src/components/custom/Workout/MesoStatusCard.tsx +456 -0
  71. package/src/components/custom/Workout/MuscleGroupChip.stories.tsx +118 -0
  72. package/src/components/custom/Workout/MuscleGroupChip.test.tsx +91 -0
  73. package/src/components/custom/Workout/MuscleGroupChip.tsx +92 -0
  74. package/src/components/custom/Workout/PlaceholderStrip.stories.tsx +94 -0
  75. package/src/components/custom/Workout/PlaceholderStrip.test.tsx +83 -0
  76. package/src/components/custom/Workout/PlaceholderStrip.tsx +91 -0
  77. package/src/components/custom/Workout/PrBadge.stories.tsx +105 -0
  78. package/src/components/custom/Workout/PrBadge.test.tsx +111 -0
  79. package/src/components/custom/Workout/PrBadge.tsx +103 -0
  80. package/src/components/custom/Workout/PrHistoryModal.stories.tsx +116 -0
  81. package/src/components/custom/Workout/PrHistoryModal.test.tsx +161 -0
  82. package/src/components/custom/Workout/PrHistoryModal.tsx +244 -0
  83. package/src/components/custom/Workout/ReadinessCheck.stories.tsx +126 -0
  84. package/src/components/custom/Workout/ReadinessCheck.test.tsx +181 -0
  85. package/src/components/custom/Workout/ReadinessCheck.tsx +266 -0
  86. package/src/components/custom/Workout/RestTimer.tsx +8 -6
  87. package/src/components/custom/Workout/SetRow.stories.tsx +165 -0
  88. package/src/components/custom/Workout/SetRow.test.tsx +222 -0
  89. package/src/components/custom/Workout/SetRow.tsx +253 -0
  90. package/src/components/custom/Workout/Sparkline.stories.tsx +125 -0
  91. package/src/components/custom/Workout/Sparkline.test.tsx +113 -0
  92. package/src/components/custom/Workout/Sparkline.tsx +188 -0
  93. package/src/components/custom/Workout/StatusDot.stories.tsx +150 -0
  94. package/src/components/custom/Workout/StatusDot.test.tsx +165 -0
  95. package/src/components/custom/Workout/StatusDot.tsx +159 -0
  96. package/src/components/custom/Workout/StrengthTrendChart.stories.tsx +130 -0
  97. package/src/components/custom/Workout/StrengthTrendChart.test.tsx +217 -0
  98. package/src/components/custom/Workout/StrengthTrendChart.tsx +628 -0
  99. package/src/components/custom/Workout/SupersetWrapper.tsx +1 -2
  100. package/src/components/custom/Workout/TempoDisplay.stories.tsx +66 -0
  101. package/src/components/custom/Workout/TempoDisplay.test.tsx +90 -0
  102. package/src/components/custom/Workout/TempoDisplay.tsx +207 -0
  103. package/src/components/custom/Workout/VelocityStrip.stories.tsx +125 -0
  104. package/src/components/custom/Workout/VelocityStrip.test.tsx +234 -0
  105. package/src/components/custom/Workout/VelocityStrip.tsx +287 -0
  106. package/src/components/custom/Workout/WeekRow.stories.tsx +121 -0
  107. package/src/components/custom/Workout/WeekRow.test.tsx +117 -0
  108. package/src/components/custom/Workout/WeekRow.tsx +140 -0
  109. package/src/components/custom/Workout/WeightBadge.stories.tsx +87 -0
  110. package/src/components/custom/Workout/WeightBadge.test.tsx +164 -0
  111. package/src/components/custom/Workout/WeightBadge.tsx +113 -0
  112. package/src/components/custom/Workout/WorkoutCard.stories.tsx +135 -0
  113. package/src/components/custom/Workout/WorkoutCard.test.tsx +172 -0
  114. package/src/components/custom/Workout/WorkoutCard.tsx +226 -0
  115. package/src/components/custom/Workout/WorkoutPill.stories.tsx +63 -0
  116. package/src/components/custom/Workout/WorkoutPill.test.tsx +153 -0
  117. package/src/components/custom/Workout/WorkoutPill.tsx +177 -0
  118. package/src/components/custom/Workout/index.ts +113 -0
  119. package/src/components/custom/Workout/muscleTaxonomy.ts +252 -0
  120. package/src/components/custom/index.ts +3 -0
  121. package/src/components/custom/stepper/Stepper.stories.tsx +1 -1
  122. package/src/components/custom/stepper/Stepper.tsx +2 -2
  123. package/src/components/ui/autocomplete/Autocomplete.stories.tsx +1 -1
  124. package/src/components/ui/autocomplete/Autocomplete.tsx +1 -1
  125. package/src/components/ui/card/Card.tsx +1 -1
  126. package/src/components/ui/checkbox/Checkbox.tsx +1 -1
  127. package/src/components/ui/collapse/Collapse.tsx +1 -1
  128. package/src/components/ui/data-row/DataRow.stories.tsx +1 -1
  129. package/src/components/ui/drawer/Drawer.tsx +3 -3
  130. package/src/components/ui/form-field/FormField.tsx +1 -1
  131. package/src/components/ui/help-tip/HelpTip.tsx +1 -1
  132. package/src/components/ui/menu/Menu.tsx +2 -2
  133. package/src/components/ui/pill/Pill.tsx +1 -1
  134. package/src/components/ui/popover/Popover.stories.tsx +2 -2
  135. package/src/components/ui/popover/Popover.tsx +1 -1
  136. package/src/components/ui/radio/Radio.stories.tsx +1 -1
  137. package/src/components/ui/section/Section.stories.tsx +4 -4
  138. package/src/components/ui/select/Select.tsx +1 -1
  139. package/src/components/ui/stack/Stack.stories.tsx +4 -4
  140. package/src/components/ui/tabs/Tabs.tsx +2 -2
  141. package/src/components/ui/toolbar-button/ToolbarButton.stories.tsx +1 -1
  142. package/src/components/ui/toolbar-button/ToolbarButton.tsx +1 -1
  143. package/src/examples/react-hook-form/ControlledFields.tsx +171 -0
  144. package/src/examples/react-hook-form/ReactHookForm.stories.tsx +51 -0
  145. package/src/examples/react-hook-form/ReactHookForm.test.tsx +61 -0
  146. package/src/examples/react-hook-form/RhfContactForm.tsx +99 -0
  147. package/src/stories/PresetShowcase.stories.tsx +15 -15
  148. package/src/theme/index.ts +2 -1
  149. package/src/theme/manifest/css-property-manifest.example.json +79 -0
  150. package/src/theme/manifest/css-property-manifest.schema.json +93 -0
  151. package/src/theme/manifest/css-property-manifest.test.ts +81 -0
  152. package/src/theme/manifest/css-property-manifest.types.ts +49 -0
  153. package/src/theme/manifest/css-property-manifest.validate.ts +84 -0
  154. package/src/theme/manifest/index.ts +11 -0
  155. package/src/theme/tokens-css.test.ts +28 -0
  156. package/src/theme/tokens-css.ts +34 -0
  157. package/src/theme/workout-tokens.ts +61 -0
  158. package/dist/chunk-UXVRPOME.mjs.map +0 -1
@@ -1,3 +1,4 @@
1
- export { applyThemePreset, audiobookPreset, buttonSizes, componentElevationRanges, createFlatShadow, createPressedHoverShadow, createPressedShadow, createRaisedHoverShadow, createRaisedShadow, darkThemeCSSVars, darken, defaultPreset, discreteRainbow, elevationSystem, getBaseSurfaceColor, getDiscreteRainbowColor, getElevationConfig, getElevationShadow, getElevationSurface, getGlowShadow, getHoverColors, getSemanticColors, getThemeCSSVars, getValidatedElevation, gluestackConfig, hexToRgb, hsvToRgb, isDark, lightThemeCSSVars, lighten, neumorphicShadows, primitiveBorderRadius, primitiveBreakpoints, primitiveColors, primitiveShadows, primitiveSpacing, primitiveTypography, primitiveZIndex, rgbToHex, rgbToHsv, semanticColorsDark, semanticColorsLight, semanticTypography, shadowColors } from '../chunk-UXVRPOME.mjs';
1
+ export { applyThemePreset, audiobookPreset, componentElevationRanges, createFlatShadow, createPressedHoverShadow, createPressedShadow, createRaisedHoverShadow, createRaisedShadow, darken, defaultPreset, elevationSystem, getBaseSurfaceColor, getElevationConfig, getElevationShadow, getElevationSurface, getGlowShadow, getHoverColors, getValidatedElevation, hexToRgb, hsvToRgb, isCssPropertyManifest, isDark, lighten, neumorphicShadows, rgbToHex, rgbToHsv, shadowColors, validateCssPropertyManifest } from '../chunk-3VLOBS6O.mjs';
2
+ export { buttonSizes, darkThemeCSSVars, discreteRainbow, getDiscreteRainbowColor, getSemanticColors, getThemeCSSVars, gluestackConfig, lightThemeCSSVars, primitiveBorderRadius, primitiveBreakpoints, primitiveColors, primitiveShadows, primitiveSpacing, primitiveTypography, primitiveZIndex, semanticColorsDark, semanticColorsLight, semanticTypography } from '../chunk-5SSKGS6E.mjs';
2
3
  //# sourceMappingURL=index.mjs.map
3
4
  //# sourceMappingURL=index.mjs.map
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Token CSS Generator
3
+ *
4
+ * Emits a static `:root {}` CSS block from the canonical theme token maps
5
+ * (`darkThemeCSSVars` / `lightThemeCSSVars`). HTML prototypes import the
6
+ * generated stylesheet so they always resolve to the exact same values as
7
+ * the design system. Pure codegen: deterministic and diffable against source.
8
+ *
9
+ * Dark mode is the default (`:root`); light mode is activated with `.light`,
10
+ * matching the convention in `theme/global.css`.
11
+ */
12
+ /**
13
+ * Build the full `tokens.css` contents: a default (dark) `:root` block plus a
14
+ * `.light` override block, driven entirely by the exported token maps.
15
+ */
16
+ declare function generateTokensCss(): string;
17
+
18
+ export { generateTokensCss };
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Token CSS Generator
3
+ *
4
+ * Emits a static `:root {}` CSS block from the canonical theme token maps
5
+ * (`darkThemeCSSVars` / `lightThemeCSSVars`). HTML prototypes import the
6
+ * generated stylesheet so they always resolve to the exact same values as
7
+ * the design system. Pure codegen: deterministic and diffable against source.
8
+ *
9
+ * Dark mode is the default (`:root`); light mode is activated with `.light`,
10
+ * matching the convention in `theme/global.css`.
11
+ */
12
+ /**
13
+ * Build the full `tokens.css` contents: a default (dark) `:root` block plus a
14
+ * `.light` override block, driven entirely by the exported token maps.
15
+ */
16
+ declare function generateTokensCss(): string;
17
+
18
+ export { generateTokensCss };
@@ -0,0 +1,289 @@
1
+ 'use strict';
2
+
3
+ // src/theme/tokens/primitives.ts
4
+ var primitiveColors = {
5
+ // Blue scale (primary brand)
6
+ blue: {
7
+ 600: "#5048E5"},
8
+ // Teal scale (success)
9
+ teal: {
10
+ 50: "#F0FDFA",
11
+ // Success light
12
+ 500: "#14B8A6"},
13
+ // Red scale (error)
14
+ red: {
15
+ 50: "#FEF2F2",
16
+ 600: "#D14343"},
17
+ // Amber scale (warning)
18
+ amber: {
19
+ 50: "#FFFBEB",
20
+ // Warning light
21
+ 500: "#FFB020"},
22
+ // Sky/Blue scale (info)
23
+ sky: {
24
+ 50: "#F0F9FF",
25
+ // Info light
26
+ 500: "#2196F3"},
27
+ // Neutral/Gray scale
28
+ neutral: {
29
+ 50: "#FAFAFA",
30
+ 100: "#F3F4F6",
31
+ 300: "#D1D5DB",
32
+ 400: "#9CA3AF",
33
+ 500: "#6B7280",
34
+ 900: "#111827"},
35
+ // Orange scale (accent/brand color)
36
+ accent: {
37
+ 200: "#FF9630",
38
+ 400: "#FF7900",
39
+ 700: "#D0620C"},
40
+ // Charcoal scale (dark backgrounds)
41
+ charcoal: {
42
+ 300: "#2C2C2C",
43
+ 400: "#1F1F1F",
44
+ 500: "#1C1C1C",
45
+ 600: "#191919",
46
+ 700: "#161616",
47
+ 900: "#101010"
48
+ },
49
+ // Steel scale (cool accent)
50
+ steel: {
51
+ 300: "#678498",
52
+ 500: "#406D87",
53
+ 700: "#32556D"},
54
+ // Pure colors
55
+ white: "#FFFFFF"};
56
+
57
+ // src/theme/tokens/semantic.ts
58
+ var semanticColorsLight = {
59
+ // Brand colors (brand-*)
60
+ "brand-primary": primitiveColors.accent[400],
61
+ // #FF7900
62
+ "brand-primary-light": primitiveColors.accent[200],
63
+ // #FF9630
64
+ "brand-primary-dark": primitiveColors.accent[700],
65
+ // #D0620C
66
+ "brand-primary-subtle": "rgba(255, 121, 0, 0.08)",
67
+ "brand-secondary": primitiveColors.steel[500],
68
+ // #406D87
69
+ "brand-secondary-light": primitiveColors.steel[300],
70
+ // #678498
71
+ "brand-secondary-dark": primitiveColors.steel[700],
72
+ // #32556D
73
+ "brand-secondary-subtle": "rgba(64, 109, 135, 0.08)",
74
+ // Text on brand backgrounds (on-*)
75
+ "on-brand-primary": primitiveColors.white,
76
+ "on-brand-secondary": primitiveColors.white,
77
+ // Status colors (status-*)
78
+ "status-success": primitiveColors.teal[500],
79
+ // #0E8074
80
+ "status-success-subtle": primitiveColors.teal[50],
81
+ "status-error": primitiveColors.red[600],
82
+ // #922E2E
83
+ "status-error-subtle": primitiveColors.red[50],
84
+ "status-warning": primitiveColors.amber[500],
85
+ // #B27B16
86
+ "status-warning-subtle": primitiveColors.amber[50],
87
+ "status-info": primitiveColors.sky[500],
88
+ // #0B79D0
89
+ "status-info-subtle": primitiveColors.sky[50],
90
+ // #EE8026 - Dark Orange
91
+ // Text colors (text-*)
92
+ "text-primary": "#121828",
93
+ "text-secondary": "#65748B",
94
+ "text-tertiary": primitiveColors.neutral[400],
95
+ "text-disabled": "rgba(55, 65, 81, 0.48)",
96
+ "text-inverse": primitiveColors.white,
97
+ "text-link": primitiveColors.blue[600],
98
+ // Surface colors (surface-*) - for elevated containers
99
+ "surface-base": primitiveColors.white,
100
+ "surface-elevated": primitiveColors.neutral[50],
101
+ // #FAFAFA - slightly off-white for elevated cards
102
+ "surface-raised": primitiveColors.neutral[100],
103
+ // Input field background (filled variant)
104
+ // Background colors (background-*)
105
+ "background-base": "#EBEBEB",
106
+ "background-default": primitiveColors.white,
107
+ "background-subtle": primitiveColors.neutral[50],
108
+ // Border colors (border-*)
109
+ "border-default": "#E8E9EB",
110
+ "border-subtle": primitiveColors.neutral[100],
111
+ "border-strong": primitiveColors.neutral[300],
112
+ "border-focus": primitiveColors.blue[600],
113
+ // Input field border on error
114
+ // Interactive states (interactive-*)
115
+ "interactive-hover": "rgba(55, 65, 81, 0.04)",
116
+ "interactive-focus": "rgba(55, 65, 81, 0.12)",
117
+ "interactive-active": "rgba(55, 65, 81, 0.16)",
118
+ "interactive-selected": "rgba(55, 65, 81, 0.08)",
119
+ "interactive-disabled": "rgba(55, 65, 81, 0.12)",
120
+ // Divider
121
+ "divider": "#E8E9EB"};
122
+ var semanticColorsDark = {
123
+ // Brand colors stay the same in dark mode
124
+ "brand-primary": primitiveColors.accent[400],
125
+ "brand-primary-light": primitiveColors.accent[200],
126
+ "brand-primary-dark": primitiveColors.accent[700],
127
+ "brand-primary-subtle": "rgba(255, 121, 0, 0.12)",
128
+ "brand-secondary": primitiveColors.steel[500],
129
+ "brand-secondary-light": primitiveColors.steel[300],
130
+ "brand-secondary-dark": primitiveColors.steel[700],
131
+ "brand-secondary-subtle": "rgba(64, 109, 135, 0.12)",
132
+ // Text on brand backgrounds
133
+ "on-brand-primary": primitiveColors.white,
134
+ "on-brand-secondary": primitiveColors.white,
135
+ // Status colors
136
+ "status-success": primitiveColors.teal[500],
137
+ "status-success-subtle": "rgba(20, 184, 166, 0.12)",
138
+ "status-error": primitiveColors.red[600],
139
+ "status-error-subtle": "rgba(209, 67, 67, 0.12)",
140
+ "status-warning": primitiveColors.amber[500],
141
+ "status-warning-subtle": "rgba(255, 176, 32, 0.12)",
142
+ "status-info": primitiveColors.sky[500],
143
+ "status-info-subtle": "rgba(33, 150, 243, 0.12)",
144
+ // Text colors - inverted for dark mode
145
+ "text-primary": primitiveColors.neutral[100],
146
+ "text-secondary": primitiveColors.neutral[400],
147
+ "text-tertiary": primitiveColors.neutral[500],
148
+ "text-disabled": "rgba(255, 255, 255, 0.38)",
149
+ "text-inverse": primitiveColors.neutral[900],
150
+ "text-link": "#828DF8",
151
+ // Surface colors - dark backgrounds
152
+ "surface-base": primitiveColors.charcoal[700],
153
+ // #161616 - main surface
154
+ "surface-elevated": primitiveColors.charcoal[600],
155
+ // #191919 - elevated surface
156
+ "surface-raised": primitiveColors.charcoal[500],
157
+ // #191919 - input surface
158
+ // Background colors
159
+ "background-base": primitiveColors.charcoal[900],
160
+ // #101010 - darkest charcoal
161
+ "background-default": primitiveColors.charcoal[700],
162
+ // #161616 - main background
163
+ "background-subtle": primitiveColors.charcoal[500],
164
+ // #1C1C1C - subtle background
165
+ // Border colors
166
+ "border-default": primitiveColors.charcoal[400],
167
+ // #1F1F1F - default border
168
+ "border-subtle": primitiveColors.charcoal[500],
169
+ // #1C1C1C - subtle border
170
+ "border-strong": primitiveColors.charcoal[300],
171
+ // #2C2C2C - strong border
172
+ "border-focus": "#828DF8",
173
+ // Interactive states
174
+ "interactive-hover": "rgba(255, 255, 255, 0.04)",
175
+ "interactive-focus": "rgba(255, 255, 255, 0.12)",
176
+ "interactive-active": "rgba(255, 255, 255, 0.16)",
177
+ "interactive-selected": "rgba(255, 255, 255, 0.08)",
178
+ "interactive-disabled": "rgba(255, 255, 255, 0.12)",
179
+ // Divider
180
+ "divider": primitiveColors.charcoal[400]};
181
+
182
+ // src/theme/config.ts
183
+ var lightThemeCSSVars = {
184
+ "--color-brand-primary": semanticColorsLight["brand-primary"],
185
+ "--color-brand-primary-light": semanticColorsLight["brand-primary-light"],
186
+ "--color-brand-primary-dark": semanticColorsLight["brand-primary-dark"],
187
+ "--color-brand-primary-subtle": semanticColorsLight["brand-primary-subtle"],
188
+ "--color-brand-secondary": semanticColorsLight["brand-secondary"],
189
+ "--color-brand-secondary-light": semanticColorsLight["brand-secondary-light"],
190
+ "--color-brand-secondary-dark": semanticColorsLight["brand-secondary-dark"],
191
+ "--color-brand-secondary-subtle": semanticColorsLight["brand-secondary-subtle"],
192
+ "--color-on-brand-primary": semanticColorsLight["on-brand-primary"],
193
+ "--color-on-brand-secondary": semanticColorsLight["on-brand-secondary"],
194
+ "--color-status-success": semanticColorsLight["status-success"],
195
+ "--color-status-success-subtle": semanticColorsLight["status-success-subtle"],
196
+ "--color-status-error": semanticColorsLight["status-error"],
197
+ "--color-status-error-subtle": semanticColorsLight["status-error-subtle"],
198
+ "--color-status-warning": semanticColorsLight["status-warning"],
199
+ "--color-status-warning-subtle": semanticColorsLight["status-warning-subtle"],
200
+ "--color-status-info": semanticColorsLight["status-info"],
201
+ "--color-status-info-subtle": semanticColorsLight["status-info-subtle"],
202
+ "--color-text-primary": semanticColorsLight["text-primary"],
203
+ "--color-text-secondary": semanticColorsLight["text-secondary"],
204
+ "--color-text-tertiary": semanticColorsLight["text-tertiary"],
205
+ "--color-text-disabled": semanticColorsLight["text-disabled"],
206
+ "--color-text-inverse": semanticColorsLight["text-inverse"],
207
+ "--color-text-link": semanticColorsLight["text-link"],
208
+ "--color-surface-base": semanticColorsLight["surface-base"],
209
+ "--color-surface-elevated": semanticColorsLight["surface-elevated"],
210
+ "--color-surface-raised": semanticColorsLight["surface-raised"],
211
+ "--color-background-base": semanticColorsLight["background-base"],
212
+ "--color-background-default": semanticColorsLight["background-default"],
213
+ "--color-background-subtle": semanticColorsLight["background-subtle"],
214
+ "--color-border-default": semanticColorsLight["border-default"],
215
+ "--color-border-subtle": semanticColorsLight["border-subtle"],
216
+ "--color-border-strong": semanticColorsLight["border-strong"],
217
+ "--color-border-focus": semanticColorsLight["border-focus"],
218
+ "--color-interactive-hover": semanticColorsLight["interactive-hover"],
219
+ "--color-interactive-focus": semanticColorsLight["interactive-focus"],
220
+ "--color-interactive-active": semanticColorsLight["interactive-active"],
221
+ "--color-interactive-selected": semanticColorsLight["interactive-selected"],
222
+ "--color-interactive-disabled": semanticColorsLight["interactive-disabled"],
223
+ "--color-divider": semanticColorsLight["divider"]
224
+ };
225
+ var darkThemeCSSVars = {
226
+ "--color-brand-primary": semanticColorsDark["brand-primary"],
227
+ "--color-brand-primary-light": semanticColorsDark["brand-primary-light"],
228
+ "--color-brand-primary-dark": semanticColorsDark["brand-primary-dark"],
229
+ "--color-brand-primary-subtle": semanticColorsDark["brand-primary-subtle"],
230
+ "--color-brand-secondary": semanticColorsDark["brand-secondary"],
231
+ "--color-brand-secondary-light": semanticColorsDark["brand-secondary-light"],
232
+ "--color-brand-secondary-dark": semanticColorsDark["brand-secondary-dark"],
233
+ "--color-brand-secondary-subtle": semanticColorsDark["brand-secondary-subtle"],
234
+ "--color-on-brand-primary": semanticColorsDark["on-brand-primary"],
235
+ "--color-on-brand-secondary": semanticColorsDark["on-brand-secondary"],
236
+ "--color-status-success": semanticColorsDark["status-success"],
237
+ "--color-status-success-subtle": semanticColorsDark["status-success-subtle"],
238
+ "--color-status-error": semanticColorsDark["status-error"],
239
+ "--color-status-error-subtle": semanticColorsDark["status-error-subtle"],
240
+ "--color-status-warning": semanticColorsDark["status-warning"],
241
+ "--color-status-warning-subtle": semanticColorsDark["status-warning-subtle"],
242
+ "--color-status-info": semanticColorsDark["status-info"],
243
+ "--color-status-info-subtle": semanticColorsDark["status-info-subtle"],
244
+ "--color-text-primary": semanticColorsDark["text-primary"],
245
+ "--color-text-secondary": semanticColorsDark["text-secondary"],
246
+ "--color-text-tertiary": semanticColorsDark["text-tertiary"],
247
+ "--color-text-disabled": semanticColorsDark["text-disabled"],
248
+ "--color-text-inverse": semanticColorsDark["text-inverse"],
249
+ "--color-text-link": semanticColorsDark["text-link"],
250
+ "--color-surface-base": semanticColorsDark["surface-base"],
251
+ "--color-surface-elevated": semanticColorsDark["surface-elevated"],
252
+ "--color-surface-raised": semanticColorsDark["surface-raised"],
253
+ "--color-background-base": semanticColorsDark["background-base"],
254
+ "--color-background-default": semanticColorsDark["background-default"],
255
+ "--color-background-subtle": semanticColorsDark["background-subtle"],
256
+ "--color-border-default": semanticColorsDark["border-default"],
257
+ "--color-border-subtle": semanticColorsDark["border-subtle"],
258
+ "--color-border-strong": semanticColorsDark["border-strong"],
259
+ "--color-border-focus": semanticColorsDark["border-focus"],
260
+ "--color-interactive-hover": semanticColorsDark["interactive-hover"],
261
+ "--color-interactive-focus": semanticColorsDark["interactive-focus"],
262
+ "--color-interactive-active": semanticColorsDark["interactive-active"],
263
+ "--color-interactive-selected": semanticColorsDark["interactive-selected"],
264
+ "--color-interactive-disabled": semanticColorsDark["interactive-disabled"],
265
+ "--color-divider": semanticColorsDark["divider"]
266
+ };
267
+
268
+ // src/theme/tokens-css.ts
269
+ var GENERATED_HEADER = "/* Generated from theme token maps. Do not edit by hand. */";
270
+ function formatBlock(selector, vars) {
271
+ const declarations = Object.entries(vars).map(([name, value]) => ` ${name}: ${value};`).join("\n");
272
+ return `${selector} {
273
+ ${declarations}
274
+ }`;
275
+ }
276
+ function generateTokensCss() {
277
+ const root = formatBlock(":root", darkThemeCSSVars);
278
+ const light = formatBlock(".light, :root.light", lightThemeCSSVars);
279
+ return `${GENERATED_HEADER}
280
+
281
+ ${root}
282
+
283
+ ${light}
284
+ `;
285
+ }
286
+
287
+ exports.generateTokensCss = generateTokensCss;
288
+ //# sourceMappingURL=tokens-css.js.map
289
+ //# sourceMappingURL=tokens-css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/theme/tokens/primitives.ts","../../src/theme/tokens/semantic.ts","../../src/theme/config.ts","../../src/theme/tok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AM,eAAe,MAAA,CAAO,OAAA,CAAQ,IAAI,CAAA,CACrC,GAAA,CAAI,CAAC,CAAC,IAAA,EAAM,KAAK,CAAA,KAAM,KAAK,IAAI,CAAA,EAAA,EAAK,KAAK,CAAA,CAAA,CAAG,CAAA,CAC7C,KAAK,IAAI,CAAA;AACZ,EAAA,OAAO,GAAG,QAAQ,CAAA;AAAA,EAAO,YAAY;AAAA,CAAA,CAAA;AACvC;AAMO,SAAS,iBAAA,GAA4B;AAC1C,EAAA,MAAM,IAAA,GAAO,WAAA,CAAY,OAAA,EAAS,gBAAgB,CAAA;AAClD,EAAA,MAAM,KAAA,GAAQ,WAAA,CAAY,qBAAA,EAAuB,iBAAiB,CAAA;AAClE,EAAA,OAAO,GAAG,gBAAgB;;AAAA,EAAO,IAAI;;AAAA,EAAO,KAAK;AAAA,CAAA;AACnD","file":"tokens-css.js","sourcesContent":["/**\n * Primitive Design Tokens\n *\n * Raw values with no semantic meaning. These are the foundation of the design system\n * and should rarely be used directly in components. Use semantic tokens instead.\n */\n\nexport const primitiveColors = {\n // Blue scale (primary brand)\n blue: {\n 50: '#EFF6FF',\n 100: '#DBEAFE',\n 200: '#BFDBFE',\n 300: '#93C5FD',\n 400: '#60A5FA',\n 500: '#3B82F6',\n 600: '#5048E5', // Primary main\n 700: '#3832A0', // Primary dark\n 800: '#1E40AF',\n 900: '#1E3A8A',\n },\n\n // Green scale (secondary brand)\n green: {\n 50: '#ECFDF5',\n 100: '#D1FAE5',\n 200: '#A7F3D0',\n 300: '#6EE7B7',\n 400: '#3FC79A', // Secondary light\n 500: '#10B981', // Secondary main\n 600: '#059669',\n 700: '#0B815A', // Secondary dark\n 800: '#065F46',\n 900: '#064E3B',\n },\n\n // Teal scale (success)\n teal: {\n 50: '#F0FDFA',\n 100: '#CCFBF1',\n 200: '#99F6E4',\n 300: '#5EEAD4',\n 400: '#43C6B7', // Success light\n 500: '#14B8A6', // Success main\n 600: '#0D9488',\n 700: '#0E8074', // Success dark\n 800: '#115E59',\n 900: '#134E4A',\n },\n\n // Red scale (error)\n red: {\n 50: '#FEF2F2',\n 100: '#FEE2E2',\n 200: '#FECACA',\n 300: '#FCA5A5',\n 400: '#DA6868', // Error light\n 500: '#EF4444',\n 600: '#D14343', // Error main\n 700: '#922E2E', // Error dark\n 800: '#991B1B',\n 900: '#7F1D1D',\n },\n\n // Amber scale (warning)\n amber: {\n 50: '#FFFBEB',\n 100: '#FEF3C7',\n 200: '#FDE68A',\n 300: '#FCD34D',\n 400: '#FFBF4C', // Warning light\n 500: '#FFB020', // Warning main\n 600: '#B27B16', // Warning dark\n 700: '#B45309',\n 800: '#92400E',\n 900: '#78350F',\n },\n\n // Sky/Blue scale (info)\n sky: {\n 50: '#F0F9FF',\n 100: '#E0F2FE',\n 200: '#BAE6FD',\n 300: '#7DD3FC',\n 400: '#64B6F7', // Info light\n 500: '#2196F3', // Info main\n 600: '#0284C7',\n 700: '#0B79D0', // Info dark\n 800: '#075985',\n 900: '#0C4A6E',\n },\n\n // Neutral/Gray scale\n neutral: {\n 50: '#FAFAFA',\n 100: '#F3F4F6',\n 200: '#E5E7EB',\n 300: '#D1D5DB',\n 400: '#9CA3AF',\n 500: '#6B7280',\n 600: '#4B5563',\n 700: '#374151',\n 800: '#1F2937',\n 900: '#111827',\n 950: '#030712',\n },\n\n // Orange scale (accent/brand color)\n accent: {\n 100: '#FFA860',\n 200: '#FF9630',\n 300: '#FF8500',\n 400: '#FF7900',\n 500: '#F56C00',\n 600: '#E06D10',\n 700: '#D0620C',\n 800: '#B75500',\n 900: '#A34900',\n },\n\n // Charcoal scale (dark backgrounds)\n charcoal: {\n 0: '#6E6E6E',\n 50: '#5D5D5D',\n 100: '#4C4C4C',\n 200: '#3C3C3C',\n 300: '#2C2C2C',\n 400: '#1F1F1F',\n 500: '#1C1C1C',\n 600: '#191919',\n 700: '#161616',\n 800: '#131313',\n 900: '#101010',\n },\n\n // Steel scale (cool accent)\n steel: {\n 100: '#8AA4B8',\n 200: '#7894A8',\n 300: '#678498',\n 400: '#557488',\n 500: '#406D87',\n 600: '#39617A',\n 700: '#32556D',\n 800: '#243D53',\n 900: '#1D3146',\n },\n\n // Pure colors\n white: '#FFFFFF',\n black: '#000000',\n transparent: 'transparent',\n} as const\n\n/**\n * Discrete rainbow palette for data visualization\n * Based on Paul Tol's color schemes: https://personal.sron.nl/~pault/#fig:scheme_rainbow_discrete\n */\nexport const discreteRainbow = [\n '#E8ECFB',\n '#D9CCE3',\n '#D1BBD7',\n '#CAACCB',\n '#BA8DB4',\n '#AE76A3',\n '#AA6F9E',\n '#994F88',\n '#882E72',\n '#1965B0',\n '#437DBF',\n '#5289C7',\n '#6195CF',\n '#7BAFDE',\n '#4EB265',\n '#90C987',\n '#CAE0AB',\n '#F7F056',\n '#F7CB45',\n '#F6C141',\n '#F4A736',\n '#F1932D',\n '#EE8026',\n '#E8601C',\n '#E65518',\n '#DC050C',\n '#A5170E',\n '#72190E',\n '#42150A',\n] as const\n\n/**\n * Palette indices for discrete rainbow colors at different palette sizes.\n * For a given palette size (index + 1), returns the indices of colors to use.\n */\nconst discreteRainbowPalettes: number[][] = [\n [10],\n [10, 26],\n [10, 18, 26],\n [10, 15, 18, 26],\n [10, 14, 15, 18, 26],\n [10, 14, 15, 17, 18, 26],\n [9, 10, 14, 15, 17, 18, 26],\n [9, 10, 14, 15, 17, 18, 23, 26],\n [9, 10, 14, 15, 17, 18, 23, 26, 28],\n [9, 10, 14, 15, 17, 18, 21, 24, 26, 28],\n [9, 10, 12, 14, 15, 17, 18, 21, 24, 26, 28],\n [3, 6, 9, 10, 12, 14, 15, 17, 18, 21, 24, 26],\n [3, 6, 9, 10, 12, 14, 15, 16, 17, 18, 21, 24, 26],\n [3, 6, 9, 10, 12, 14, 15, 16, 17, 18, 20, 22, 24, 26],\n [3, 6, 9, 10, 12, 14, 15, 16, 17, 18, 20, 22, 24, 26, 28],\n [3, 5, 7, 9, 10, 12, 14, 15, 16, 17, 18, 20, 22, 24, 26, 28],\n [3, 5, 7, 8, 9, 10, 12, 14, 15, 16, 17, 18, 20, 22, 24, 26, 28],\n [3, 5, 7, 8, 9, 10, 12, 14, 15, 16, 17, 18, 20, 22, 24, 26, 27, 28],\n [2, 4, 5, 7, 8, 9, 10, 12, 14, 15, 16, 17, 18, 20, 22, 24, 26, 27, 28],\n [2, 4, 5, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 18, 20, 22, 24, 26, 27, 28],\n [2, 4, 5, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19, 21, 23, 25, 26, 27, 28],\n [2, 4, 5, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19, 21, 23, 25, 26, 27, 28, 29],\n [1, 2, 4, 5, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19, 21, 23, 25, 26, 27, 28, 29],\n]\n\n/**\n * Get a color from the discrete rainbow palette for a given index and palette size.\n * Colors are optimized for visual distinction at each palette size.\n *\n * @param index - The index of the color in the series (0-based)\n * @param size - The total number of colors needed (1-23)\n * @returns The hex color string\n */\nexport function getDiscreteRainbowColor(index: number, size: number): string {\n index = Math.max(0, index)\n size = Math.min(Math.max(1, size), discreteRainbowPalettes.length)\n\n const palette = discreteRainbowPalettes[size - 1]\n if (index >= palette.length) index = index % palette.length\n\n return discreteRainbow[palette[index] - 1]\n}\n\nexport const primitiveTypography = {\n fontFamilies: {\n sans: ['Inter', '-apple-system', 'BlinkMacSystemFont', 'Segoe UI', 'Helvetica', 'Arial', 'sans-serif'],\n body: ['Nunito Sans', 'sans-serif'],\n heading: ['Space Grotesk', 'sans-serif'],\n mono: ['SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', 'Droid Sans Mono', 'Source Code Pro', 'monospace'],\n },\n fontSizes: {\n xs: '0.75rem', // 12px\n sm: '0.875rem', // 14px\n base: '1rem', // 16px\n lg: '1.125rem', // 18px\n xl: '1.5rem', // 24px\n '2xl': '2rem', // 32px\n '3xl': '2.25rem', // 36px\n '4xl': '3rem', // 48px\n '5xl': '3.5rem', // 56px\n },\n fontWeights: {\n normal: 400,\n medium: 500,\n semibold: 600,\n bold: 700,\n },\n lineHeights: {\n none: 1,\n tight: 1.375,\n snug: 1.5,\n normal: 1.57,\n relaxed: 1.66,\n loose: 1.75,\n },\n letterSpacing: {\n tighter: '-0.05em',\n tight: '-0.025em',\n normal: '0em',\n wide: '0.025em',\n wider: '0.05em',\n widest: '0.5px',\n },\n} as const\n\nexport const primitiveSpacing = {\n 0: '0',\n px: '1px',\n 0.5: '0.125rem', // 2px\n 1: '0.25rem', // 4px\n 1.5: '0.375rem', // 6px\n 2: '0.5rem', // 8px\n 2.5: '0.625rem', // 10px\n 3: '0.75rem', // 12px\n 3.5: '0.875rem', // 14px\n 4: '1rem', // 16px\n 5: '1.25rem', // 20px\n 6: '1.5rem', // 24px\n 7: '1.75rem', // 28px\n 8: '2rem', // 32px\n 9: '2.25rem', // 36px\n 10: '2.5rem', // 40px\n 11: '2.75rem', // 44px\n 12: '3rem', // 48px\n 14: '3.5rem', // 56px\n 16: '4rem', // 64px\n 20: '5rem', // 80px\n 24: '6rem', // 96px\n 28: '7rem', // 112px\n 32: '8rem', // 128px\n} as const\n\nexport const primitiveBorderRadius = {\n none: '0',\n sm: '4px',\n DEFAULT: '8px',\n md: '8px',\n lg: '12px',\n xl: '16px',\n '2xl': '24px',\n full: '9999px',\n} as const\n\nexport const primitiveShadows = {\n none: 'none',\n sm: '0px 1px 2px rgba(100, 116, 139, 0.12)',\n DEFAULT: '0px 1px 3px rgba(100, 116, 139, 0.12), 0px 1px 2px rgba(100, 116, 139, 0.24)',\n md: '0px 4px 6px rgba(100, 116, 139, 0.12)',\n lg: '0px 10px 15px rgba(100, 116, 139, 0.12)',\n xl: '0px 20px 25px rgba(100, 116, 139, 0.12)',\n '2xl': '0px 25px 50px rgba(100, 116, 139, 0.25)',\n inner: 'inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)',\n} as const\n\nexport const primitiveBreakpoints = {\n xs: 0,\n sm: 600,\n md: 1000,\n lg: 1200,\n xl: 1920,\n} as const\n\nexport const primitiveZIndex = {\n hide: -1,\n auto: 'auto',\n base: 0,\n docked: 10,\n dropdown: 1000,\n sticky: 1100,\n drawer: 1100,\n banner: 1200,\n appBar: 1200,\n overlay: 1300,\n modal: 1400,\n popover: 1500,\n skipLink: 1600,\n toast: 1700,\n tooltip: 1800,\n} as const\n","/**\n * Semantic Design Tokens\n *\n * Meaningful tokens following DTCG (Design Tokens Community Group) naming conventions.\n * Pattern: {category}-{intent}-{variant?}-{state?}\n *\n * Categories:\n * - brand-* : Brand colors (primary, secondary, accent)\n * - status-* : Feedback colors (success, error, warning, info)\n * - result-* : Outcome indicators (improve, degrade, inconclusive, neutral)\n * - data-* : Data visualization colors (chart series)\n * - on-* : Text on colored backgrounds\n * - surface-* : Elevated containers (NOT \"paper\")\n * - background-* : Page backgrounds\n * - text-* : Text colors\n * - border-* : Border colors\n * - interactive-* : Hover/focus/active/disabled states\n */\n\nimport { primitiveColors as p, discreteRainbow } from './primitives'\n\n// Light mode semantic colors (default)\nexport const semanticColorsLight = {\n // Brand colors (brand-*)\n 'brand-primary': p.accent[400], // #FF7900\n 'brand-primary-light': p.accent[200], // #FF9630\n 'brand-primary-dark': p.accent[700], // #D0620C\n 'brand-primary-subtle': 'rgba(255, 121, 0, 0.08)',\n 'brand-primary-hover': p.accent[500],\n 'brand-primary-active': p.accent[600],\n\n 'brand-secondary': p.steel[500], // #406D87\n 'brand-secondary-light': p.steel[300], // #678498\n 'brand-secondary-dark': p.steel[700], // #32556D\n 'brand-secondary-subtle': 'rgba(64, 109, 135, 0.08)',\n 'brand-secondary-hover': p.steel[600],\n 'brand-secondary-active': p.steel[700],\n\n // Text on brand backgrounds (on-*)\n 'on-brand-primary': p.white,\n 'on-brand-secondary': p.white,\n\n // Status colors (status-*)\n 'status-success': p.teal[500], // #14B8A6\n 'status-success-light': p.teal[400], // #43C6B7\n 'status-success-dark': p.teal[700], // #0E8074\n 'status-success-subtle': p.teal[50],\n\n 'status-error': p.red[600], // #D14343\n 'status-error-light': p.red[400], // #DA6868\n 'status-error-dark': p.red[700], // #922E2E\n 'status-error-subtle': p.red[50],\n\n 'status-warning': p.amber[500], // #FFB020\n 'status-warning-light': p.amber[400], // #FFBF4C\n 'status-warning-dark': p.amber[600], // #B27B16\n 'status-warning-subtle': p.amber[50],\n\n 'status-info': p.sky[500], // #2196F3\n 'status-info-light': p.sky[400], // #64B6F7\n 'status-info-dark': p.sky[700], // #0B79D0\n 'status-info-subtle': p.sky[50],\n\n // Text on status backgrounds (on-status-*)\n 'on-status-success': p.white,\n 'on-status-error': p.white,\n 'on-status-warning': p.white,\n 'on-status-info': p.white,\n\n // Result/outcome indicators (result-*)\n 'result-improve': '#4caf50', // Green - positive outcome\n 'result-improve-light': 'rgba(76, 175, 80, 0.12)',\n 'result-improve-dark': '#248a24',\n 'result-degrade': '#ef5350', // Red - negative outcome\n 'result-degrade-light': 'rgba(239, 83, 80, 0.12)',\n 'result-degrade-dark': '#b30000',\n 'result-inconclusive': '#9E9A97', // Gray - no clear result\n 'result-inconclusive-light': 'rgba(158, 154, 151, 0.12)',\n 'result-neutral': p.neutral[500], // Neutral baseline\n\n // Text on result backgrounds (on-result-*)\n 'on-result-improve': p.white,\n 'on-result-degrade': p.white,\n 'on-result-inconclusive': p.white,\n\n // Data visualization colors (data-*)\n // First 10 colors from discrete rainbow optimized for charts\n 'data-1': discreteRainbow[9], // #1965B0 - Blue\n 'data-2': discreteRainbow[14], // #4EB265 - Green\n 'data-3': discreteRainbow[17], // #F7F056 - Yellow\n 'data-4': discreteRainbow[25], // #DC050C - Red\n 'data-5': discreteRainbow[8], // #882E72 - Purple\n 'data-6': discreteRainbow[20], // #F4A736 - Orange\n 'data-7': discreteRainbow[13], // #7BAFDE - Light Blue\n 'data-8': discreteRainbow[15], // #90C987 - Light Green\n 'data-9': discreteRainbow[3], // #CAACCB - Lavender\n 'data-10': discreteRainbow[22], // #EE8026 - Dark Orange\n\n // Text colors (text-*)\n 'text-primary': '#121828',\n 'text-secondary': '#65748B',\n 'text-tertiary': p.neutral[400],\n 'text-disabled': 'rgba(55, 65, 81, 0.48)',\n 'text-inverse': p.white,\n 'text-link': p.blue[600],\n 'text-link-hover': p.blue[700],\n\n // Surface colors (surface-*) - for elevated containers\n 'surface-base': p.white,\n 'surface-elevated': p.neutral[50], // #FAFAFA - slightly off-white for elevated cards\n 'surface-raised': p.neutral[100], // #F3F4F6 - light gray for raised cards\n 'surface-overlay': p.white,\n 'surface-input': p.neutral[50], // Input field background (filled variant)\n\n // Background colors (background-*)\n 'background-base': '#EBEBEB',\n 'background-default': p.white,\n 'background-subtle': p.neutral[50],\n\n // Border colors (border-*)\n 'border-default': '#E8E9EB',\n 'border-subtle': p.neutral[100],\n 'border-strong': p.neutral[300],\n 'border-focus': p.blue[600],\n 'border-input': p.neutral[300], // Input field border\n 'border-input-hover': p.neutral[400], // Input field border on hover\n 'border-input-focus': p.blue[600], // Input field border on focus\n 'border-input-error': p.red[600], // Input field border on error\n\n // Interactive states (interactive-*)\n 'interactive-hover': 'rgba(55, 65, 81, 0.04)',\n 'interactive-focus': 'rgba(55, 65, 81, 0.12)',\n 'interactive-active': 'rgba(55, 65, 81, 0.16)',\n 'interactive-selected': 'rgba(55, 65, 81, 0.08)',\n 'interactive-disabled': 'rgba(55, 65, 81, 0.12)',\n 'interactive-disabled-text': 'rgba(55, 65, 81, 0.26)',\n\n // Divider\n 'divider': '#E8E9EB',\n\n // Avatar default\n 'avatar-background': p.neutral[500],\n 'avatar-text': p.white,\n} as const\n\n// Dark mode semantic colors\nexport const semanticColorsDark = {\n // Brand colors stay the same in dark mode\n 'brand-primary': p.accent[400],\n 'brand-primary-light': p.accent[200],\n 'brand-primary-dark': p.accent[700],\n 'brand-primary-subtle': 'rgba(255, 121, 0, 0.12)',\n 'brand-primary-hover': p.accent[300],\n 'brand-primary-active': p.accent[200],\n\n 'brand-secondary': p.steel[500],\n 'brand-secondary-light': p.steel[300],\n 'brand-secondary-dark': p.steel[700],\n 'brand-secondary-subtle': 'rgba(64, 109, 135, 0.12)',\n 'brand-secondary-hover': p.steel[400],\n 'brand-secondary-active': p.steel[300],\n\n // Text on brand backgrounds\n 'on-brand-primary': p.white,\n 'on-brand-secondary': p.white,\n\n // Status colors\n 'status-success': p.teal[500],\n 'status-success-light': p.teal[400],\n 'status-success-dark': p.teal[700],\n 'status-success-subtle': 'rgba(20, 184, 166, 0.12)',\n\n 'status-error': p.red[600],\n 'status-error-light': p.red[400],\n 'status-error-dark': p.red[700],\n 'status-error-subtle': 'rgba(209, 67, 67, 0.12)',\n\n 'status-warning': p.amber[500],\n 'status-warning-light': p.amber[400],\n 'status-warning-dark': p.amber[600],\n 'status-warning-subtle': 'rgba(255, 176, 32, 0.12)',\n\n 'status-info': p.sky[500],\n 'status-info-light': p.sky[400],\n 'status-info-dark': p.sky[700],\n 'status-info-subtle': 'rgba(33, 150, 243, 0.12)',\n\n // Text on status backgrounds\n 'on-status-success': p.white,\n 'on-status-error': p.white,\n 'on-status-warning': p.white,\n 'on-status-info': p.white,\n\n // Result/outcome indicators (result-*)\n 'result-improve': '#4caf50',\n 'result-improve-light': 'rgba(76, 175, 80, 0.16)',\n 'result-improve-dark': '#248a24',\n 'result-degrade': '#ef5350',\n 'result-degrade-light': 'rgba(239, 83, 80, 0.16)',\n 'result-degrade-dark': '#b30000',\n 'result-inconclusive': '#9E9A97',\n 'result-inconclusive-light': 'rgba(158, 154, 151, 0.16)',\n 'result-neutral': p.neutral[400],\n\n // Text on result backgrounds\n 'on-result-improve': p.white,\n 'on-result-degrade': p.white,\n 'on-result-inconclusive': p.white,\n\n // Data visualization colors (same in dark mode for consistency)\n 'data-1': discreteRainbow[9],\n 'data-2': discreteRainbow[14],\n 'data-3': discreteRainbow[17],\n 'data-4': discreteRainbow[25],\n 'data-5': discreteRainbow[8],\n 'data-6': discreteRainbow[20],\n 'data-7': discreteRainbow[13],\n 'data-8': discreteRainbow[15],\n 'data-9': discreteRainbow[3],\n 'data-10': discreteRainbow[22],\n\n // Text colors - inverted for dark mode\n 'text-primary': p.neutral[100],\n 'text-secondary': p.neutral[400],\n 'text-tertiary': p.neutral[500],\n 'text-disabled': 'rgba(255, 255, 255, 0.38)',\n 'text-inverse': p.neutral[900],\n 'text-link': '#828DF8',\n 'text-link-hover': p.blue[400],\n\n // Surface colors - dark backgrounds\n 'surface-base': p.charcoal[700], // #161616 - main surface\n 'surface-elevated': p.charcoal[600], // #191919 - elevated surface\n 'surface-raised': p.charcoal[500], // #1C1C1C - raised surface\n 'surface-overlay': p.charcoal[600], // #191919 - overlay surface\n 'surface-input': p.charcoal[600], // #191919 - input surface\n\n // Background colors\n 'background-base': p.charcoal[900], // #101010 - darkest charcoal\n 'background-default': p.charcoal[700], // #161616 - main background\n 'background-subtle': p.charcoal[500], // #1C1C1C - subtle background\n\n // Border colors\n 'border-default': p.charcoal[400], // #1F1F1F - default border\n 'border-subtle': p.charcoal[500], // #1C1C1C - subtle border\n 'border-strong': p.charcoal[300], // #2C2C2C - strong border\n 'border-focus': '#828DF8',\n 'border-input': p.neutral[600],\n 'border-input-hover': p.neutral[500],\n 'border-input-focus': '#828DF8',\n 'border-input-error': p.red[500],\n\n // Interactive states\n 'interactive-hover': 'rgba(255, 255, 255, 0.04)',\n 'interactive-focus': 'rgba(255, 255, 255, 0.12)',\n 'interactive-active': 'rgba(255, 255, 255, 0.16)',\n 'interactive-selected': 'rgba(255, 255, 255, 0.08)',\n 'interactive-disabled': 'rgba(255, 255, 255, 0.12)',\n 'interactive-disabled-text': 'rgba(255, 255, 255, 0.26)',\n\n // Divider\n 'divider': p.charcoal[400], // #1F1F1F - divider color\n\n // Avatar default\n 'avatar-background': p.neutral[600],\n 'avatar-text': p.white,\n} as const\n\n// Typography tokens matching existing app\nexport const semanticTypography = {\n // Headings (Space Grotesk)\n h1: {\n fontFamily: 'heading',\n fontSize: '3.5rem',\n fontWeight: 700,\n lineHeight: 1.375,\n },\n h2: {\n fontFamily: 'heading',\n fontSize: '3rem',\n fontWeight: 700,\n lineHeight: 1.375,\n },\n h3: {\n fontFamily: 'heading',\n fontSize: '2.25rem',\n fontWeight: 700,\n lineHeight: 1.375,\n },\n h4: {\n fontFamily: 'heading',\n fontSize: '2rem',\n fontWeight: 700,\n lineHeight: 1.375,\n },\n h5: {\n fontFamily: 'heading',\n fontSize: '1.5rem',\n fontWeight: 600,\n lineHeight: 1.375,\n },\n h6: {\n fontFamily: 'heading',\n fontSize: '1.125rem',\n fontWeight: 600,\n lineHeight: 1.375,\n },\n\n // Body text (Nunito Sans)\n body1: {\n fontFamily: 'body',\n fontSize: '1rem',\n fontWeight: 400,\n lineHeight: 1.5,\n },\n body2: {\n fontFamily: 'body',\n fontSize: '0.875rem',\n fontWeight: 400,\n lineHeight: 1.57,\n },\n subtitle1: {\n fontFamily: 'body',\n fontSize: '1rem',\n fontWeight: 500,\n lineHeight: 1.75,\n },\n subtitle2: {\n fontFamily: 'body',\n fontSize: '0.875rem',\n fontWeight: 500,\n lineHeight: 1.57,\n },\n caption: {\n fontFamily: 'body',\n fontSize: '0.75rem',\n fontWeight: 400,\n lineHeight: 1.66,\n },\n overline: {\n fontFamily: 'body',\n fontSize: '0.75rem',\n fontWeight: 600,\n lineHeight: 2.5,\n letterSpacing: '0.5px',\n textTransform: 'uppercase' as const,\n },\n button: {\n fontFamily: 'sans',\n fontSize: '0.875rem',\n fontWeight: 600,\n lineHeight: 1.75,\n },\n} as const\n\n// Button size tokens\nexport const buttonSizes = {\n sm: {\n paddingX: '16px',\n paddingY: '6px',\n fontSize: '0.875rem',\n },\n md: {\n paddingX: '20px',\n paddingY: '8px',\n fontSize: '0.875rem',\n },\n lg: {\n paddingX: '24px',\n paddingY: '11px',\n fontSize: '1rem',\n },\n} as const\n\n// Export type for theme mode\nexport type ThemeMode = 'light' | 'dark'\n\n// Helper to get semantic colors based on mode\nexport function getSemanticColors(mode: ThemeMode) {\n return mode === 'dark' ? semanticColorsDark : semanticColorsLight\n}\n","/**\n * Theme Configuration\n *\n * Maps semantic tokens to CSS custom properties for runtime theming.\n * Dark mode is the default theme.\n */\n\nimport { semanticColorsLight, semanticColorsDark, type ThemeMode } from './tokens/semantic'\n\n// CSS custom properties for light mode\nexport const lightThemeCSSVars = {\n '--color-brand-primary': semanticColorsLight['brand-primary'],\n '--color-brand-primary-light': semanticColorsLight['brand-primary-light'],\n '--color-brand-primary-dark': semanticColorsLight['brand-primary-dark'],\n '--color-brand-primary-subtle': semanticColorsLight['brand-primary-subtle'],\n '--color-brand-secondary': semanticColorsLight['brand-secondary'],\n '--color-brand-secondary-light': semanticColorsLight['brand-secondary-light'],\n '--color-brand-secondary-dark': semanticColorsLight['brand-secondary-dark'],\n '--color-brand-secondary-subtle': semanticColorsLight['brand-secondary-subtle'],\n\n '--color-on-brand-primary': semanticColorsLight['on-brand-primary'],\n '--color-on-brand-secondary': semanticColorsLight['on-brand-secondary'],\n\n '--color-status-success': semanticColorsLight['status-success'],\n '--color-status-success-subtle': semanticColorsLight['status-success-subtle'],\n '--color-status-error': semanticColorsLight['status-error'],\n '--color-status-error-subtle': semanticColorsLight['status-error-subtle'],\n '--color-status-warning': semanticColorsLight['status-warning'],\n '--color-status-warning-subtle': semanticColorsLight['status-warning-subtle'],\n '--color-status-info': semanticColorsLight['status-info'],\n '--color-status-info-subtle': semanticColorsLight['status-info-subtle'],\n\n '--color-text-primary': semanticColorsLight['text-primary'],\n '--color-text-secondary': semanticColorsLight['text-secondary'],\n '--color-text-tertiary': semanticColorsLight['text-tertiary'],\n '--color-text-disabled': semanticColorsLight['text-disabled'],\n '--color-text-inverse': semanticColorsLight['text-inverse'],\n '--color-text-link': semanticColorsLight['text-link'],\n\n '--color-surface-base': semanticColorsLight['surface-base'],\n '--color-surface-elevated': semanticColorsLight['surface-elevated'],\n '--color-surface-raised': semanticColorsLight['surface-raised'],\n\n '--color-background-base': semanticColorsLight['background-base'],\n '--color-background-default': semanticColorsLight['background-default'],\n '--color-background-subtle': semanticColorsLight['background-subtle'],\n\n '--color-border-default': semanticColorsLight['border-default'],\n '--color-border-subtle': semanticColorsLight['border-subtle'],\n '--color-border-strong': semanticColorsLight['border-strong'],\n '--color-border-focus': semanticColorsLight['border-focus'],\n\n '--color-interactive-hover': semanticColorsLight['interactive-hover'],\n '--color-interactive-focus': semanticColorsLight['interactive-focus'],\n '--color-interactive-active': semanticColorsLight['interactive-active'],\n '--color-interactive-selected': semanticColorsLight['interactive-selected'],\n '--color-interactive-disabled': semanticColorsLight['interactive-disabled'],\n\n '--color-divider': semanticColorsLight['divider'],\n} as const\n\n// CSS custom properties for dark mode (default)\nexport const darkThemeCSSVars = {\n '--color-brand-primary': semanticColorsDark['brand-primary'],\n '--color-brand-primary-light': semanticColorsDark['brand-primary-light'],\n '--color-brand-primary-dark': semanticColorsDark['brand-primary-dark'],\n '--color-brand-primary-subtle': semanticColorsDark['brand-primary-subtle'],\n '--color-brand-secondary': semanticColorsDark['brand-secondary'],\n '--color-brand-secondary-light': semanticColorsDark['brand-secondary-light'],\n '--color-brand-secondary-dark': semanticColorsDark['brand-secondary-dark'],\n '--color-brand-secondary-subtle': semanticColorsDark['brand-secondary-subtle'],\n\n '--color-on-brand-primary': semanticColorsDark['on-brand-primary'],\n '--color-on-brand-secondary': semanticColorsDark['on-brand-secondary'],\n\n '--color-status-success': semanticColorsDark['status-success'],\n '--color-status-success-subtle': semanticColorsDark['status-success-subtle'],\n '--color-status-error': semanticColorsDark['status-error'],\n '--color-status-error-subtle': semanticColorsDark['status-error-subtle'],\n '--color-status-warning': semanticColorsDark['status-warning'],\n '--color-status-warning-subtle': semanticColorsDark['status-warning-subtle'],\n '--color-status-info': semanticColorsDark['status-info'],\n '--color-status-info-subtle': semanticColorsDark['status-info-subtle'],\n\n '--color-text-primary': semanticColorsDark['text-primary'],\n '--color-text-secondary': semanticColorsDark['text-secondary'],\n '--color-text-tertiary': semanticColorsDark['text-tertiary'],\n '--color-text-disabled': semanticColorsDark['text-disabled'],\n '--color-text-inverse': semanticColorsDark['text-inverse'],\n '--color-text-link': semanticColorsDark['text-link'],\n\n '--color-surface-base': semanticColorsDark['surface-base'],\n '--color-surface-elevated': semanticColorsDark['surface-elevated'],\n '--color-surface-raised': semanticColorsDark['surface-raised'],\n\n '--color-background-base': semanticColorsDark['background-base'],\n '--color-background-default': semanticColorsDark['background-default'],\n '--color-background-subtle': semanticColorsDark['background-subtle'],\n\n '--color-border-default': semanticColorsDark['border-default'],\n '--color-border-subtle': semanticColorsDark['border-subtle'],\n '--color-border-strong': semanticColorsDark['border-strong'],\n '--color-border-focus': semanticColorsDark['border-focus'],\n\n '--color-interactive-hover': semanticColorsDark['interactive-hover'],\n '--color-interactive-focus': semanticColorsDark['interactive-focus'],\n '--color-interactive-active': semanticColorsDark['interactive-active'],\n '--color-interactive-selected': semanticColorsDark['interactive-selected'],\n '--color-interactive-disabled': semanticColorsDark['interactive-disabled'],\n\n '--color-divider': semanticColorsDark['divider'],\n} as const\n\n// Helper to get CSS vars for a theme mode\nexport function getThemeCSSVars(mode: ThemeMode) {\n return mode === 'dark' ? darkThemeCSSVars : lightThemeCSSVars\n}\n\n// Gluestack UI theme configuration\nexport const gluestackConfig = {\n tokens: {\n colors: {\n // Map to our semantic colors via CSS vars\n primary500: 'var(--color-brand-primary)',\n primary600: 'var(--color-brand-primary-dark)',\n primary400: 'var(--color-brand-primary-light)',\n\n secondary500: 'var(--color-brand-secondary)',\n secondary600: 'var(--color-brand-secondary-dark)',\n secondary400: 'var(--color-brand-secondary-light)',\n\n success500: 'var(--color-status-success)',\n error500: 'var(--color-status-error)',\n warning500: 'var(--color-status-warning)',\n info500: 'var(--color-status-info)',\n\n textLight: 'var(--color-text-primary)',\n textDark: 'var(--color-text-inverse)',\n\n backgroundLight: 'var(--color-background-default)',\n backgroundDark: 'var(--color-surface-base)',\n },\n space: {\n '0': 0,\n '1': 4,\n '2': 8,\n '3': 12,\n '4': 16,\n '5': 20,\n '6': 24,\n '8': 32,\n '10': 40,\n '12': 48,\n '16': 64,\n '20': 80,\n '24': 96,\n },\n radii: {\n none: 0,\n sm: 4,\n md: 8,\n lg: 12,\n xl: 16,\n '2xl': 24,\n full: 9999,\n },\n fontSizes: {\n xs: 12,\n sm: 14,\n md: 16,\n lg: 18,\n xl: 20,\n '2xl': 24,\n '3xl': 30,\n '4xl': 36,\n '5xl': 48,\n },\n },\n aliases: {\n bg: 'backgroundColor',\n p: 'padding',\n px: 'paddingHorizontal',\n py: 'paddingVertical',\n m: 'margin',\n mx: 'marginHorizontal',\n my: 'marginVertical',\n h: 'height',\n w: 'width',\n rounded: 'borderRadius',\n },\n} as const\n\nexport type ThemeConfig = typeof gluestackConfig\n","/**\n * Token CSS Generator\n *\n * Emits a static `:root {}` CSS block from the canonical theme token maps\n * (`darkThemeCSSVars` / `lightThemeCSSVars`). HTML prototypes import the\n * generated stylesheet so they always resolve to the exact same values as\n * the design system. Pure codegen: deterministic and diffable against source.\n *\n * Dark mode is the default (`:root`); light mode is activated with `.light`,\n * matching the convention in `theme/global.css`.\n */\n\nimport { darkThemeCSSVars, lightThemeCSSVars } from './config'\n\ntype CSSVarMap = Record<string, string>\n\nconst GENERATED_HEADER = '/* Generated from theme token maps. Do not edit by hand. */'\n\nfunction formatBlock(selector: string, vars: CSSVarMap): string {\n const declarations = Object.entries(vars)\n .map(([name, value]) => ` ${name}: ${value};`)\n .join('\\n')\n return `${selector} {\\n${declarations}\\n}`\n}\n\n/**\n * Build the full `tokens.css` contents: a default (dark) `:root` block plus a\n * `.light` override block, driven entirely by the exported token maps.\n */\nexport function generateTokensCss(): string {\n const root = formatBlock(':root', darkThemeCSSVars)\n const light = formatBlock('.light, :root.light', lightThemeCSSVars)\n return `${GENERATED_HEADER}\\n\\n${root}\\n\\n${light}\\n`\n}\n"]}
@@ -0,0 +1,24 @@
1
+ import { darkThemeCSSVars, lightThemeCSSVars } from '../chunk-5SSKGS6E.mjs';
2
+
3
+ // src/theme/tokens-css.ts
4
+ var GENERATED_HEADER = "/* Generated from theme token maps. Do not edit by hand. */";
5
+ function formatBlock(selector, vars) {
6
+ const declarations = Object.entries(vars).map(([name, value]) => ` ${name}: ${value};`).join("\n");
7
+ return `${selector} {
8
+ ${declarations}
9
+ }`;
10
+ }
11
+ function generateTokensCss() {
12
+ const root = formatBlock(":root", darkThemeCSSVars);
13
+ const light = formatBlock(".light, :root.light", lightThemeCSSVars);
14
+ return `${GENERATED_HEADER}
15
+
16
+ ${root}
17
+
18
+ ${light}
19
+ `;
20
+ }
21
+
22
+ export { generateTokensCss };
23
+ //# sourceMappingURL=tokens-css.mjs.map
24
+ //# sourceMappingURL=tokens-css.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/theme/tokens-css.ts"],"names":[],"mappings":";;;AAgBA,IAAM,gBAAA,GAAmB,6DAAA;AAEzB,SAAS,WAAA,CAAY,UAAkB,IAAA,EAAyB;AAC9D,EAAA,MAAM,eAAe,MAAA,CAAO,OAAA,CAAQ,IAAI,CAAA,CACrC,GAAA,CAAI,CAAC,CAAC,IAAA,EAAM,KAAK,CAAA,KAAM,KAAK,IAAI,CAAA,EAAA,EAAK,KAAK,CAAA,CAAA,CAAG,CAAA,CAC7C,KAAK,IAAI,CAAA;AACZ,EAAA,OAAO,GAAG,QAAQ,CAAA;AAAA,EAAO,YAAY;AAAA,CAAA,CAAA;AACvC;AAMO,SAAS,iBAAA,GAA4B;AAC1C,EAAA,MAAM,IAAA,GAAO,WAAA,CAAY,OAAA,EAAS,gBAAgB,CAAA;AAClD,EAAA,MAAM,KAAA,GAAQ,WAAA,CAAY,qBAAA,EAAuB,iBAAiB,CAAA;AAClE,EAAA,OAAO,GAAG,gBAAgB;;AAAA,EAAO,IAAI;;AAAA,EAAO,KAAK;AAAA,CAAA;AACnD","file":"tokens-css.mjs","sourcesContent":["/**\n * Token CSS Generator\n *\n * Emits a static `:root {}` CSS block from the canonical theme token maps\n * (`darkThemeCSSVars` / `lightThemeCSSVars`). HTML prototypes import the\n * generated stylesheet so they always resolve to the exact same values as\n * the design system. Pure codegen: deterministic and diffable against source.\n *\n * Dark mode is the default (`:root`); light mode is activated with `.light`,\n * matching the convention in `theme/global.css`.\n */\n\nimport { darkThemeCSSVars, lightThemeCSSVars } from './config'\n\ntype CSSVarMap = Record<string, string>\n\nconst GENERATED_HEADER = '/* Generated from theme token maps. Do not edit by hand. */'\n\nfunction formatBlock(selector: string, vars: CSSVarMap): string {\n const declarations = Object.entries(vars)\n .map(([name, value]) => ` ${name}: ${value};`)\n .join('\\n')\n return `${selector} {\\n${declarations}\\n}`\n}\n\n/**\n * Build the full `tokens.css` contents: a default (dark) `:root` block plus a\n * `.light` override block, driven entirely by the exported token maps.\n */\nexport function generateTokensCss(): string {\n const root = formatBlock(':root', darkThemeCSSVars)\n const light = formatBlock('.light, :root.light', lightThemeCSSVars)\n return `${GENERATED_HEADER}\\n\\n${root}\\n\\n${light}\\n`\n}\n"]}