windicss icon indicating copy to clipboard operation
windicss copied to clipboard

how to change subclass by different parent class name?

Open cgychangzhi opened this issue 1 year ago • 1 comments

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

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

cgychangzhi avatar Oct 31 '23 03:10 cgychangzhi

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

peterstnsz avatar Feb 14 '24 22:02 peterstnsz