Replies: 1 comment
-
Nevermind theme inline {
--color-not-red: #CCCCC;
} Will hardcode the value in all utilities like |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently with a Tailwind v4 project Shadcn sets up colors its colors in
:root
theme inline
and.dark
.:root
declares the light mode values.theme inline
references the variables declared in:root
and generates the Tailwind classes..dark
overrides the:root
values for dark mode.But wouldn't
.dark
be able to override color values intheme inline
, too?If yes, why the extra step of declaring variables in
:root
instead of directly using the values intheme inline
?Beta Was this translation helpful? Give feedback.
All reactions