Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ModProg opened this issue Jan 16, 2022 · 2 comments
Closed

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

ModProg opened this issue Jan 16, 2022 · 2 comments
Assignees

Comments

@ModProg
Copy link

ModProg commented Jan 16, 2022

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

@RobinMalfait RobinMalfait self-assigned this Feb 22, 2022
@RobinMalfait
Copy link
Member

Hey! Thank you for your suggestion!
Much appreciated! 🙏

We will definitely add more docs on the new addVariant API. Took note of it and we will make sure that it is present in the future 👍

@hazae41
Copy link

hazae41 commented Apr 17, 2022

While the full documentation is being written, you may add a link to your PR about the new addVariant API; which is quite complete but somewhat hard to find for newcomers 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants