Tailwind adds @tailwind
css at rule which is flagged as unknown.
How can I avoid this error?
eg styles.css
@tailwind prefligh
My recommendation is to install postCSS language support and then rename tailwind.css
to tailwind.pcss
then change the references in your package.json
scripts (or whatever build scripts you are using for tailwind) to tailwind.pcss
from tailwind.css
and everything should work fine.
@apply rule is compatible with postCSS: https://github.com/tailwindcss/tailwindcss/issues/325
After many tests: POSTCSS and STYLUS syntax highlighter, removes warnings but CSS Intellisence is incomplete, does not show the first-utitilies classes Tailwind
I installed 'language-stylus' plugin, in VSCode
Settings> User setting:
"files.associations": {
"* .css": "stylus"
},
See you later!
CSS Intellisence is incomplete
just add three line into settings.json
file
"css.lint.unknownAtRules": "ignore",
"css.validate": true,
"scss.validate": true,