Tailwind CSS adds a @tailwind CSS at rule which is flagged as unknown.
How can I avoid this error?
For example, styles.css
If you use Visual Studio Code, you can use the PostCSS Language Support plugin.
Make sure you associate your scss files with PostCSS by adding the following to your settings.json file:
1
You did nothing wrong. The mentioned extension does not work well with IntelliSense. You could try using this one: mhmadhamster.postcss-language which has a little better IntelliSense support, but I think it does not integrate with the @tailwind directive. At least I didn't get it to work -- RaNii Johnson Feb 22, 2024 at 11:59:34
2
hummm -- Liantsoa Feb 22, 2024 at 12:02:21