daisyUI utils clash with twin.macro intellisense rule generation #732
stassinari
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For my project I'm using React and Tailwind with twin.macro.
I use Visual Code as my editor, and use Tailwind Twin IntelliSense for suggestions over the regular Tailwind Intellisense (because it supports twin.macro's syntax).
I noticed autocompletion not working, and after some digging this is what I found out.
I tried enabling daisyUI features one by one from the config in
tailwind.config.js
and it turns out that everything works fine as long as Iutils
is disabled. The moment I enable it, the extension throws this error:I'm not very familiar with PostCSS, but I think the "problem" lies with this CSS rule in the file
daisyui/src/utilities/unstyled/card.css
:I know this is quite a strange problem to have, but I wonder if you have any suggestion on what I could try to fix this? Maybe there's some PostCSS configuration I can add that this VS Code extension is missing?
Another slightly different question: I played around with the card component and
.card-side
in particular, and I can't figure out when the CSS inside the:where
pseudo-class kicks in. This is probably on me not knowing enough about it, but what does it do?Beta Was this translation helpful? Give feedback.
All reactions