Tailwind components

The tailwind you’re getting with Sage composer is the 1.9.x version, IIRC the @layer directive has been introduced with 2.0.
If you’d like to get Tailwind 2, you can read this thread.