Skip to content

Document how to add peer/group variants as well #1144

@ModProg

Description

@ModProg

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions