Search code examples
reactjsvisual-studio-codetailwind-cssreact-dom

Unknown at rule @tailwind CSS in reactjs


enter image description here

cant able to resolve this error while compiling the code ..! In fact I've tried many other ways of implementation

//Index.css

@tailwind base;
@tailwind components;
@tailwind utilities;

Solution

  • Make sure to install PostCSS Language Support, extension found in the VSCODE. That will remove the error that is displaying.

    @apply rule is compatible with postCSS: https://github.com/tailwindcss/tailwindcss/issues/325

    VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=csstools.postcss