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

how to change subclass by different parent class name? #912

Open
cgychangzhi opened this issue Oct 31, 2023 · 1 comment
Open

how to change subclass by different parent class name? #912

cgychangzhi opened this issue Oct 31, 2023 · 1 comment

Comments

@cgychangzhi
Copy link

cgychangzhi commented Oct 31, 2023

For example:
.sub { color: blue; } .parent .sub{ color: pink; }

// I try this
<div class="text-[blue] parent-(text-[pink])">test</div>

@peterstnsz
Copy link

Not sure I understand the above, looks like applying two colour classes to one container (text) in your example?

Otherwise you could check this out (it is also supported in windicss): https://tailwindcss.com/docs/hover-focus-and-other-states#arbitrary-groups

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

2 participants