I need to have a variant enabled when the peer is not focused, so I added:
addVariant('peer-unfocused', ':merge(.peer):not(:focus) ~ &')
but to find out how to do this, I had to take a look at the tailwind source code. Maybe that is just my inexperience with css selectors, but I think this would be a nice addition to the documentation here: https://tailwindcss.com/docs/plugins#adding-variants
I need to have a variant enabled when the
peeris not focused, so I added:but to find out how to do this, I had to take a look at the tailwind source code. Maybe that is just my inexperience with css selectors, but I think this would be a nice addition to the documentation here: https://tailwindcss.com/docs/plugins#adding-variants