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