@titan-design/react-ui 0.5.0 → 0.7.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/bodymap.js +241 -189
- package/dist/bodymap.js.map +1 -1
- package/dist/bodymap.mjs +241 -189
- package/dist/bodymap.mjs.map +1 -1
- package/dist/index.d.mts +1017 -130
- package/dist/index.d.ts +1017 -130
- package/dist/index.js +3058 -1090
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2992 -1091
- package/dist/index.mjs.map +1 -1
- package/dist/{pages-MO0JCySL.d.mts → pages-8u_4WbL-.d.mts} +280 -57
- package/dist/{pages-D7Jlssvp.d.ts → pages-DaWiBOGa.d.ts} +280 -57
- package/dist/pages.d.mts +1 -1
- package/dist/pages.d.ts +1 -1
- package/dist/pages.js +1797 -1292
- package/dist/pages.js.map +1 -1
- package/dist/pages.mjs +1797 -1292
- package/dist/pages.mjs.map +1 -1
- package/dist/theme/index.d.mts +464 -268
- package/dist/theme/index.d.ts +464 -268
- package/dist/theme/index.js +303 -191
- package/dist/theme/index.js.map +1 -1
- package/dist/theme/index.mjs +295 -192
- package/dist/theme/index.mjs.map +1 -1
- package/dist/theme/tokens-css.js +160 -143
- package/dist/theme/tokens-css.js.map +1 -1
- package/dist/theme/tokens-css.mjs +160 -143
- package/dist/theme/tokens-css.mjs.map +1 -1
- package/package.json +3 -1
- package/src/arch/Architecture.stories.tsx +870 -0
- package/src/arch/annotations.json +48 -0
- package/src/arch/arch-graph.json +4301 -0
- package/src/components/custom/DateTime/DateTime.stories.tsx +83 -7
- package/src/components/custom/DateTime/DateTime.test.tsx +29 -3
- package/src/components/custom/DateTime/DateTime.tsx +55 -15
- package/src/components/custom/EmptyState/EmptyState.stories.tsx +1 -1
- package/src/components/custom/Gauge/Gauge.stories.tsx +1 -1
- package/src/components/custom/Gauge/Gauge.test.tsx +2 -2
- package/src/components/custom/Gauge/Gauge.tsx +6 -3
- package/src/components/custom/Metric/Metric.stories.tsx +1 -1
- package/src/components/custom/Scatter/Scatter.stories.tsx +1 -1
- package/src/components/custom/Scatter/Scatter.tsx +3 -5
- package/src/components/custom/Sidebar/Sidebar.stories.tsx +1 -1
- package/src/components/custom/Table/Table.stories.tsx +1 -1
- package/src/components/custom/TimerReadout/TimerReadout.stories.tsx +62 -0
- package/src/components/custom/TimerReadout/TimerReadout.test.tsx +72 -0
- package/src/components/custom/TimerReadout/TimerReadout.tsx +75 -0
- package/src/components/custom/TimerReadout/index.ts +1 -0
- package/src/components/custom/Treemap/Treemap.stories.tsx +1 -1
- package/src/components/custom/Treemap/Treemap.tsx +3 -5
- package/src/components/custom/Typography/Typography.stories.tsx +46 -28
- package/src/components/custom/Typography/Typography.test.tsx +13 -3
- package/src/components/custom/Typography/Typography.tsx +5 -0
- package/src/components/custom/Workout/ActiveWorkoutPage.stories.tsx +21 -13
- package/src/components/custom/Workout/ActiveWorkoutPage.test.tsx +16 -13
- package/src/components/custom/Workout/ActiveWorkoutPage.tsx +11 -16
- package/src/components/custom/Workout/BaseBadge.stories.tsx +1 -1
- package/src/components/custom/Workout/BodyMap.stories.tsx +1 -1
- package/src/components/custom/Workout/BodyMap.tsx +6 -3
- package/src/components/custom/Workout/BodyMapDetailPanel.stories.tsx +1 -1
- package/src/components/custom/Workout/BodyMapDetailPanel.tsx +6 -3
- package/src/components/custom/Workout/CapacityBandChart.stories.tsx +1 -1
- package/src/components/custom/Workout/CapacityBandChart.test.tsx +2 -2
- package/src/components/custom/Workout/CapacityBandChart.tsx +9 -6
- package/src/components/custom/Workout/DeviationBar.stories.tsx +1 -1
- package/src/components/custom/Workout/DeviationBar.test.tsx +1 -1
- package/src/components/custom/Workout/DeviationBar.tsx +7 -4
- package/src/components/custom/Workout/ExerciseCard.stories.tsx +51 -66
- package/src/components/custom/Workout/ExerciseCard.test.tsx +146 -143
- package/src/components/custom/Workout/ExerciseCard.tsx +176 -198
- package/src/components/custom/Workout/ExerciseCardHeading.stories.tsx +99 -0
- package/src/components/custom/Workout/ExerciseCardHeading.test.tsx +72 -0
- package/src/components/custom/Workout/ExerciseCardHeading.tsx +43 -0
- package/src/components/custom/Workout/ExerciseCardUnified.stories.tsx +151 -0
- package/src/components/custom/Workout/ExerciseDetailPage.stories.tsx +5 -3
- package/src/components/custom/Workout/ExerciseDetailPage.test.tsx +4 -4
- package/src/components/custom/Workout/ExerciseDetailPage.tsx +6 -6
- package/src/components/custom/Workout/ExerciseHeading.stories.tsx +81 -0
- package/src/components/custom/Workout/ExerciseHeading.test.tsx +77 -0
- package/src/components/custom/Workout/ExerciseHeading.tsx +85 -0
- package/src/components/custom/Workout/ExerciseIndicator.stories.tsx +110 -0
- package/src/components/custom/Workout/ExerciseIndicator.test.tsx +93 -0
- package/src/components/custom/Workout/ExerciseIndicator.tsx +120 -0
- package/src/components/custom/Workout/FatigueMeter.stories.tsx +51 -0
- package/src/components/custom/Workout/FatigueMeter.test.tsx +73 -0
- package/src/components/custom/Workout/FatigueMeter.tsx +82 -0
- package/src/components/custom/Workout/InputBar.stories.tsx +1 -1
- package/src/components/custom/Workout/InputBar.tsx +2 -1
- package/src/components/custom/Workout/IntensityBar.stories.tsx +1 -1
- package/src/components/custom/Workout/IntensityBar.test.tsx +8 -8
- package/src/components/custom/Workout/IntensityBar.tsx +10 -6
- package/src/components/custom/Workout/LiveAuraFrame.stories.tsx +153 -0
- package/src/components/custom/Workout/LiveAuraFrame.test.tsx +74 -0
- package/src/components/custom/Workout/LiveAuraFrame.tsx +105 -0
- package/src/components/custom/Workout/MesoCard.stories.tsx +1 -1
- package/src/components/custom/Workout/MesoCard.tsx +8 -3
- package/src/components/custom/Workout/MesoProgressBar.stories.tsx +1 -1
- package/src/components/custom/Workout/MesoProgressBar.test.tsx +1 -1
- package/src/components/custom/Workout/MesoProgressBar.tsx +3 -2
- package/src/components/custom/Workout/MesoStatusCard.stories.tsx +1 -1
- package/src/components/custom/Workout/MesoStatusCard.tsx +20 -13
- package/src/components/custom/Workout/MetricTiles.stories.tsx +60 -0
- package/src/components/custom/Workout/MetricTiles.test.tsx +58 -0
- package/src/components/custom/Workout/MetricTiles.tsx +48 -0
- package/src/components/custom/Workout/MuscleGroupChip.stories.tsx +1 -1
- package/src/components/custom/Workout/MuscleGroupChip.tsx +7 -4
- package/src/components/custom/Workout/PlaceholderStrip.stories.tsx +1 -1
- package/src/components/custom/Workout/PrBadge.stories.tsx +1 -1
- package/src/components/custom/Workout/PrBadge.tsx +5 -2
- package/src/components/custom/Workout/PrHistoryModal.stories.tsx +1 -1
- package/src/components/custom/Workout/PrHistoryModal.tsx +4 -3
- package/src/components/custom/Workout/ProgramPlanningPage.stories.tsx +4 -16
- package/src/components/custom/Workout/ProgramPlanningPage.tsx +10 -7
- package/src/components/custom/Workout/README.md +146 -4
- package/src/components/custom/Workout/ReadinessCheck.stories.tsx +1 -1
- package/src/components/custom/Workout/ReadinessCheck.tsx +7 -4
- package/src/components/custom/Workout/RestTimer.stories.tsx +1 -1
- package/src/components/custom/Workout/RestTimer.tsx +17 -11
- package/src/components/custom/Workout/RowInventory.stories.tsx +405 -0
- package/src/components/custom/Workout/S3FullRail.stories.tsx +34 -0
- package/src/components/custom/Workout/S3SessionPace.stories.tsx +95 -0
- package/src/components/custom/Workout/S3SessionRailHeading.stories.tsx +61 -0
- package/src/components/custom/Workout/S3SetTypes.stories.tsx +176 -0
- package/src/components/custom/Workout/S3WorkoutExpansion.stories.tsx +240 -0
- package/src/components/custom/Workout/ScheduleTiles.stories.tsx +40 -0
- package/src/components/custom/Workout/ScheduleTiles.test.tsx +34 -0
- package/src/components/custom/Workout/ScheduleTiles.tsx +70 -0
- package/src/components/custom/Workout/SegmentedBar.stories.tsx +99 -0
- package/src/components/custom/Workout/SegmentedBar.test.tsx +77 -0
- package/src/components/custom/Workout/SegmentedBar.tsx +172 -0
- package/src/components/custom/Workout/SegmentedProgressBar.stories.tsx +50 -0
- package/src/components/custom/Workout/SegmentedProgressBar.test.tsx +80 -0
- package/src/components/custom/Workout/SegmentedProgressBar.tsx +67 -0
- package/src/components/custom/Workout/SessionHeader.stories.tsx +121 -0
- package/src/components/custom/Workout/SessionHeader.test.tsx +122 -0
- package/src/components/custom/Workout/SessionHeader.tsx +152 -0
- package/src/components/custom/Workout/SessionRail.stories.tsx +153 -0
- package/src/components/custom/Workout/SessionRail.test.tsx +86 -0
- package/src/components/custom/Workout/SessionRail.tsx +126 -0
- package/src/components/custom/Workout/SetBar.stories.tsx +124 -0
- package/src/components/custom/Workout/SetBar.test.tsx +123 -0
- package/src/components/custom/Workout/SetBar.tsx +171 -0
- package/src/components/custom/Workout/SetRow.stories.tsx +50 -100
- package/src/components/custom/Workout/SetRow.test.tsx +94 -166
- package/src/components/custom/Workout/SetRow.tsx +170 -232
- package/src/components/custom/Workout/SetStrip.stories.tsx +154 -0
- package/src/components/custom/Workout/SetStrip.test.tsx +109 -0
- package/src/components/custom/Workout/SetStrip.tsx +71 -0
- package/src/components/custom/Workout/SetTableHeader.stories.tsx +66 -0
- package/src/components/custom/Workout/SetTableHeader.test.tsx +47 -0
- package/src/components/custom/Workout/SetTableHeader.tsx +88 -0
- package/src/components/custom/Workout/SetsRepsLoad.stories.tsx +47 -0
- package/src/components/custom/Workout/SetsRepsLoad.test.tsx +44 -0
- package/src/components/custom/Workout/SetsRepsLoad.tsx +52 -0
- package/src/components/custom/Workout/Sparkline.stories.tsx +1 -1
- package/src/components/custom/Workout/Sparkline.tsx +2 -1
- package/src/components/custom/Workout/StatusDot.stories.tsx +1 -1
- package/src/components/custom/Workout/StatusDot.test.tsx +2 -2
- package/src/components/custom/Workout/StatusDot.tsx +12 -9
- package/src/components/custom/Workout/StatusPill.stories.tsx +59 -0
- package/src/components/custom/Workout/StatusPill.test.tsx +63 -0
- package/src/components/custom/Workout/StatusPill.tsx +88 -0
- package/src/components/custom/Workout/StrengthTrendChart.stories.tsx +1 -1
- package/src/components/custom/Workout/StrengthTrendChart.tsx +9 -6
- package/src/components/custom/Workout/SupersetWrapper.stories.tsx +1 -1
- package/src/components/custom/Workout/SupersetWrapper.tsx +2 -1
- package/src/components/custom/Workout/TempoBar.stories.tsx +1 -1
- package/src/components/custom/Workout/TempoDisplay.stories.tsx +12 -1
- package/src/components/custom/Workout/TempoDisplay.tsx +29 -36
- package/src/components/custom/Workout/TrainingStatusPage.stories.tsx +1 -1
- package/src/components/custom/Workout/VelocityStrip.modalities.stories.tsx +254 -0
- package/src/components/custom/Workout/VelocityStrip.responsive.stories.tsx +145 -0
- package/src/components/custom/Workout/VelocityStrip.stories.tsx +129 -66
- package/src/components/custom/Workout/VelocityStrip.test.tsx +379 -144
- package/src/components/custom/Workout/VelocityStrip.tsx +508 -120
- package/src/components/custom/Workout/VolumeLandmarkBar.stories.tsx +73 -0
- package/src/components/custom/Workout/VolumeLandmarkBar.test.tsx +119 -0
- package/src/components/custom/Workout/VolumeLandmarkBar.tsx +154 -0
- package/src/components/custom/Workout/WeekRow.stories.tsx +1 -1
- package/src/components/custom/Workout/WeekRow.tsx +3 -2
- package/src/components/custom/Workout/WeightBadge.stories.tsx +1 -1
- package/src/components/custom/Workout/WeightBadge.tsx +6 -2
- package/src/components/custom/Workout/WorkoutCard.stories.tsx +2 -6
- package/src/components/custom/Workout/WorkoutCard.test.tsx +13 -46
- package/src/components/custom/Workout/WorkoutCard.tsx +5 -2
- package/src/components/custom/Workout/WorkoutPill.stories.tsx +1 -1
- package/src/components/custom/Workout/WorkoutPill.tsx +12 -8
- package/src/components/custom/Workout/ZoneTrack.stories.tsx +140 -0
- package/src/components/custom/Workout/ZoneTrack.test.tsx +200 -0
- package/src/components/custom/Workout/ZoneTrack.tsx +315 -0
- package/src/components/custom/Workout/icons.tsx +6 -67
- package/src/components/custom/Workout/index.ts +55 -2
- package/src/components/custom/Workout/metricText.stories.tsx +69 -0
- package/src/components/custom/Workout/metricText.tsx +34 -0
- package/src/components/custom/Workout/paceTone.test.ts +29 -0
- package/src/components/custom/Workout/paceTone.ts +27 -0
- package/src/components/custom/Workout/setHeadingKit.tsx +177 -0
- package/src/components/custom/index.ts +1 -0
- package/src/components/custom/stepper/Stepper.stories.tsx +1 -1
- package/src/components/icons/SvgIcon.tsx +50 -0
- package/src/components/icons/icons.stories.tsx +122 -0
- package/src/components/icons/icons.test.tsx +73 -0
- package/src/components/icons/icons.tsx +153 -0
- package/src/components/icons/index.ts +4 -0
- package/src/components/index.ts +6 -0
- package/src/components/shell/BrandLockup.stories.tsx +27 -0
- package/src/components/shell/BrandLockup.test.tsx +23 -0
- package/src/components/shell/BrandLockup.tsx +47 -0
- package/src/components/shell/DashboardShell.stories.tsx +65 -0
- package/src/components/shell/DashboardShell.test.tsx +42 -0
- package/src/components/shell/DashboardShell.tsx +74 -0
- package/src/components/shell/DeviceIndicator.stories.tsx +28 -0
- package/src/components/shell/DeviceIndicator.test.tsx +26 -0
- package/src/components/shell/DeviceIndicator.tsx +52 -0
- package/src/components/shell/DeviceMenu.stories.tsx +47 -0
- package/src/components/shell/DeviceMenu.test.tsx +40 -0
- package/src/components/shell/DeviceMenu.tsx +65 -0
- package/src/components/shell/DeviceRow.stories.tsx +38 -0
- package/src/components/shell/DeviceRow.test.tsx +37 -0
- package/src/components/shell/DeviceRow.tsx +58 -0
- package/src/components/shell/NavItem.stories.tsx +52 -0
- package/src/components/shell/NavItem.test.tsx +35 -0
- package/src/components/shell/NavItem.tsx +75 -0
- package/src/components/shell/README.md +116 -0
- package/src/components/shell/SessionRailSpecimen.stories.tsx +753 -0
- package/src/components/shell/SessionStatePill.stories.tsx +27 -0
- package/src/components/shell/SessionStatePill.test.tsx +25 -0
- package/src/components/shell/SessionStatePill.tsx +46 -0
- package/src/components/shell/SideNav.stories.tsx +81 -0
- package/src/components/shell/SideNav.test.tsx +51 -0
- package/src/components/shell/SideNav.tsx +74 -0
- package/src/components/shell/TopBar.stories.tsx +49 -0
- package/src/components/shell/TopBar.test.tsx +36 -0
- package/src/components/shell/TopBar.tsx +89 -0
- package/src/components/shell/index.ts +13 -0
- package/src/components/ui/alert/Alert.stories.tsx +1 -1
- package/src/components/ui/autocomplete/Autocomplete.stories.tsx +1 -1
- package/src/components/ui/avatar/Avatar.stories.tsx +1 -1
- package/src/components/ui/badge/Badge.stories.tsx +1 -1
- package/src/components/ui/breadcrumbs/Breadcrumbs.stories.tsx +1 -1
- package/src/components/ui/button/Button.stories.tsx +1 -1
- package/src/components/ui/card/Card.stories.tsx +1 -1
- package/src/components/ui/checkbox/Checkbox.stories.tsx +1 -1
- package/src/components/ui/chip/Chip.stories.tsx +1 -1
- package/src/components/ui/collapse/Collapse.stories.tsx +1 -1
- package/src/components/ui/data-row/DataRow.stories.tsx +1 -1
- package/src/components/ui/divider/Divider.stories.tsx +1 -1
- package/src/components/ui/drawer/Drawer.stories.tsx +1 -1
- package/src/components/ui/form-field/FormField.stories.tsx +1 -1
- package/src/components/ui/help-tip/HelpTip.stories.tsx +1 -1
- package/src/components/ui/icon-box/IconBox.stories.tsx +1 -1
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/indicator/Indicator.stories.tsx +38 -2
- package/src/components/ui/indicator/Indicator.test.tsx +20 -1
- package/src/components/ui/indicator/Indicator.tsx +50 -6
- package/src/components/ui/indicator/index.ts +1 -1
- package/src/components/ui/input/Input.stories.tsx +1 -1
- package/src/components/ui/link/Link.stories.tsx +1 -1
- package/src/components/ui/list-item/ListItem.stories.tsx +1 -1
- package/src/components/ui/menu/Menu.stories.tsx +1 -1
- package/src/components/ui/modal/Modal.stories.tsx +1 -1
- package/src/components/ui/pill/Pill.stories.tsx +1 -1
- package/src/components/ui/popover/Popover.stories.tsx +1 -1
- package/src/components/ui/progress/Progress.stories.tsx +1 -1
- package/src/components/ui/radio/Radio.stories.tsx +1 -1
- package/src/components/ui/section/Section.stories.tsx +1 -1
- package/src/components/ui/select/Select.stories.tsx +1 -1
- package/src/components/ui/skeleton/Skeleton.stories.tsx +1 -1
- package/src/components/ui/spinner/Spinner.stories.tsx +1 -1
- package/src/components/ui/spinner/Spinner.tsx +3 -2
- package/src/components/ui/stack/Stack.stories.tsx +1 -1
- package/src/components/ui/surface/Surface.stories.tsx +1 -1
- package/src/components/ui/switch/Switch.stories.tsx +1 -1
- package/src/components/ui/tabs/Tabs.stories.tsx +1 -1
- package/src/components/ui/tile/Tile.stories.tsx +79 -0
- package/src/components/ui/tile/Tile.test.tsx +48 -0
- package/src/components/ui/tile/Tile.tsx +64 -0
- package/src/components/ui/tile/index.ts +2 -0
- package/src/components/ui/toast/Toast.stories.tsx +1 -1
- package/src/components/ui/toolbar-button/ToolbarButton.stories.tsx +1 -1
- package/src/components/ui/toolbar-button/ToolbarButton.tsx +2 -1
- package/src/components/ui/tooltip/Tooltip.stories.tsx +1 -1
- package/src/examples/react-hook-form/ReactHookForm.stories.tsx +1 -1
- package/src/hooks/index.ts +2 -0
- package/src/hooks/useTimer.test.ts +150 -0
- package/src/hooks/useTimer.ts +77 -0
- package/src/index.ts +3 -0
- package/src/pages.ts +1 -1
- package/src/stories/PresetShowcase.stories.tsx +1 -1
- package/src/stories/ThemePresets.stories.tsx +1 -1
- package/src/theme/ColorSystem.stories.tsx +323 -0
- package/src/theme/Colors.stories.tsx +74 -9
- package/src/theme/barrel.ts +1 -0
- package/src/theme/config.ts +20 -3
- package/src/theme/elevation.stories.tsx +1 -1
- package/src/theme/extracted-colors-dataviz.ts +21 -0
- package/src/theme/extracted-colors-ui.ts +20 -0
- package/src/theme/global.css +69 -53
- package/src/theme/gradients.test.ts +25 -0
- package/src/theme/gradients.ts +36 -0
- package/src/theme/shadows.stories.tsx +1 -1
- package/src/theme/tokens/primitives.test.ts +232 -0
- package/src/theme/tokens/primitives.ts +238 -87
- package/src/theme/tokens/semantic.ts +101 -81
- package/src/theme/workout-tokens.ts +26 -21
- package/src/utils/avatar-color.ts +3 -3
- package/tailwind.config.js +15 -3
|
@@ -17,49 +17,58 @@
|
|
|
17
17
|
* - interactive-* : Hover/focus/active/disabled states
|
|
18
18
|
*/
|
|
19
19
|
|
|
20
|
-
import { primitiveColors as p, discreteRainbow } from './primitives'
|
|
20
|
+
import { primitiveColors as p, primitiveRamps as ramp, discreteRainbow } from './primitives'
|
|
21
21
|
|
|
22
22
|
// Light mode semantic colors (default)
|
|
23
23
|
export const semanticColorsLight = {
|
|
24
24
|
// Brand colors (brand-*)
|
|
25
|
-
'brand-primary':
|
|
26
|
-
'brand-primary-light':
|
|
27
|
-
'brand-primary-dark':
|
|
25
|
+
'brand-primary': ramp.orange[400],
|
|
26
|
+
'brand-primary-light': ramp.orange[300],
|
|
27
|
+
'brand-primary-dark': ramp.orange[500],
|
|
28
28
|
'brand-primary-subtle': 'rgba(255, 121, 0, 0.08)',
|
|
29
|
-
'brand-primary-hover':
|
|
30
|
-
'brand-primary-active':
|
|
29
|
+
'brand-primary-hover': ramp.orange[500],
|
|
30
|
+
'brand-primary-active': ramp.orange[600],
|
|
31
31
|
|
|
32
|
-
'brand-secondary':
|
|
33
|
-
'brand-secondary-light':
|
|
34
|
-
'brand-secondary-dark':
|
|
35
|
-
'brand-secondary-subtle': 'rgba(
|
|
36
|
-
'brand-secondary-hover':
|
|
37
|
-
'brand-secondary-active':
|
|
32
|
+
'brand-secondary': ramp.cyan[600],
|
|
33
|
+
'brand-secondary-light': ramp.cyan[500],
|
|
34
|
+
'brand-secondary-dark': ramp.cyan[700],
|
|
35
|
+
'brand-secondary-subtle': 'rgba(48, 123, 155, 0.08)',
|
|
36
|
+
'brand-secondary-hover': ramp.cyan[700],
|
|
37
|
+
'brand-secondary-active': ramp.cyan[800],
|
|
38
38
|
|
|
39
39
|
// Text on brand backgrounds (on-*)
|
|
40
40
|
'on-brand-primary': p.white,
|
|
41
41
|
'on-brand-secondary': p.white,
|
|
42
42
|
|
|
43
43
|
// Status colors (status-*)
|
|
44
|
-
'status-success':
|
|
45
|
-
'status-success-light':
|
|
46
|
-
'status-success-dark':
|
|
47
|
-
'status-success-subtle':
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
'status-
|
|
51
|
-
'status-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
'status-
|
|
55
|
-
'status-
|
|
56
|
-
'status-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
'status-
|
|
60
|
-
'status-
|
|
61
|
-
'status-
|
|
62
|
-
|
|
44
|
+
'status-success': ramp.green[300],
|
|
45
|
+
'status-success-light': ramp.green[200],
|
|
46
|
+
'status-success-dark': ramp.green[600],
|
|
47
|
+
'status-success-subtle': ramp.green[50],
|
|
48
|
+
|
|
49
|
+
// Live-session accent — its OWN role, decoupled from success so the two can diverge
|
|
50
|
+
'status-live': ramp.green[300],
|
|
51
|
+
'status-live-muted': ramp.green[500],
|
|
52
|
+
|
|
53
|
+
'status-error': ramp.red[600],
|
|
54
|
+
'status-error-light': ramp.red[500],
|
|
55
|
+
'status-error-dark': ramp.red[700],
|
|
56
|
+
'status-error-subtle': ramp.red[50],
|
|
57
|
+
|
|
58
|
+
'status-error-vivid': p.redVivid[500], // vivid alert red
|
|
59
|
+
'status-error-vivid-light': p.redVivid[400],
|
|
60
|
+
'status-error-vivid-dark': p.redVivid[700],
|
|
61
|
+
'status-error-vivid-subtle': 'rgba(255, 71, 87, 0.12)',
|
|
62
|
+
|
|
63
|
+
'status-warning': ramp.amber[300],
|
|
64
|
+
'status-warning-light': ramp.amber[200],
|
|
65
|
+
'status-warning-dark': ramp.amber[500],
|
|
66
|
+
'status-warning-subtle': ramp.amber[50],
|
|
67
|
+
|
|
68
|
+
'status-info': ramp.blue[500],
|
|
69
|
+
'status-info-light': ramp.blue[300],
|
|
70
|
+
'status-info-dark': ramp.blue[600],
|
|
71
|
+
'status-info-subtle': ramp.blue[50],
|
|
63
72
|
|
|
64
73
|
// Text on status backgrounds (on-status-*)
|
|
65
74
|
'on-status-success': p.white,
|
|
@@ -85,16 +94,16 @@ export const semanticColorsLight = {
|
|
|
85
94
|
|
|
86
95
|
// Data visualization colors (data-*)
|
|
87
96
|
// First 10 colors from discrete rainbow optimized for charts
|
|
88
|
-
'data-1': discreteRainbow[9], //
|
|
89
|
-
'data-2': discreteRainbow[14], //
|
|
90
|
-
'data-3': discreteRainbow[17], //
|
|
91
|
-
'data-4': discreteRainbow[25], //
|
|
92
|
-
'data-5': discreteRainbow[8], //
|
|
93
|
-
'data-6': discreteRainbow[20], //
|
|
94
|
-
'data-7': discreteRainbow[13], //
|
|
95
|
-
'data-8': discreteRainbow[15], //
|
|
96
|
-
'data-9': discreteRainbow[3], //
|
|
97
|
-
'data-10': discreteRainbow[22], //
|
|
97
|
+
'data-1': discreteRainbow[9], // Blue
|
|
98
|
+
'data-2': discreteRainbow[14], // Green
|
|
99
|
+
'data-3': discreteRainbow[17], // Yellow
|
|
100
|
+
'data-4': discreteRainbow[25], // Red
|
|
101
|
+
'data-5': discreteRainbow[8], // Purple
|
|
102
|
+
'data-6': discreteRainbow[20], // Orange
|
|
103
|
+
'data-7': discreteRainbow[13], // Light Blue
|
|
104
|
+
'data-8': discreteRainbow[15], // Light Green
|
|
105
|
+
'data-9': discreteRainbow[3], // Lavender
|
|
106
|
+
'data-10': discreteRainbow[22], // Dark Orange
|
|
98
107
|
|
|
99
108
|
// Text colors (text-*)
|
|
100
109
|
'text-primary': '#121828',
|
|
@@ -107,8 +116,8 @@ export const semanticColorsLight = {
|
|
|
107
116
|
|
|
108
117
|
// Surface colors (surface-*) - for elevated containers
|
|
109
118
|
'surface-base': p.white,
|
|
110
|
-
'surface-elevated': p.neutral[50], //
|
|
111
|
-
'surface-raised': p.neutral[100], //
|
|
119
|
+
'surface-elevated': p.neutral[50], // slightly off-white for elevated cards
|
|
120
|
+
'surface-raised': p.neutral[100], // light gray for raised cards
|
|
112
121
|
'surface-overlay': p.white,
|
|
113
122
|
'surface-input': p.neutral[50], // Input field background (filled variant)
|
|
114
123
|
|
|
@@ -121,6 +130,7 @@ export const semanticColorsLight = {
|
|
|
121
130
|
'border-default': '#E8E9EB',
|
|
122
131
|
'border-subtle': p.neutral[100],
|
|
123
132
|
'border-strong': p.neutral[300],
|
|
133
|
+
'border-prominent': p.neutral[400], // high-visibility divider
|
|
124
134
|
'border-focus': p.blue[600],
|
|
125
135
|
'border-input': p.neutral[300], // Input field border
|
|
126
136
|
'border-input-hover': p.neutral[400], // Input field border on hover
|
|
@@ -146,43 +156,52 @@ export const semanticColorsLight = {
|
|
|
146
156
|
// Dark mode semantic colors
|
|
147
157
|
export const semanticColorsDark = {
|
|
148
158
|
// Brand colors stay the same in dark mode
|
|
149
|
-
'brand-primary':
|
|
150
|
-
'brand-primary-light':
|
|
151
|
-
'brand-primary-dark':
|
|
159
|
+
'brand-primary': ramp.orange[400],
|
|
160
|
+
'brand-primary-light': ramp.orange[300],
|
|
161
|
+
'brand-primary-dark': ramp.orange[500],
|
|
152
162
|
'brand-primary-subtle': 'rgba(255, 121, 0, 0.12)',
|
|
153
|
-
'brand-primary-hover':
|
|
154
|
-
'brand-primary-active':
|
|
163
|
+
'brand-primary-hover': ramp.orange[300],
|
|
164
|
+
'brand-primary-active': ramp.orange[200],
|
|
155
165
|
|
|
156
|
-
'brand-secondary':
|
|
157
|
-
'brand-secondary-light':
|
|
158
|
-
'brand-secondary-dark':
|
|
159
|
-
'brand-secondary-subtle': 'rgba(
|
|
160
|
-
'brand-secondary-hover':
|
|
161
|
-
'brand-secondary-active':
|
|
166
|
+
'brand-secondary': ramp.cyan[600],
|
|
167
|
+
'brand-secondary-light': ramp.cyan[500],
|
|
168
|
+
'brand-secondary-dark': ramp.cyan[700],
|
|
169
|
+
'brand-secondary-subtle': 'rgba(48, 123, 155, 0.12)',
|
|
170
|
+
'brand-secondary-hover': ramp.cyan[500],
|
|
171
|
+
'brand-secondary-active': ramp.cyan[400],
|
|
162
172
|
|
|
163
173
|
// Text on brand backgrounds
|
|
164
174
|
'on-brand-primary': p.white,
|
|
165
175
|
'on-brand-secondary': p.white,
|
|
166
176
|
|
|
167
177
|
// Status colors
|
|
168
|
-
'status-success':
|
|
169
|
-
'status-success-light':
|
|
170
|
-
'status-success-dark':
|
|
171
|
-
'status-success-subtle': 'rgba(
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
'status-
|
|
175
|
-
'status-
|
|
178
|
+
'status-success': ramp.green[300],
|
|
179
|
+
'status-success-light': ramp.green[200],
|
|
180
|
+
'status-success-dark': ramp.green[600],
|
|
181
|
+
'status-success-subtle': 'rgba(46, 213, 115, 0.12)',
|
|
182
|
+
|
|
183
|
+
// Live-session accent — its OWN role, decoupled from success so the two can diverge
|
|
184
|
+
'status-live': ramp.green[300],
|
|
185
|
+
'status-live-muted': ramp.green[500],
|
|
186
|
+
|
|
187
|
+
'status-error': ramp.red[600],
|
|
188
|
+
'status-error-light': ramp.red[500],
|
|
189
|
+
'status-error-dark': ramp.red[700],
|
|
176
190
|
'status-error-subtle': 'rgba(209, 67, 67, 0.12)',
|
|
177
191
|
|
|
178
|
-
'status-
|
|
179
|
-
'status-
|
|
180
|
-
'status-
|
|
181
|
-
'status-
|
|
192
|
+
'status-error-vivid': p.redVivid[500],
|
|
193
|
+
'status-error-vivid-light': p.redVivid[400],
|
|
194
|
+
'status-error-vivid-dark': p.redVivid[700],
|
|
195
|
+
'status-error-vivid-subtle': 'rgba(255, 71, 87, 0.12)',
|
|
182
196
|
|
|
183
|
-
'status-
|
|
184
|
-
'status-
|
|
185
|
-
'status-
|
|
197
|
+
'status-warning': ramp.amber[300],
|
|
198
|
+
'status-warning-light': ramp.amber[200],
|
|
199
|
+
'status-warning-dark': ramp.amber[500],
|
|
200
|
+
'status-warning-subtle': 'rgba(249, 180, 21, 0.12)',
|
|
201
|
+
|
|
202
|
+
'status-info': ramp.blue[500],
|
|
203
|
+
'status-info-light': ramp.blue[300],
|
|
204
|
+
'status-info-dark': ramp.blue[600],
|
|
186
205
|
'status-info-subtle': 'rgba(33, 150, 243, 0.12)',
|
|
187
206
|
|
|
188
207
|
// Text on status backgrounds
|
|
@@ -229,21 +248,22 @@ export const semanticColorsDark = {
|
|
|
229
248
|
'text-link-hover': p.blue[400],
|
|
230
249
|
|
|
231
250
|
// Surface colors - dark backgrounds
|
|
232
|
-
'surface-base': p.charcoal[700], //
|
|
233
|
-
'surface-elevated': p.charcoal[600], //
|
|
234
|
-
'surface-raised': p.charcoal[500], //
|
|
235
|
-
'surface-overlay': p.charcoal[600], //
|
|
236
|
-
'surface-input': p.charcoal[600], //
|
|
251
|
+
'surface-base': p.charcoal[700], // main surface
|
|
252
|
+
'surface-elevated': p.charcoal[600], // elevated surface
|
|
253
|
+
'surface-raised': p.charcoal[500], // raised surface
|
|
254
|
+
'surface-overlay': p.charcoal[600], // overlay surface
|
|
255
|
+
'surface-input': p.charcoal[600], // input surface
|
|
237
256
|
|
|
238
257
|
// Background colors
|
|
239
|
-
'background-base': p.charcoal[900], //
|
|
240
|
-
'background-default': p.charcoal[700], //
|
|
241
|
-
'background-subtle': p.charcoal[500], //
|
|
258
|
+
'background-base': p.charcoal[900], // darkest charcoal
|
|
259
|
+
'background-default': p.charcoal[700], // main background
|
|
260
|
+
'background-subtle': p.charcoal[500], // subtle background
|
|
242
261
|
|
|
243
262
|
// Border colors
|
|
244
|
-
'border-default': p.charcoal[400], //
|
|
245
|
-
'border-subtle': p.charcoal[500], //
|
|
246
|
-
'border-strong': p.charcoal[300], //
|
|
263
|
+
'border-default': p.charcoal[400], // default border
|
|
264
|
+
'border-subtle': p.charcoal[500], // subtle border
|
|
265
|
+
'border-strong': p.charcoal[300], // strong border
|
|
266
|
+
'border-prominent': p.charcoal[200], // high-visibility divider
|
|
247
267
|
'border-focus': '#828DF8',
|
|
248
268
|
'border-input': p.neutral[600],
|
|
249
269
|
'border-input-hover': p.neutral[500],
|
|
@@ -259,7 +279,7 @@ export const semanticColorsDark = {
|
|
|
259
279
|
'interactive-disabled-text': 'rgba(255, 255, 255, 0.26)',
|
|
260
280
|
|
|
261
281
|
// Divider
|
|
262
|
-
'divider': p.charcoal[400], //
|
|
282
|
+
'divider': p.charcoal[400], // divider color
|
|
263
283
|
|
|
264
284
|
// Avatar default
|
|
265
285
|
'avatar-background': p.neutral[600],
|
|
@@ -2,31 +2,36 @@
|
|
|
2
2
|
* Workout-specific tokens not yet in the main Tailwind config.
|
|
3
3
|
* Use these inline instead of Tailwind classes.
|
|
4
4
|
*/
|
|
5
|
+
import { divergingScale, sequentialEffort, primitiveRamps as ramp } from './tokens/primitives'
|
|
6
|
+
|
|
5
7
|
export const WORKOUT_TOKENS = {
|
|
6
8
|
// Canonical 4-band performance scale — the single source for BOTH the
|
|
7
9
|
// VelocityStrip zone bars and the SetRow RPE color (TD-03.43). The direction
|
|
8
10
|
// is intentionally inverted between the two consumers: for velocity, green =
|
|
9
|
-
// fastest/best; for RPE, green = easiest.
|
|
10
|
-
//
|
|
11
|
-
//
|
|
12
|
-
//
|
|
13
|
-
//
|
|
11
|
+
// fastest/best; for RPE, green = easiest. This is the [0,2,3,4] subsample of
|
|
12
|
+
// the canonical `sequentialEffort` primitive: an EVEN hue walk across the ramp
|
|
13
|
+
// (green → gold → orange → red). The earlier [0,1,2,4] spent two of its four
|
|
14
|
+
// bands on adjacent yellows (amber-200 + amber-300) and skipped orange, reading
|
|
15
|
+
// yellow-heavy with an abrupt jump to red; sampling amber-300 + orange-400
|
|
16
|
+
// instead gives four cleanly separable bands that hold at 3px strip scale.
|
|
17
|
+
// Consumed inline (RN).
|
|
14
18
|
scale: {
|
|
15
|
-
green:
|
|
16
|
-
yellow:
|
|
17
|
-
orange:
|
|
18
|
-
red:
|
|
19
|
+
green: sequentialEffort[0], // green-300
|
|
20
|
+
yellow: sequentialEffort[2], // amber-300 (gold)
|
|
21
|
+
orange: sequentialEffort[3], // orange-400 (true orange)
|
|
22
|
+
red: sequentialEffort[4], // red-600
|
|
19
23
|
},
|
|
20
24
|
|
|
21
|
-
// BodyMap volume heatmap
|
|
22
|
-
//
|
|
25
|
+
// BodyMap volume heatmap — the canonical `divergingScale` (under → optimal →
|
|
26
|
+
// over): a true diverging shape with a light green center, cool-blue under-
|
|
27
|
+
// trained end and warm-red over-reaching end (colorblind-robust in lightness).
|
|
23
28
|
heatmap: {
|
|
24
|
-
none: '#E0E0E0', //
|
|
25
|
-
under:
|
|
26
|
-
maintenance:
|
|
27
|
-
productive:
|
|
28
|
-
approaching:
|
|
29
|
-
over:
|
|
29
|
+
none: '#E0E0E0', // no training data
|
|
30
|
+
under: divergingScale[0], // below MEV
|
|
31
|
+
maintenance: divergingScale[1], // MEV to MAV
|
|
32
|
+
productive: divergingScale[2], // optimal center — MAV to MRV
|
|
33
|
+
approaching: divergingScale[3], // near MRV
|
|
34
|
+
over: divergingScale[4], // over MRV
|
|
30
35
|
},
|
|
31
36
|
|
|
32
37
|
// Badge border-radius (rounded-sm is 4px, we need 2px)
|
|
@@ -36,12 +41,12 @@ export const WORKOUT_TOKENS = {
|
|
|
36
41
|
// components use the CSS custom properties (var(--color-surface-*/border-*))
|
|
37
42
|
// directly. Only theme-independent data-viz values remain below.
|
|
38
43
|
|
|
39
|
-
// Intensity bar specific
|
|
44
|
+
// Intensity bar specific — over-target tiers deepen along the red ramp.
|
|
40
45
|
intensity: {
|
|
41
46
|
track: '#333333',
|
|
42
|
-
over1:
|
|
43
|
-
over2:
|
|
44
|
-
over3:
|
|
47
|
+
over1: ramp.red[600], // matches status-error
|
|
48
|
+
over2: ramp.red[700],
|
|
49
|
+
over3: ramp.red[800],
|
|
45
50
|
targetLine: 'rgba(33, 150, 243, 0.5)',
|
|
46
51
|
atTargetGlow:
|
|
47
52
|
'0 0 5px 1px rgba(33, 150, 243, 0.35), 0 0 10px 3px rgba(33, 150, 243, 0.15)',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { AVATAR_CATEGORICAL_COLORS } from '../theme/extracted-colors-ui'
|
|
2
|
+
|
|
3
|
+
const AVATAR_COLORS = AVATAR_CATEGORICAL_COLORS
|
|
4
4
|
|
|
5
5
|
export function avatarColor(name: string): string {
|
|
6
6
|
let hash = 0
|
package/tailwind.config.js
CHANGED
|
@@ -38,12 +38,23 @@ module.exports = {
|
|
|
38
38
|
dark: 'var(--color-status-success-dark)',
|
|
39
39
|
subtle: 'var(--color-status-success-subtle)',
|
|
40
40
|
},
|
|
41
|
+
// Live-session accent — own role, decoupled from success
|
|
42
|
+
live: {
|
|
43
|
+
DEFAULT: 'var(--color-status-live)',
|
|
44
|
+
muted: 'var(--color-status-live-muted)',
|
|
45
|
+
},
|
|
41
46
|
error: {
|
|
42
47
|
DEFAULT: 'var(--color-status-error)',
|
|
43
48
|
light: 'var(--color-status-error-light)',
|
|
44
49
|
dark: 'var(--color-status-error-dark)',
|
|
45
50
|
subtle: 'var(--color-status-error-subtle)',
|
|
46
51
|
},
|
|
52
|
+
'error-vivid': {
|
|
53
|
+
DEFAULT: 'var(--color-status-error-vivid)',
|
|
54
|
+
light: 'var(--color-status-error-vivid-light)',
|
|
55
|
+
dark: 'var(--color-status-error-vivid-dark)',
|
|
56
|
+
subtle: 'var(--color-status-error-vivid-subtle)',
|
|
57
|
+
},
|
|
47
58
|
warning: {
|
|
48
59
|
DEFAULT: 'var(--color-status-warning)',
|
|
49
60
|
light: 'var(--color-status-warning-light)',
|
|
@@ -132,6 +143,7 @@ module.exports = {
|
|
|
132
143
|
DEFAULT: 'var(--color-border-default)',
|
|
133
144
|
subtle: 'var(--color-border-subtle)',
|
|
134
145
|
strong: 'var(--color-border-strong)',
|
|
146
|
+
prominent: 'var(--color-border-prominent)',
|
|
135
147
|
focus: 'var(--color-border-focus)',
|
|
136
148
|
input: {
|
|
137
149
|
DEFAULT: 'var(--color-border-input)',
|
|
@@ -184,10 +196,10 @@ module.exports = {
|
|
|
184
196
|
xl: '0px 20px 25px rgba(100, 116, 139, 0.12)',
|
|
185
197
|
// Glow shadows (colored radial glow for emphasis)
|
|
186
198
|
'glow-primary': '0 0 20px 2px rgba(var(--color-brand-primary-rgb, 255, 121, 0), 0.4)',
|
|
187
|
-
'glow-secondary': '0 0 20px 2px rgba(var(--color-brand-secondary-rgb,
|
|
188
|
-
'glow-success': '0 0 20px 2px rgba(var(--color-status-success-rgb,
|
|
199
|
+
'glow-secondary': '0 0 20px 2px rgba(var(--color-brand-secondary-rgb, 48, 123, 155), 0.4)',
|
|
200
|
+
'glow-success': '0 0 20px 2px rgba(var(--color-status-success-rgb, 46, 213, 115), 0.35)',
|
|
189
201
|
'glow-error': '0 0 20px 2px rgba(var(--color-status-error-rgb, 209, 67, 67), 0.4)',
|
|
190
|
-
'glow-warning': '0 0 20px 2px rgba(var(--color-status-warning-rgb,
|
|
202
|
+
'glow-warning': '0 0 20px 2px rgba(var(--color-status-warning-rgb, 249, 180, 21), 0.35)',
|
|
191
203
|
'glow-info': '0 0 20px 2px rgba(var(--color-status-info-rgb, 33, 150, 243), 0.35)',
|
|
192
204
|
'glow-sm': '0 0 12px 0px',
|
|
193
205
|
'glow-md': '0 0 20px 2px',
|