Problem
Recharts components hardcode light-coloured values that don't adapt to dark mode:
CartesianGrid stroke='#EFF1F4' — light grid lines invisible on dark backgrounds
- Hardcoded tick label colours (
#656D7B, #1A2634)
- Hardcoded line stroke colours (
#0AADDF, #27AB95, #FF9F43)
Files (5)
| File |
Hardcoded instances |
web/components/organisation-settings/usage/OrganisationUsage.container.tsx |
5 |
web/components/organisation-settings/usage/components/SingleSDKLabelsChart.tsx |
5 |
web/components/pages/admin-dashboard/components/UsageTrendsChart.tsx |
3 |
web/components/modals/create-experiment/ExperimentResultsTab.tsx |
11 |
web/components/feature-page/FeatureNavTab/FeatureAnalytics.tsx |
5 |
Hardcoded colours
| Colour |
Usage |
Count |
#EFF1F4 |
CartesianGrid stroke, axis lines |
~12 |
#656D7B |
Tick label fill, axis lines |
~10 |
#1A2634 |
Y-axis tick fill |
~2 |
#0AADDF |
API calls line stroke |
1 |
#27AB95 |
Flag evaluations line stroke |
1 |
#FF9F43 |
Identity requests line stroke |
1 |
Proposed fix
Recharts doesn't support CSS custom properties in props. Use a useChartTheme() hook or semantic token TS exports to resolve theme-aware values at render time.
Blocked on
chore/design-system-tokens — resolved: semantic tokens shipped via #7215.
Part of the Design System Audit (#6606) · Epic: #6882
Problem
Recharts components hardcode light-coloured values that don't adapt to dark mode:
CartesianGrid stroke='#EFF1F4'— light grid lines invisible on dark backgrounds#656D7B,#1A2634)#0AADDF,#27AB95,#FF9F43)Files (5)
web/components/organisation-settings/usage/OrganisationUsage.container.tsxweb/components/organisation-settings/usage/components/SingleSDKLabelsChart.tsxweb/components/pages/admin-dashboard/components/UsageTrendsChart.tsxweb/components/modals/create-experiment/ExperimentResultsTab.tsxweb/components/feature-page/FeatureNavTab/FeatureAnalytics.tsxHardcoded colours
#EFF1F4#656D7B#1A2634#0AADDF#27AB95#FF9F43Proposed fix
Recharts doesn't support CSS custom properties in props. Use a
useChartTheme()hook or semantic token TS exports to resolve theme-aware values at render time.Blocked on
— resolved: semantic tokens shipped via #7215.chore/design-system-tokensPart of the Design System Audit (#6606) · Epic: #6882