How to apply a Tailwind CSS classname that includes a dot with Less? Escaping (\) didn't worked. I can use this code without any problems in Sass:
@apply py-0.5;
Syntax error: The
0.5class does not exist. If you're sure that0.5exists, 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. (7:4)
Other Tailwind CSS classnames just work fine.
This is most likely related to how Less parses the input. You could use ~ to escape the class name.
@apply ~"py-0.5";
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With