-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Sidebar sheet colors not working as expected #1011
Comments
Put inside your tailwind config apps/www/tailwind.config.js
config:{
theme:{
extend:{
sidebar: {
'DEFAULT': 'hsl(var(--sidebar-background))',
'foreground': 'hsl(var(--sidebar-foreground))',
'primary': 'hsl(var(--sidebar-primary))',
'primary-foreground': 'hsl(var(--sidebar-primary-foreground))',
'accent': 'hsl(var(--sidebar-accent))',
'accent-foreground': 'hsl(var(--sidebar-accent-foreground))',
'border': 'hsl(var(--sidebar-border))',
'ring': 'hsl(var(--sidebar-ring))',
}
}
}
}, |
I have the same issue, add these to tailwind.config.js but still not working. Here is my code:
vite.config.ts:
|
Okay, I think I found the reason why it's dosen't work, "sidebar" configs should under
|
Reproduction
x
Describe the bug
Using the new sidebar component copied from https://www.shadcn-vue.com/blocks#Sidebar01, (after installing and adding the CSS variables, the sidebar on mobile does not create the appropriate bg-sidebar rules. a simple work around is to use bg-background in the sidebar.vue component but this should work out of the box.
System Info
System: OS: macOS 15.2 CPU: (14) arm64 Apple M3 Max Memory: 150.91 MB / 36.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 22.9.0 - /opt/homebrew/bin/node npm: 11.0.0 - /opt/homebrew/bin/npm pnpm: 9.12.3 - ~/Library/pnpm/pnpm Browsers: Safari: 18.2
Contributes
The text was updated successfully, but these errors were encountered: