Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

No, but `group` doesn't affect the parent in Tailwind. You put `group` in the parent to mark it, and then use the `group/...` syntax to apply different properties to the child, depending on the different states of the parent. This doesn't require `:has`.

I don't think Tailwind has a built-in `:has` tool, but I suspect it would be easy to add one as a custom class.





Oh, I misunderstood the GP then, thanks for clarifying!

Tailwind has few :has tools but it’s imho terrible. They keep inflating the system to nonsense.

This.



Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: