Theme Color doesn't highlight in the CSS file. #937
Closed
AbdullahKhan780
started this conversation in
General
Replies: 1 comment 1 reply
-
There is a note in the Theme page about why you shouldn't use CSS color namespaces since it will prevent tailwind from adding alpha values. This kind of depends on your project, but several of the hover and focus effects in shadcn/ui are using something like |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
You should wrap hsl() color function inside the global CSS file instead of wrapping it in tailwind.config.ts. Because VS code doesn't highlight the color. It will help the users to easily modify the color theme.
Beta Was this translation helpful? Give feedback.
All reactions