Create Tailwind Plugin Class That Generates Various Hover And Focus States
Currently I’m using the @apply like so to create a simple error class I can add to input elements to highlight them.
How do I extend the peer- modifier in Tailwind to allow it to work on any sibling?
I would like to extend the peer-
modifier in Tailwind such that when I write this:
is there any way to use custom tailwind classes in JavaScript?
I want to use a tailwind class in JavaScript using querySelector()
this is my element