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

The one criticism it's valid to level at Tailwind is it doesn't play nicely with the CSS cascade.

Take their plugin, https://tailwindcss.com/docs/typography-plugin. It lets you define text styles for regions (handy when you render Markdown into a div, for example).

Imagine that you have HTML inside that div, with TailwindCSS classes applied. The specificity of the text styles for the region override the classes, which isn't what any end-user wants.

The guys behind Tailwind acknowledge this, but there isn't a good solution for it. It's not a TailwindCSS-only problem; I've written plenty of CSS by hand which has this issue.

But when choosing a framework based around element-level classes, this is a limitation which is important to keep in mind.



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

Search: