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

I think the key difference is that you can't use conditionals in style attributes. For example responsive variants, hover, focus, etc.

`text-sm lg:text-lg` is something you simply can't do in style attributes.

`text-gray-700` or `color: var(--mycolor-gray);` is indeed not _that_ much different. (I'm using CSS variables here to achieve the same as Tailwind variables.)



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

Search: