I am building a website with tailwind as a css framework, but I ran into the problem that when I try to use the media query prefixes of tailwind (sm:, lg:, etc.) this error is thrown:
@applycannot be used with.sm\:because.sm\:either cannot be found, or its actual definition includes a pseudo-selector like :hover, :active, etc. If you're sure that.sm\:exists, make sure that any@importstatements are being properly processed before Tailwind CSS sees your CSS, as@applycan only be used for classes in the same CSS tree.
Can someone explain how one should use these prefixes with own custom classes? Thank you for your help already! <3