Incorrect css generated by tailwind CLI #8150
Replies: 4 comments 7 replies
-
Im having the same issue with sveltekit |
Beta Was this translation helpful? Give feedback.
-
Hey! I don't see any invalid CSS in there. It's common for linters to complain about stuff like this:
...but that is totally valid and in the spec — that's how you set a CSS variable to an empty value. |
Beta Was this translation helpful? Give feedback.
-
This causes an issue when linking tailwind output to .less file which may seem weird but what MS needs you to do when building custom viz in Power BI. https://docs.microsoft.com/en-us/power-bi/developer/visuals/adding-external-libraries#css-framework |
Beta Was this translation helpful? Give feedback.
-
Still seeing that issue. |
Beta Was this translation helpful? Give feedback.
-
Context: I am building a Node.JS project using Express, Tailwindcss and EJS.
I am building my tailwind css like so:
npx tailwindcss -i source.css -o public/stylesheets/style.css --watch
source.css:
This is the part of the output/style.css file that is generating the error:
Verified that it is wrong/incorrect syntax css using csslint
My IDE (intellij) gives an error:
Term expected
.This is not causing any issues in the project, but I am concerned why is tailwind generating incorrect css. I am no css expert, but please leow if this is expected. Let me know if more info is needed.
Related stackoverflow post
Beta Was this translation helpful? Give feedback.
All reactions