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