DEV Community

darkresq14
darkresq14

Posted on

How to fix "Unknown at rule @tailwindcss css(unknownAtRules)" in VS Code

Have you ever included Tailwind CSS in your project just to be spammed by multiple warnings like Unknown at rule @tailwind css(unknownAtRules) ?
Screenshot of VS Code with warnings
A quick fix for this is to ignore them from the VS Code settings. Here is how to do it:
Open VS Code settings using your favorite way (I like to use the shortcut Ctrl + ,) and search for css lint unknown at rules
VS Code screenshot for the css linting settings set to warning
The first (and only) option is CSS > Lint: Unknown At Rules and the default for this is warning.
Set this option to ignore.
VS Code screenshot for the css linting settings set to ignore
And we are done! No more warnings distracting us from coding.
Screenshot of VS Code without the warnings

Top comments (0)