|
|
|
|
|
by ratww
1770 days ago
|
|
> Plus, if you have two elements with the same or similar styling, re-writing all those utility classes over and over seems extremely cumbersome Tailwind doesn't really work that well on static websites, or apps that have markup that you have to repeat all over. It is supposed to be used with components. If you have a button, it should be its own component, rather than something that you have to copy-paste around. Of course, you can use @apply to merge Tailwind classes into CSS Components, but it kinda negates the benefits of functional CSS. - > Moving CSS into HTML does not makes much sense either, as it's far stylistically cleaner to separate CSS and HTML into their respective files. The "separation of concerns" idea is still here, but the idea is that HTML+JS is the "presentation", while the "content" comes in the form of JSON (or any kind of object, if you're using it in the backend). Without this conceptual shift, it really doesn't make sense to use Tailwind. |
|