@titan-design/react-ui 0.3.0 → 0.5.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.
- package/dist/MesoStatusCard-CQk71hSi.d.mts +77 -0
- package/dist/MesoStatusCard-CQk71hSi.d.ts +77 -0
- package/dist/bodymap.d.mts +246 -3
- package/dist/bodymap.d.ts +246 -3
- package/dist/bodymap.js +441 -97
- package/dist/bodymap.js.map +1 -1
- package/dist/bodymap.mjs +1958 -66
- package/dist/bodymap.mjs.map +1 -1
- package/dist/index.d.mts +71 -738
- package/dist/index.d.ts +71 -738
- package/dist/index.js +888 -1583
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4515 -2348
- package/dist/index.mjs.map +1 -1
- package/dist/pages-D7Jlssvp.d.ts +791 -0
- package/dist/pages-MO0JCySL.d.mts +791 -0
- package/dist/pages.d.mts +4 -0
- package/dist/pages.d.ts +4 -0
- package/dist/pages.js +6646 -0
- package/dist/pages.js.map +1 -0
- package/dist/pages.mjs +6626 -0
- package/dist/pages.mjs.map +1 -0
- package/dist/theme/index.d.mts +28 -2
- package/dist/theme/index.d.ts +28 -2
- package/dist/theme/index.js +37 -0
- package/dist/theme/index.js.map +1 -1
- package/dist/theme/index.mjs +1880 -2
- package/dist/theme/index.mjs.map +1 -1
- package/dist/theme/tokens-css.mjs +573 -1
- package/dist/theme/tokens-css.mjs.map +1 -1
- package/package.json +9 -7
- package/src/components/custom/Workout/ActiveWorkoutPage.tsx +10 -15
- package/src/components/custom/Workout/BaseBadge.stories.tsx +3 -3
- package/src/components/custom/Workout/BaseBadge.test.tsx +1 -1
- package/src/components/custom/Workout/BaseBadge.tsx +1 -1
- package/src/components/custom/Workout/BodyMap.tsx +7 -8
- package/src/components/custom/Workout/BodyMapDetailPanel.tsx +25 -28
- package/src/components/custom/Workout/CapacityBandChart.tsx +2 -3
- package/src/components/custom/Workout/ExerciseCard.tsx +17 -28
- package/src/components/custom/Workout/ExerciseDetailPage.tsx +38 -31
- package/src/components/custom/Workout/InputBar.tsx +10 -11
- package/src/components/custom/Workout/IntensityBar.test.tsx +112 -60
- package/src/components/custom/Workout/IntensityBar.tsx +109 -58
- package/src/components/custom/Workout/MesoCard.tsx +2 -6
- package/src/components/custom/Workout/MesoStatusCard.tsx +17 -15
- package/src/components/custom/Workout/MuscleGroupChip.tsx +2 -4
- package/src/components/custom/Workout/PlaceholderStrip.tsx +5 -10
- package/src/components/custom/Workout/PrBadge.tsx +3 -3
- package/src/components/custom/Workout/PrHistoryModal.tsx +14 -16
- package/src/components/custom/Workout/ProgramPlanningPage.tsx +8 -12
- package/src/components/custom/Workout/README.md +50 -0
- package/src/components/custom/Workout/ReadinessCheck.tsx +13 -11
- package/src/components/custom/Workout/RestTimer.test.tsx +41 -10
- package/src/components/custom/Workout/RestTimer.tsx +55 -49
- package/src/components/custom/Workout/SetRow.tsx +20 -8
- package/src/components/custom/Workout/StrengthTrendChart.tsx +15 -17
- package/src/components/custom/Workout/TempoBar.stories.tsx +95 -0
- package/src/components/custom/Workout/TempoBar.test.tsx +103 -0
- package/src/components/custom/Workout/TempoBar.tsx +215 -0
- package/src/components/custom/Workout/TempoDisplay.stories.tsx +69 -2
- package/src/components/custom/Workout/TempoDisplay.test.tsx +35 -0
- package/src/components/custom/Workout/TempoDisplay.tsx +104 -1
- package/src/components/custom/Workout/TrainingStatusPage.tsx +8 -17
- package/src/components/custom/Workout/VelocityStrip.test.tsx +89 -2
- package/src/components/custom/Workout/VelocityStrip.tsx +210 -43
- package/src/components/custom/Workout/WeekRow.test.tsx +2 -2
- package/src/components/custom/Workout/WeekRow.tsx +2 -1
- package/src/components/custom/Workout/WeightBadge.test.tsx +2 -2
- package/src/components/custom/Workout/WeightBadge.tsx +2 -2
- package/src/components/custom/Workout/WorkoutCard.tsx +3 -8
- package/src/components/custom/Workout/icons.tsx +68 -0
- package/src/components/custom/Workout/index.ts +47 -47
- package/src/index.ts +3 -2
- package/src/pages.ts +61 -0
- package/src/test/nativewind-stub.ts +13 -0
- package/src/test/stories-smoke.test.tsx +50 -0
- package/src/theme/ThemeProvider.test.tsx +24 -0
- package/src/theme/ThemeProvider.tsx +50 -0
- package/src/theme/barrel.ts +53 -0
- package/src/theme/index.ts +8 -41
- package/src/theme/native-theming-guard.test.ts +117 -0
- package/src/theme/resolve-color.ts +19 -0
- package/dist/bodymap-BhG55xHM.d.mts +0 -318
- package/dist/bodymap-BhG55xHM.d.ts +0 -318
- package/dist/chunk-7XPB4NAO.mjs +0 -1013
- package/dist/chunk-7XPB4NAO.mjs.map +0 -1
- package/dist/chunk-P7TSQUN6.mjs +0 -846
- package/dist/chunk-P7TSQUN6.mjs.map +0 -1
- package/dist/chunk-TOD2WQBG.mjs +0 -1048
- package/dist/chunk-TOD2WQBG.mjs.map +0 -1
|
@@ -1,4 +1,576 @@
|
|
|
1
|
-
|
|
1
|
+
// src/theme/tokens/primitives.ts
|
|
2
|
+
var primitiveColors = {
|
|
3
|
+
// Blue scale (primary brand)
|
|
4
|
+
blue: {
|
|
5
|
+
400: "#60A5FA",
|
|
6
|
+
600: "#5048E5",
|
|
7
|
+
// Primary main
|
|
8
|
+
700: "#3832A0"},
|
|
9
|
+
// Teal scale (success)
|
|
10
|
+
teal: {
|
|
11
|
+
50: "#F0FDFA",
|
|
12
|
+
400: "#43C6B7",
|
|
13
|
+
// Success light
|
|
14
|
+
500: "#14B8A6",
|
|
15
|
+
700: "#0E8074"},
|
|
16
|
+
// Red scale (error)
|
|
17
|
+
red: {
|
|
18
|
+
50: "#FEF2F2",
|
|
19
|
+
400: "#DA6868",
|
|
20
|
+
// Error light
|
|
21
|
+
500: "#EF4444",
|
|
22
|
+
600: "#D14343",
|
|
23
|
+
// Error main
|
|
24
|
+
700: "#922E2E"},
|
|
25
|
+
// Amber scale (warning)
|
|
26
|
+
amber: {
|
|
27
|
+
50: "#FFFBEB",
|
|
28
|
+
400: "#FFBF4C",
|
|
29
|
+
// Warning light
|
|
30
|
+
500: "#FFB020",
|
|
31
|
+
// Warning main
|
|
32
|
+
600: "#B27B16"},
|
|
33
|
+
// Sky/Blue scale (info)
|
|
34
|
+
sky: {
|
|
35
|
+
50: "#F0F9FF",
|
|
36
|
+
400: "#64B6F7",
|
|
37
|
+
// Info light
|
|
38
|
+
500: "#2196F3",
|
|
39
|
+
700: "#0B79D0"},
|
|
40
|
+
// Neutral/Gray scale
|
|
41
|
+
neutral: {
|
|
42
|
+
50: "#FAFAFA",
|
|
43
|
+
100: "#F3F4F6",
|
|
44
|
+
300: "#D1D5DB",
|
|
45
|
+
400: "#9CA3AF",
|
|
46
|
+
500: "#6B7280",
|
|
47
|
+
600: "#4B5563",
|
|
48
|
+
900: "#111827"},
|
|
49
|
+
// Orange scale (accent/brand color)
|
|
50
|
+
accent: {
|
|
51
|
+
200: "#FF9630",
|
|
52
|
+
300: "#FF8500",
|
|
53
|
+
400: "#FF7900",
|
|
54
|
+
500: "#F56C00",
|
|
55
|
+
600: "#E06D10",
|
|
56
|
+
700: "#D0620C"},
|
|
57
|
+
// Charcoal scale (dark backgrounds)
|
|
58
|
+
charcoal: {
|
|
59
|
+
300: "#2C2C2C",
|
|
60
|
+
400: "#1F1F1F",
|
|
61
|
+
500: "#1C1C1C",
|
|
62
|
+
600: "#191919",
|
|
63
|
+
700: "#161616",
|
|
64
|
+
900: "#101010"
|
|
65
|
+
},
|
|
66
|
+
// Steel scale (cool accent)
|
|
67
|
+
steel: {
|
|
68
|
+
300: "#678498",
|
|
69
|
+
400: "#557488",
|
|
70
|
+
500: "#406D87",
|
|
71
|
+
600: "#39617A",
|
|
72
|
+
700: "#32556D"},
|
|
73
|
+
// Pure colors
|
|
74
|
+
white: "#FFFFFF"};
|
|
75
|
+
var discreteRainbow = [
|
|
76
|
+
"#E8ECFB",
|
|
77
|
+
"#D9CCE3",
|
|
78
|
+
"#D1BBD7",
|
|
79
|
+
"#CAACCB",
|
|
80
|
+
"#BA8DB4",
|
|
81
|
+
"#AE76A3",
|
|
82
|
+
"#AA6F9E",
|
|
83
|
+
"#994F88",
|
|
84
|
+
"#882E72",
|
|
85
|
+
"#1965B0",
|
|
86
|
+
"#437DBF",
|
|
87
|
+
"#5289C7",
|
|
88
|
+
"#6195CF",
|
|
89
|
+
"#7BAFDE",
|
|
90
|
+
"#4EB265",
|
|
91
|
+
"#90C987",
|
|
92
|
+
"#CAE0AB",
|
|
93
|
+
"#F7F056",
|
|
94
|
+
"#F7CB45",
|
|
95
|
+
"#F6C141",
|
|
96
|
+
"#F4A736",
|
|
97
|
+
"#F1932D",
|
|
98
|
+
"#EE8026",
|
|
99
|
+
"#E8601C",
|
|
100
|
+
"#E65518",
|
|
101
|
+
"#DC050C",
|
|
102
|
+
"#A5170E",
|
|
103
|
+
"#72190E",
|
|
104
|
+
"#42150A"
|
|
105
|
+
];
|
|
106
|
+
|
|
107
|
+
// src/theme/tokens/semantic.ts
|
|
108
|
+
var semanticColorsLight = {
|
|
109
|
+
// Brand colors (brand-*)
|
|
110
|
+
"brand-primary": primitiveColors.accent[400],
|
|
111
|
+
// #FF7900
|
|
112
|
+
"brand-primary-light": primitiveColors.accent[200],
|
|
113
|
+
// #FF9630
|
|
114
|
+
"brand-primary-dark": primitiveColors.accent[700],
|
|
115
|
+
// #D0620C
|
|
116
|
+
"brand-primary-subtle": "rgba(255, 121, 0, 0.08)",
|
|
117
|
+
"brand-primary-hover": primitiveColors.accent[500],
|
|
118
|
+
"brand-primary-active": primitiveColors.accent[600],
|
|
119
|
+
"brand-secondary": primitiveColors.steel[500],
|
|
120
|
+
// #406D87
|
|
121
|
+
"brand-secondary-light": primitiveColors.steel[300],
|
|
122
|
+
// #678498
|
|
123
|
+
"brand-secondary-dark": primitiveColors.steel[700],
|
|
124
|
+
// #32556D
|
|
125
|
+
"brand-secondary-subtle": "rgba(64, 109, 135, 0.08)",
|
|
126
|
+
"brand-secondary-hover": primitiveColors.steel[600],
|
|
127
|
+
"brand-secondary-active": primitiveColors.steel[700],
|
|
128
|
+
// Text on brand backgrounds (on-*)
|
|
129
|
+
"on-brand-primary": primitiveColors.white,
|
|
130
|
+
"on-brand-secondary": primitiveColors.white,
|
|
131
|
+
// Status colors (status-*)
|
|
132
|
+
"status-success": primitiveColors.teal[500],
|
|
133
|
+
// #14B8A6
|
|
134
|
+
"status-success-light": primitiveColors.teal[400],
|
|
135
|
+
// #43C6B7
|
|
136
|
+
"status-success-dark": primitiveColors.teal[700],
|
|
137
|
+
// #0E8074
|
|
138
|
+
"status-success-subtle": primitiveColors.teal[50],
|
|
139
|
+
"status-error": primitiveColors.red[600],
|
|
140
|
+
// #D14343
|
|
141
|
+
"status-error-light": primitiveColors.red[400],
|
|
142
|
+
// #DA6868
|
|
143
|
+
"status-error-dark": primitiveColors.red[700],
|
|
144
|
+
// #922E2E
|
|
145
|
+
"status-error-subtle": primitiveColors.red[50],
|
|
146
|
+
"status-warning": primitiveColors.amber[500],
|
|
147
|
+
// #FFB020
|
|
148
|
+
"status-warning-light": primitiveColors.amber[400],
|
|
149
|
+
// #FFBF4C
|
|
150
|
+
"status-warning-dark": primitiveColors.amber[600],
|
|
151
|
+
// #B27B16
|
|
152
|
+
"status-warning-subtle": primitiveColors.amber[50],
|
|
153
|
+
"status-info": primitiveColors.sky[500],
|
|
154
|
+
// #2196F3
|
|
155
|
+
"status-info-light": primitiveColors.sky[400],
|
|
156
|
+
// #64B6F7
|
|
157
|
+
"status-info-dark": primitiveColors.sky[700],
|
|
158
|
+
// #0B79D0
|
|
159
|
+
"status-info-subtle": primitiveColors.sky[50],
|
|
160
|
+
// Text on status backgrounds (on-status-*)
|
|
161
|
+
"on-status-success": primitiveColors.white,
|
|
162
|
+
"on-status-error": primitiveColors.white,
|
|
163
|
+
"on-status-warning": primitiveColors.white,
|
|
164
|
+
"on-status-info": primitiveColors.white,
|
|
165
|
+
// Result/outcome indicators (result-*)
|
|
166
|
+
"result-improve": "#4caf50",
|
|
167
|
+
// Green - positive outcome
|
|
168
|
+
"result-improve-light": "rgba(76, 175, 80, 0.12)",
|
|
169
|
+
"result-improve-dark": "#248a24",
|
|
170
|
+
"result-degrade": "#ef5350",
|
|
171
|
+
// Red - negative outcome
|
|
172
|
+
"result-degrade-light": "rgba(239, 83, 80, 0.12)",
|
|
173
|
+
"result-degrade-dark": "#b30000",
|
|
174
|
+
"result-inconclusive": "#9E9A97",
|
|
175
|
+
// Gray - no clear result
|
|
176
|
+
"result-inconclusive-light": "rgba(158, 154, 151, 0.12)",
|
|
177
|
+
"result-neutral": primitiveColors.neutral[500],
|
|
178
|
+
// Neutral baseline
|
|
179
|
+
// Text on result backgrounds (on-result-*)
|
|
180
|
+
"on-result-improve": primitiveColors.white,
|
|
181
|
+
"on-result-degrade": primitiveColors.white,
|
|
182
|
+
"on-result-inconclusive": primitiveColors.white,
|
|
183
|
+
// Data visualization colors (data-*)
|
|
184
|
+
// First 10 colors from discrete rainbow optimized for charts
|
|
185
|
+
"data-1": discreteRainbow[9],
|
|
186
|
+
// #1965B0 - Blue
|
|
187
|
+
"data-2": discreteRainbow[14],
|
|
188
|
+
// #4EB265 - Green
|
|
189
|
+
"data-3": discreteRainbow[17],
|
|
190
|
+
// #F7F056 - Yellow
|
|
191
|
+
"data-4": discreteRainbow[25],
|
|
192
|
+
// #DC050C - Red
|
|
193
|
+
"data-5": discreteRainbow[8],
|
|
194
|
+
// #882E72 - Purple
|
|
195
|
+
"data-6": discreteRainbow[20],
|
|
196
|
+
// #F4A736 - Orange
|
|
197
|
+
"data-7": discreteRainbow[13],
|
|
198
|
+
// #7BAFDE - Light Blue
|
|
199
|
+
"data-8": discreteRainbow[15],
|
|
200
|
+
// #90C987 - Light Green
|
|
201
|
+
"data-9": discreteRainbow[3],
|
|
202
|
+
// #CAACCB - Lavender
|
|
203
|
+
"data-10": discreteRainbow[22],
|
|
204
|
+
// #EE8026 - Dark Orange
|
|
205
|
+
// Text colors (text-*)
|
|
206
|
+
"text-primary": "#121828",
|
|
207
|
+
"text-secondary": "#65748B",
|
|
208
|
+
"text-tertiary": primitiveColors.neutral[400],
|
|
209
|
+
"text-disabled": "rgba(55, 65, 81, 0.48)",
|
|
210
|
+
"text-inverse": primitiveColors.white,
|
|
211
|
+
"text-link": primitiveColors.blue[600],
|
|
212
|
+
"text-link-hover": primitiveColors.blue[700],
|
|
213
|
+
// Surface colors (surface-*) - for elevated containers
|
|
214
|
+
"surface-base": primitiveColors.white,
|
|
215
|
+
"surface-elevated": primitiveColors.neutral[50],
|
|
216
|
+
// #FAFAFA - slightly off-white for elevated cards
|
|
217
|
+
"surface-raised": primitiveColors.neutral[100],
|
|
218
|
+
// #F3F4F6 - light gray for raised cards
|
|
219
|
+
"surface-overlay": primitiveColors.white,
|
|
220
|
+
"surface-input": primitiveColors.neutral[50],
|
|
221
|
+
// Input field background (filled variant)
|
|
222
|
+
// Background colors (background-*)
|
|
223
|
+
"background-base": "#EBEBEB",
|
|
224
|
+
"background-default": primitiveColors.white,
|
|
225
|
+
"background-subtle": primitiveColors.neutral[50],
|
|
226
|
+
// Border colors (border-*)
|
|
227
|
+
"border-default": "#E8E9EB",
|
|
228
|
+
"border-subtle": primitiveColors.neutral[100],
|
|
229
|
+
"border-strong": primitiveColors.neutral[300],
|
|
230
|
+
"border-focus": primitiveColors.blue[600],
|
|
231
|
+
"border-input": primitiveColors.neutral[300],
|
|
232
|
+
// Input field border
|
|
233
|
+
"border-input-hover": primitiveColors.neutral[400],
|
|
234
|
+
// Input field border on hover
|
|
235
|
+
"border-input-focus": primitiveColors.blue[600],
|
|
236
|
+
// Input field border on focus
|
|
237
|
+
"border-input-error": primitiveColors.red[600],
|
|
238
|
+
// Input field border on error
|
|
239
|
+
// Interactive states (interactive-*)
|
|
240
|
+
"interactive-hover": "rgba(55, 65, 81, 0.04)",
|
|
241
|
+
"interactive-focus": "rgba(55, 65, 81, 0.12)",
|
|
242
|
+
"interactive-active": "rgba(55, 65, 81, 0.16)",
|
|
243
|
+
"interactive-selected": "rgba(55, 65, 81, 0.08)",
|
|
244
|
+
"interactive-disabled": "rgba(55, 65, 81, 0.12)",
|
|
245
|
+
"interactive-disabled-text": "rgba(55, 65, 81, 0.26)",
|
|
246
|
+
// Divider
|
|
247
|
+
"divider": "#E8E9EB",
|
|
248
|
+
// Avatar default
|
|
249
|
+
"avatar-background": primitiveColors.neutral[500],
|
|
250
|
+
"avatar-text": primitiveColors.white
|
|
251
|
+
};
|
|
252
|
+
var semanticColorsDark = {
|
|
253
|
+
// Brand colors stay the same in dark mode
|
|
254
|
+
"brand-primary": primitiveColors.accent[400],
|
|
255
|
+
"brand-primary-light": primitiveColors.accent[200],
|
|
256
|
+
"brand-primary-dark": primitiveColors.accent[700],
|
|
257
|
+
"brand-primary-subtle": "rgba(255, 121, 0, 0.12)",
|
|
258
|
+
"brand-primary-hover": primitiveColors.accent[300],
|
|
259
|
+
"brand-primary-active": primitiveColors.accent[200],
|
|
260
|
+
"brand-secondary": primitiveColors.steel[500],
|
|
261
|
+
"brand-secondary-light": primitiveColors.steel[300],
|
|
262
|
+
"brand-secondary-dark": primitiveColors.steel[700],
|
|
263
|
+
"brand-secondary-subtle": "rgba(64, 109, 135, 0.12)",
|
|
264
|
+
"brand-secondary-hover": primitiveColors.steel[400],
|
|
265
|
+
"brand-secondary-active": primitiveColors.steel[300],
|
|
266
|
+
// Text on brand backgrounds
|
|
267
|
+
"on-brand-primary": primitiveColors.white,
|
|
268
|
+
"on-brand-secondary": primitiveColors.white,
|
|
269
|
+
// Status colors
|
|
270
|
+
"status-success": primitiveColors.teal[500],
|
|
271
|
+
"status-success-light": primitiveColors.teal[400],
|
|
272
|
+
"status-success-dark": primitiveColors.teal[700],
|
|
273
|
+
"status-success-subtle": "rgba(20, 184, 166, 0.12)",
|
|
274
|
+
"status-error": primitiveColors.red[600],
|
|
275
|
+
"status-error-light": primitiveColors.red[400],
|
|
276
|
+
"status-error-dark": primitiveColors.red[700],
|
|
277
|
+
"status-error-subtle": "rgba(209, 67, 67, 0.12)",
|
|
278
|
+
"status-warning": primitiveColors.amber[500],
|
|
279
|
+
"status-warning-light": primitiveColors.amber[400],
|
|
280
|
+
"status-warning-dark": primitiveColors.amber[600],
|
|
281
|
+
"status-warning-subtle": "rgba(255, 176, 32, 0.12)",
|
|
282
|
+
"status-info": primitiveColors.sky[500],
|
|
283
|
+
"status-info-light": primitiveColors.sky[400],
|
|
284
|
+
"status-info-dark": primitiveColors.sky[700],
|
|
285
|
+
"status-info-subtle": "rgba(33, 150, 243, 0.12)",
|
|
286
|
+
// Text on status backgrounds
|
|
287
|
+
"on-status-success": primitiveColors.white,
|
|
288
|
+
"on-status-error": primitiveColors.white,
|
|
289
|
+
"on-status-warning": primitiveColors.white,
|
|
290
|
+
"on-status-info": primitiveColors.white,
|
|
291
|
+
// Result/outcome indicators (result-*)
|
|
292
|
+
"result-improve": "#4caf50",
|
|
293
|
+
"result-improve-light": "rgba(76, 175, 80, 0.16)",
|
|
294
|
+
"result-improve-dark": "#248a24",
|
|
295
|
+
"result-degrade": "#ef5350",
|
|
296
|
+
"result-degrade-light": "rgba(239, 83, 80, 0.16)",
|
|
297
|
+
"result-degrade-dark": "#b30000",
|
|
298
|
+
"result-inconclusive": "#9E9A97",
|
|
299
|
+
"result-inconclusive-light": "rgba(158, 154, 151, 0.16)",
|
|
300
|
+
"result-neutral": primitiveColors.neutral[400],
|
|
301
|
+
// Text on result backgrounds
|
|
302
|
+
"on-result-improve": primitiveColors.white,
|
|
303
|
+
"on-result-degrade": primitiveColors.white,
|
|
304
|
+
"on-result-inconclusive": primitiveColors.white,
|
|
305
|
+
// Data visualization colors (same in dark mode for consistency)
|
|
306
|
+
"data-1": discreteRainbow[9],
|
|
307
|
+
"data-2": discreteRainbow[14],
|
|
308
|
+
"data-3": discreteRainbow[17],
|
|
309
|
+
"data-4": discreteRainbow[25],
|
|
310
|
+
"data-5": discreteRainbow[8],
|
|
311
|
+
"data-6": discreteRainbow[20],
|
|
312
|
+
"data-7": discreteRainbow[13],
|
|
313
|
+
"data-8": discreteRainbow[15],
|
|
314
|
+
"data-9": discreteRainbow[3],
|
|
315
|
+
"data-10": discreteRainbow[22],
|
|
316
|
+
// Text colors - inverted for dark mode
|
|
317
|
+
"text-primary": primitiveColors.neutral[100],
|
|
318
|
+
"text-secondary": primitiveColors.neutral[400],
|
|
319
|
+
"text-tertiary": primitiveColors.neutral[500],
|
|
320
|
+
"text-disabled": "rgba(255, 255, 255, 0.38)",
|
|
321
|
+
"text-inverse": primitiveColors.neutral[900],
|
|
322
|
+
"text-link": "#828DF8",
|
|
323
|
+
"text-link-hover": primitiveColors.blue[400],
|
|
324
|
+
// Surface colors - dark backgrounds
|
|
325
|
+
"surface-base": primitiveColors.charcoal[700],
|
|
326
|
+
// #161616 - main surface
|
|
327
|
+
"surface-elevated": primitiveColors.charcoal[600],
|
|
328
|
+
// #191919 - elevated surface
|
|
329
|
+
"surface-raised": primitiveColors.charcoal[500],
|
|
330
|
+
// #1C1C1C - raised surface
|
|
331
|
+
"surface-overlay": primitiveColors.charcoal[600],
|
|
332
|
+
// #191919 - overlay surface
|
|
333
|
+
"surface-input": primitiveColors.charcoal[600],
|
|
334
|
+
// #191919 - input surface
|
|
335
|
+
// Background colors
|
|
336
|
+
"background-base": primitiveColors.charcoal[900],
|
|
337
|
+
// #101010 - darkest charcoal
|
|
338
|
+
"background-default": primitiveColors.charcoal[700],
|
|
339
|
+
// #161616 - main background
|
|
340
|
+
"background-subtle": primitiveColors.charcoal[500],
|
|
341
|
+
// #1C1C1C - subtle background
|
|
342
|
+
// Border colors
|
|
343
|
+
"border-default": primitiveColors.charcoal[400],
|
|
344
|
+
// #1F1F1F - default border
|
|
345
|
+
"border-subtle": primitiveColors.charcoal[500],
|
|
346
|
+
// #1C1C1C - subtle border
|
|
347
|
+
"border-strong": primitiveColors.charcoal[300],
|
|
348
|
+
// #2C2C2C - strong border
|
|
349
|
+
"border-focus": "#828DF8",
|
|
350
|
+
"border-input": primitiveColors.neutral[600],
|
|
351
|
+
"border-input-hover": primitiveColors.neutral[500],
|
|
352
|
+
"border-input-focus": "#828DF8",
|
|
353
|
+
"border-input-error": primitiveColors.red[500],
|
|
354
|
+
// Interactive states
|
|
355
|
+
"interactive-hover": "rgba(255, 255, 255, 0.04)",
|
|
356
|
+
"interactive-focus": "rgba(255, 255, 255, 0.12)",
|
|
357
|
+
"interactive-active": "rgba(255, 255, 255, 0.16)",
|
|
358
|
+
"interactive-selected": "rgba(255, 255, 255, 0.08)",
|
|
359
|
+
"interactive-disabled": "rgba(255, 255, 255, 0.12)",
|
|
360
|
+
"interactive-disabled-text": "rgba(255, 255, 255, 0.26)",
|
|
361
|
+
// Divider
|
|
362
|
+
"divider": primitiveColors.charcoal[400],
|
|
363
|
+
// #1F1F1F - divider color
|
|
364
|
+
// Avatar default
|
|
365
|
+
"avatar-background": primitiveColors.neutral[600],
|
|
366
|
+
"avatar-text": primitiveColors.white
|
|
367
|
+
};
|
|
368
|
+
|
|
369
|
+
// src/theme/config.ts
|
|
370
|
+
var themeIndependentCSSVars = {
|
|
371
|
+
// RGB decomposed values for glow shadows
|
|
372
|
+
"--color-brand-primary-rgb": "255, 121, 0",
|
|
373
|
+
"--color-brand-secondary-rgb": "64, 109, 135",
|
|
374
|
+
"--color-status-success-rgb": "20, 184, 166",
|
|
375
|
+
"--color-status-error-rgb": "209, 67, 67",
|
|
376
|
+
"--color-status-warning-rgb": "255, 176, 32",
|
|
377
|
+
"--color-status-info-rgb": "33, 150, 243",
|
|
378
|
+
"--color-background-base-rgb": "16, 16, 16",
|
|
379
|
+
// Font families
|
|
380
|
+
"--font-family-sans": "'Inter'",
|
|
381
|
+
"--font-family-body": "'Nunito Sans'",
|
|
382
|
+
"--font-family-heading": "'Space Grotesk'",
|
|
383
|
+
"--font-family-mono": "'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace",
|
|
384
|
+
// Animation tokens
|
|
385
|
+
"--ease-out": "cubic-bezier(0.22, 1, 0.36, 1)",
|
|
386
|
+
"--ease-in-out": "cubic-bezier(0.65, 0, 0.35, 1)",
|
|
387
|
+
"--ease-spring": "cubic-bezier(0.34, 1.56, 0.64, 1)",
|
|
388
|
+
"--duration-fast": "150ms",
|
|
389
|
+
"--duration-normal": "250ms",
|
|
390
|
+
"--duration-slow": "400ms"
|
|
391
|
+
};
|
|
392
|
+
var lightThemeCSSVars = {
|
|
393
|
+
"--color-brand-primary": semanticColorsLight["brand-primary"],
|
|
394
|
+
"--color-brand-primary-light": semanticColorsLight["brand-primary-light"],
|
|
395
|
+
"--color-brand-primary-dark": semanticColorsLight["brand-primary-dark"],
|
|
396
|
+
"--color-brand-primary-subtle": semanticColorsLight["brand-primary-subtle"],
|
|
397
|
+
"--color-brand-secondary": semanticColorsLight["brand-secondary"],
|
|
398
|
+
"--color-brand-secondary-light": semanticColorsLight["brand-secondary-light"],
|
|
399
|
+
"--color-brand-secondary-dark": semanticColorsLight["brand-secondary-dark"],
|
|
400
|
+
"--color-brand-secondary-subtle": semanticColorsLight["brand-secondary-subtle"],
|
|
401
|
+
"--color-on-brand-primary": semanticColorsLight["on-brand-primary"],
|
|
402
|
+
"--color-on-brand-secondary": semanticColorsLight["on-brand-secondary"],
|
|
403
|
+
"--color-status-success": semanticColorsLight["status-success"],
|
|
404
|
+
"--color-status-success-subtle": semanticColorsLight["status-success-subtle"],
|
|
405
|
+
"--color-status-error": semanticColorsLight["status-error"],
|
|
406
|
+
"--color-status-error-subtle": semanticColorsLight["status-error-subtle"],
|
|
407
|
+
"--color-status-warning": semanticColorsLight["status-warning"],
|
|
408
|
+
"--color-status-warning-subtle": semanticColorsLight["status-warning-subtle"],
|
|
409
|
+
"--color-status-info": semanticColorsLight["status-info"],
|
|
410
|
+
"--color-status-info-subtle": semanticColorsLight["status-info-subtle"],
|
|
411
|
+
"--color-text-primary": semanticColorsLight["text-primary"],
|
|
412
|
+
"--color-text-secondary": semanticColorsLight["text-secondary"],
|
|
413
|
+
"--color-text-tertiary": semanticColorsLight["text-tertiary"],
|
|
414
|
+
"--color-text-disabled": semanticColorsLight["text-disabled"],
|
|
415
|
+
"--color-text-inverse": semanticColorsLight["text-inverse"],
|
|
416
|
+
"--color-text-link": semanticColorsLight["text-link"],
|
|
417
|
+
"--color-surface-base": semanticColorsLight["surface-base"],
|
|
418
|
+
"--color-surface-elevated": semanticColorsLight["surface-elevated"],
|
|
419
|
+
"--color-surface-raised": semanticColorsLight["surface-raised"],
|
|
420
|
+
"--color-background-base": semanticColorsLight["background-base"],
|
|
421
|
+
"--color-background-default": semanticColorsLight["background-default"],
|
|
422
|
+
"--color-background-subtle": semanticColorsLight["background-subtle"],
|
|
423
|
+
"--color-border-default": semanticColorsLight["border-default"],
|
|
424
|
+
"--color-border-subtle": semanticColorsLight["border-subtle"],
|
|
425
|
+
"--color-border-strong": semanticColorsLight["border-strong"],
|
|
426
|
+
"--color-border-focus": semanticColorsLight["border-focus"],
|
|
427
|
+
"--color-interactive-hover": semanticColorsLight["interactive-hover"],
|
|
428
|
+
"--color-interactive-focus": semanticColorsLight["interactive-focus"],
|
|
429
|
+
"--color-interactive-active": semanticColorsLight["interactive-active"],
|
|
430
|
+
"--color-interactive-selected": semanticColorsLight["interactive-selected"],
|
|
431
|
+
"--color-interactive-disabled": semanticColorsLight["interactive-disabled"],
|
|
432
|
+
"--color-divider": semanticColorsLight["divider"],
|
|
433
|
+
"--color-brand-primary-hover": semanticColorsLight["brand-primary-hover"],
|
|
434
|
+
"--color-brand-primary-active": semanticColorsLight["brand-primary-active"],
|
|
435
|
+
"--color-brand-secondary-hover": semanticColorsLight["brand-secondary-hover"],
|
|
436
|
+
"--color-brand-secondary-active": semanticColorsLight["brand-secondary-active"],
|
|
437
|
+
"--color-status-success-light": semanticColorsLight["status-success-light"],
|
|
438
|
+
"--color-status-success-dark": semanticColorsLight["status-success-dark"],
|
|
439
|
+
"--color-status-error-light": semanticColorsLight["status-error-light"],
|
|
440
|
+
"--color-status-error-dark": semanticColorsLight["status-error-dark"],
|
|
441
|
+
"--color-status-warning-light": semanticColorsLight["status-warning-light"],
|
|
442
|
+
"--color-status-warning-dark": semanticColorsLight["status-warning-dark"],
|
|
443
|
+
"--color-status-info-light": semanticColorsLight["status-info-light"],
|
|
444
|
+
"--color-status-info-dark": semanticColorsLight["status-info-dark"],
|
|
445
|
+
"--color-on-status-success": semanticColorsLight["on-status-success"],
|
|
446
|
+
"--color-on-status-error": semanticColorsLight["on-status-error"],
|
|
447
|
+
"--color-on-status-warning": semanticColorsLight["on-status-warning"],
|
|
448
|
+
"--color-on-status-info": semanticColorsLight["on-status-info"],
|
|
449
|
+
"--color-result-improve": semanticColorsLight["result-improve"],
|
|
450
|
+
"--color-result-improve-light": semanticColorsLight["result-improve-light"],
|
|
451
|
+
"--color-result-improve-dark": semanticColorsLight["result-improve-dark"],
|
|
452
|
+
"--color-result-degrade": semanticColorsLight["result-degrade"],
|
|
453
|
+
"--color-result-degrade-light": semanticColorsLight["result-degrade-light"],
|
|
454
|
+
"--color-result-degrade-dark": semanticColorsLight["result-degrade-dark"],
|
|
455
|
+
"--color-result-inconclusive": semanticColorsLight["result-inconclusive"],
|
|
456
|
+
"--color-result-inconclusive-light": semanticColorsLight["result-inconclusive-light"],
|
|
457
|
+
"--color-result-neutral": semanticColorsLight["result-neutral"],
|
|
458
|
+
"--color-on-result-improve": semanticColorsLight["on-result-improve"],
|
|
459
|
+
"--color-on-result-degrade": semanticColorsLight["on-result-degrade"],
|
|
460
|
+
"--color-on-result-inconclusive": semanticColorsLight["on-result-inconclusive"],
|
|
461
|
+
"--color-data-1": semanticColorsLight["data-1"],
|
|
462
|
+
"--color-data-2": semanticColorsLight["data-2"],
|
|
463
|
+
"--color-data-3": semanticColorsLight["data-3"],
|
|
464
|
+
"--color-data-4": semanticColorsLight["data-4"],
|
|
465
|
+
"--color-data-5": semanticColorsLight["data-5"],
|
|
466
|
+
"--color-data-6": semanticColorsLight["data-6"],
|
|
467
|
+
"--color-data-7": semanticColorsLight["data-7"],
|
|
468
|
+
"--color-data-8": semanticColorsLight["data-8"],
|
|
469
|
+
"--color-data-9": semanticColorsLight["data-9"],
|
|
470
|
+
"--color-data-10": semanticColorsLight["data-10"],
|
|
471
|
+
"--color-text-link-hover": semanticColorsLight["text-link-hover"],
|
|
472
|
+
"--color-surface-overlay": semanticColorsLight["surface-overlay"],
|
|
473
|
+
"--color-surface-input": semanticColorsLight["surface-input"],
|
|
474
|
+
"--color-border-input": semanticColorsLight["border-input"],
|
|
475
|
+
"--color-border-input-hover": semanticColorsLight["border-input-hover"],
|
|
476
|
+
"--color-border-input-focus": semanticColorsLight["border-input-focus"],
|
|
477
|
+
"--color-border-input-error": semanticColorsLight["border-input-error"],
|
|
478
|
+
"--color-interactive-disabled-text": semanticColorsLight["interactive-disabled-text"],
|
|
479
|
+
"--color-avatar-background": semanticColorsLight["avatar-background"],
|
|
480
|
+
"--color-avatar-text": semanticColorsLight["avatar-text"],
|
|
481
|
+
...themeIndependentCSSVars
|
|
482
|
+
};
|
|
483
|
+
var darkThemeCSSVars = {
|
|
484
|
+
"--color-brand-primary": semanticColorsDark["brand-primary"],
|
|
485
|
+
"--color-brand-primary-light": semanticColorsDark["brand-primary-light"],
|
|
486
|
+
"--color-brand-primary-dark": semanticColorsDark["brand-primary-dark"],
|
|
487
|
+
"--color-brand-primary-subtle": semanticColorsDark["brand-primary-subtle"],
|
|
488
|
+
"--color-brand-secondary": semanticColorsDark["brand-secondary"],
|
|
489
|
+
"--color-brand-secondary-light": semanticColorsDark["brand-secondary-light"],
|
|
490
|
+
"--color-brand-secondary-dark": semanticColorsDark["brand-secondary-dark"],
|
|
491
|
+
"--color-brand-secondary-subtle": semanticColorsDark["brand-secondary-subtle"],
|
|
492
|
+
"--color-on-brand-primary": semanticColorsDark["on-brand-primary"],
|
|
493
|
+
"--color-on-brand-secondary": semanticColorsDark["on-brand-secondary"],
|
|
494
|
+
"--color-status-success": semanticColorsDark["status-success"],
|
|
495
|
+
"--color-status-success-subtle": semanticColorsDark["status-success-subtle"],
|
|
496
|
+
"--color-status-error": semanticColorsDark["status-error"],
|
|
497
|
+
"--color-status-error-subtle": semanticColorsDark["status-error-subtle"],
|
|
498
|
+
"--color-status-warning": semanticColorsDark["status-warning"],
|
|
499
|
+
"--color-status-warning-subtle": semanticColorsDark["status-warning-subtle"],
|
|
500
|
+
"--color-status-info": semanticColorsDark["status-info"],
|
|
501
|
+
"--color-status-info-subtle": semanticColorsDark["status-info-subtle"],
|
|
502
|
+
"--color-text-primary": semanticColorsDark["text-primary"],
|
|
503
|
+
"--color-text-secondary": semanticColorsDark["text-secondary"],
|
|
504
|
+
"--color-text-tertiary": semanticColorsDark["text-tertiary"],
|
|
505
|
+
"--color-text-disabled": semanticColorsDark["text-disabled"],
|
|
506
|
+
"--color-text-inverse": semanticColorsDark["text-inverse"],
|
|
507
|
+
"--color-text-link": semanticColorsDark["text-link"],
|
|
508
|
+
"--color-surface-base": semanticColorsDark["surface-base"],
|
|
509
|
+
"--color-surface-elevated": semanticColorsDark["surface-elevated"],
|
|
510
|
+
"--color-surface-raised": semanticColorsDark["surface-raised"],
|
|
511
|
+
"--color-background-base": semanticColorsDark["background-base"],
|
|
512
|
+
"--color-background-default": semanticColorsDark["background-default"],
|
|
513
|
+
"--color-background-subtle": semanticColorsDark["background-subtle"],
|
|
514
|
+
"--color-border-default": semanticColorsDark["border-default"],
|
|
515
|
+
"--color-border-subtle": semanticColorsDark["border-subtle"],
|
|
516
|
+
"--color-border-strong": semanticColorsDark["border-strong"],
|
|
517
|
+
"--color-border-focus": semanticColorsDark["border-focus"],
|
|
518
|
+
"--color-interactive-hover": semanticColorsDark["interactive-hover"],
|
|
519
|
+
"--color-interactive-focus": semanticColorsDark["interactive-focus"],
|
|
520
|
+
"--color-interactive-active": semanticColorsDark["interactive-active"],
|
|
521
|
+
"--color-interactive-selected": semanticColorsDark["interactive-selected"],
|
|
522
|
+
"--color-interactive-disabled": semanticColorsDark["interactive-disabled"],
|
|
523
|
+
"--color-divider": semanticColorsDark["divider"],
|
|
524
|
+
"--color-brand-primary-hover": semanticColorsDark["brand-primary-hover"],
|
|
525
|
+
"--color-brand-primary-active": semanticColorsDark["brand-primary-active"],
|
|
526
|
+
"--color-brand-secondary-hover": semanticColorsDark["brand-secondary-hover"],
|
|
527
|
+
"--color-brand-secondary-active": semanticColorsDark["brand-secondary-active"],
|
|
528
|
+
"--color-status-success-light": semanticColorsDark["status-success-light"],
|
|
529
|
+
"--color-status-success-dark": semanticColorsDark["status-success-dark"],
|
|
530
|
+
"--color-status-error-light": semanticColorsDark["status-error-light"],
|
|
531
|
+
"--color-status-error-dark": semanticColorsDark["status-error-dark"],
|
|
532
|
+
"--color-status-warning-light": semanticColorsDark["status-warning-light"],
|
|
533
|
+
"--color-status-warning-dark": semanticColorsDark["status-warning-dark"],
|
|
534
|
+
"--color-status-info-light": semanticColorsDark["status-info-light"],
|
|
535
|
+
"--color-status-info-dark": semanticColorsDark["status-info-dark"],
|
|
536
|
+
"--color-on-status-success": semanticColorsDark["on-status-success"],
|
|
537
|
+
"--color-on-status-error": semanticColorsDark["on-status-error"],
|
|
538
|
+
"--color-on-status-warning": semanticColorsDark["on-status-warning"],
|
|
539
|
+
"--color-on-status-info": semanticColorsDark["on-status-info"],
|
|
540
|
+
"--color-result-improve": semanticColorsDark["result-improve"],
|
|
541
|
+
"--color-result-improve-light": semanticColorsDark["result-improve-light"],
|
|
542
|
+
"--color-result-improve-dark": semanticColorsDark["result-improve-dark"],
|
|
543
|
+
"--color-result-degrade": semanticColorsDark["result-degrade"],
|
|
544
|
+
"--color-result-degrade-light": semanticColorsDark["result-degrade-light"],
|
|
545
|
+
"--color-result-degrade-dark": semanticColorsDark["result-degrade-dark"],
|
|
546
|
+
"--color-result-inconclusive": semanticColorsDark["result-inconclusive"],
|
|
547
|
+
"--color-result-inconclusive-light": semanticColorsDark["result-inconclusive-light"],
|
|
548
|
+
"--color-result-neutral": semanticColorsDark["result-neutral"],
|
|
549
|
+
"--color-on-result-improve": semanticColorsDark["on-result-improve"],
|
|
550
|
+
"--color-on-result-degrade": semanticColorsDark["on-result-degrade"],
|
|
551
|
+
"--color-on-result-inconclusive": semanticColorsDark["on-result-inconclusive"],
|
|
552
|
+
"--color-data-1": semanticColorsDark["data-1"],
|
|
553
|
+
"--color-data-2": semanticColorsDark["data-2"],
|
|
554
|
+
"--color-data-3": semanticColorsDark["data-3"],
|
|
555
|
+
"--color-data-4": semanticColorsDark["data-4"],
|
|
556
|
+
"--color-data-5": semanticColorsDark["data-5"],
|
|
557
|
+
"--color-data-6": semanticColorsDark["data-6"],
|
|
558
|
+
"--color-data-7": semanticColorsDark["data-7"],
|
|
559
|
+
"--color-data-8": semanticColorsDark["data-8"],
|
|
560
|
+
"--color-data-9": semanticColorsDark["data-9"],
|
|
561
|
+
"--color-data-10": semanticColorsDark["data-10"],
|
|
562
|
+
"--color-text-link-hover": semanticColorsDark["text-link-hover"],
|
|
563
|
+
"--color-surface-overlay": semanticColorsDark["surface-overlay"],
|
|
564
|
+
"--color-surface-input": semanticColorsDark["surface-input"],
|
|
565
|
+
"--color-border-input": semanticColorsDark["border-input"],
|
|
566
|
+
"--color-border-input-hover": semanticColorsDark["border-input-hover"],
|
|
567
|
+
"--color-border-input-focus": semanticColorsDark["border-input-focus"],
|
|
568
|
+
"--color-border-input-error": semanticColorsDark["border-input-error"],
|
|
569
|
+
"--color-interactive-disabled-text": semanticColorsDark["interactive-disabled-text"],
|
|
570
|
+
"--color-avatar-background": semanticColorsDark["avatar-background"],
|
|
571
|
+
"--color-avatar-text": semanticColorsDark["avatar-text"],
|
|
572
|
+
...themeIndependentCSSVars
|
|
573
|
+
};
|
|
2
574
|
|
|
3
575
|
// src/theme/tokens-css.ts
|
|
4
576
|
var GENERATED_HEADER = "/* Generated from theme token maps. Do not edit by hand. */";
|