Skip to content

Commit fa7fba4

Browse files
committed
Add chart and semantic status color tokens to dashboard theme
1 parent 25a16b8 commit fa7fba4

2 files changed

Lines changed: 41 additions & 0 deletions

File tree

apps/dashboard/src/index.css

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,19 @@
4848
--color-sidebar-accent-foreground: hsl(var(--sidebar-accent-foreground));
4949
--color-sidebar-border: hsl(var(--sidebar-border));
5050
--color-sidebar-ring: hsl(var(--sidebar-ring));
51+
52+
/* Data-visualization palette (used by chart plugins) */
53+
--color-chart-1: hsl(var(--chart-1));
54+
--color-chart-2: hsl(var(--chart-2));
55+
--color-chart-3: hsl(var(--chart-3));
56+
--color-chart-4: hsl(var(--chart-4));
57+
--color-chart-5: hsl(var(--chart-5));
58+
59+
/* Semantic status tokens (KPI deltas, tags, alerts) */
60+
--color-success: hsl(var(--success));
61+
--color-success-foreground: hsl(var(--success-foreground));
62+
--color-warning: hsl(var(--warning));
63+
--color-warning-foreground: hsl(var(--warning-foreground));
5164
}
5265

5366
@layer base {
@@ -80,6 +93,19 @@
8093
--sidebar-accent-foreground: 240 5.9% 10%;
8194
--sidebar-border: 220 13% 91%;
8295
--sidebar-ring: 217.2 91.2% 59.8%;
96+
97+
/* Chart palette — modern, distinguishable hues for B2B dashboards */
98+
--chart-1: 221 83% 53%; /* blue */
99+
--chart-2: 173 58% 39%; /* teal */
100+
--chart-3: 262 83% 58%; /* violet */
101+
--chart-4: 27 96% 61%; /* orange */
102+
--chart-5: 340 75% 55%; /* rose */
103+
104+
/* Semantic status colors */
105+
--success: 142 71% 45%;
106+
--success-foreground: 0 0% 100%;
107+
--warning: 38 92% 50%;
108+
--warning-foreground: 0 0% 100%;
83109
}
84110

85111
.dark {
@@ -110,6 +136,19 @@
110136
--sidebar-accent-foreground: 240 4.8% 95.9%;
111137
--sidebar-border: 240 3.7% 15.9%;
112138
--sidebar-ring: 217.2 91.2% 59.8%;
139+
140+
/* Chart palette — slightly desaturated for dark backgrounds */
141+
--chart-1: 217 91% 60%;
142+
--chart-2: 173 70% 50%;
143+
--chart-3: 262 83% 68%;
144+
--chart-4: 27 96% 65%;
145+
--chart-5: 340 82% 65%;
146+
147+
/* Semantic status colors (dark mode) */
148+
--success: 142 65% 50%;
149+
--success-foreground: 0 0% 100%;
150+
--warning: 38 92% 55%;
151+
--warning-foreground: 0 0% 10%;
113152
}
114153

115154
* {

apps/dashboard/src/loadLanguage.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ function transformSpecTranslations(data: Record<string, unknown>): Record<string
106106
if (data.apps) appNs.apps = data.apps;
107107
if (data.messages) appNs.messages = data.messages;
108108
if (data.validationMessages) appNs.validationMessages = data.validationMessages;
109+
if (data.dashboards) appNs.dashboards = data.dashboards;
110+
if (data.globalActions) appNs.globalActions = data.globalActions;
109111

110112
return { app: appNs };
111113
}

0 commit comments

Comments
 (0)