Skip to content

Commit 7a0c269

Browse files
Claudehotlong
andauthored
fix: add missing sidebar CSS variables to components package
- Add sidebar color CSS custom properties to @theme section - Add sidebar base colors to :root for light mode - Add sidebar colors to .dark for dark mode - Fixes sidebar menu rendering issues after shadcn upgrade Agent-Logs-Url: https://github.com/objectstack-ai/objectui/sessions/d18adb23-dd47-4f83-9bfb-7c147e93f672 Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent a014bc0 commit 7a0c269

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

packages/components/src/index.css

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,14 @@
3333
--color-popover-foreground: hsl(var(--popover-foreground));
3434
--color-card: hsl(var(--card));
3535
--color-card-foreground: hsl(var(--card-foreground));
36+
--color-sidebar: hsl(var(--sidebar));
37+
--color-sidebar-foreground: hsl(var(--sidebar-foreground));
38+
--color-sidebar-primary: hsl(var(--sidebar-primary));
39+
--color-sidebar-primary-foreground: hsl(var(--sidebar-primary-foreground));
40+
--color-sidebar-accent: hsl(var(--sidebar-accent));
41+
--color-sidebar-accent-foreground: hsl(var(--sidebar-accent-foreground));
42+
--color-sidebar-border: hsl(var(--sidebar-border));
43+
--color-sidebar-ring: hsl(var(--sidebar-ring));
3644

3745
/* Chart colors */
3846
--color-chart-1: hsl(var(--chart-1));
@@ -82,6 +90,16 @@
8290
--chart-4: 43 74% 66%;
8391
--chart-5: 27 87% 67%;
8492

93+
/* Sidebar colors */
94+
--sidebar: 0 0% 98%;
95+
--sidebar-foreground: 240 5.3% 26.1%;
96+
--sidebar-primary: 240 5.9% 10%;
97+
--sidebar-primary-foreground: 0 0% 98%;
98+
--sidebar-accent: 240 4.8% 95.9%;
99+
--sidebar-accent-foreground: 240 5.9% 10%;
100+
--sidebar-border: 220 13% 91%;
101+
--sidebar-ring: 217.2 91.2% 59.8%;
102+
85103
font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
86104
}
87105

@@ -119,6 +137,16 @@
119137
--chart-3: 30 80% 55%;
120138
--chart-4: 280 65% 60%;
121139
--chart-5: 340 75% 55%;
140+
141+
/* Sidebar colors for dark mode */
142+
--sidebar: 240 5.9% 10%;
143+
--sidebar-foreground: 240 4.8% 95.9%;
144+
--sidebar-primary: 224.3 76.3% 48%;
145+
--sidebar-primary-foreground: 0 0% 100%;
146+
--sidebar-accent: 240 3.7% 15.9%;
147+
--sidebar-accent-foreground: 240 4.8% 95.9%;
148+
--sidebar-border: 240 3.7% 15.9%;
149+
--sidebar-ring: 217.2 91.2% 59.8%;
122150
}
123151

124152
* {

0 commit comments

Comments
 (0)