css var does not apply color #119
Replies: 3 comments 3 replies
-
Hiya! Thanks for opening this and your kind words. Unfortunately, without a reproduction repo, I won't be able to help. I'd be happy to take a look at your private repo if you provide access but the only thing I can suggest right now is to ensure your color values are all valid colors. Sorry I can't be of more help than that :/ |
Beta Was this translation helpful? Give feedback.
-
Hi, yeah I knew while writing that I might get this answer but well, maybe you already encountered this kind of behaviour. I will keep searching what causes the colors to break and will keep you updated in case it happens to others. |
Beta Was this translation helpful? Give feedback.
-
So after some research in my node_modules I sorta found out where the problem lies. For a bit of context, I am using externals configs from a specific internal repository which is used to generate configs for tailwind.
This is the conf of brandOne:
This is the conf of brandTwo:
Removing the values Anyway, thank you for your input which helped me to resolve this issue and sorry for the loss of time. (if for any reason you want a reproductible repo I could now do it since I understand what went wrong). |
Beta Was this translation helpful? Give feedback.
-
Hello,
First of all, thank you for this plugin. It is nice and easy to use 👍
I though about creating an issue about this but since I can't reproduce on a side repo I tought it might be better to open a discussion.
As I said, I tried creating another project but couldn't reproduce and, obviously, I can't share my project.
I'm trying to apply a color on a button.
In my repro project, I have this:
In my real project in the devtool I have this:
If a manually add
rgb(var(--colors-primary));
then the color is displayed and I have no troubles changing a theme.Maybe my problem is well known but I can't find anything and I am really struggling to understand why it doesn't work.
Note that this issue isn't on all colors. i.e:
I found this issue 115 which is somehow similar to mine.
Anyway, if you have any idea I would be grateful. Otherwise, if I finally find the issue I'll update this post.
Many thanks 👋
Beta Was this translation helpful? Give feedback.
All reactions