Is there a way to support Tailwind @apply in Visual Studio?

29 Views Asked by At

I have a C#/Blazor project where i use tailwindcss for the user interface. Visual Studio highlights the @apply directives in the .css files from tailwind as unkown @-blocks. Are there any ways to teach Visual Studio about them, disable this warning or replace @apply by some known directives?

Example:

table {
    @apply table-fixed inline-block border-collapse overflow-hidden border border-gray-dark rounded;
}

For the @tailwindcss directives i used the replacements @import 'tailwindcss/base'; and so on.

1

There are 1 best solutions below

1
Pinal Tilva On

Getting those warnings are completely fine, if you still want to remove it than install PostCSS Language Support plugin for VSCode