|
|
|
|
|
by cteague
2023 days ago
|
|
It's worth noting here that the issue isn't duplicated css, but duplicated html. Ideally, this is handled by some other templating / component library (e.g. React). The idea is that if you have `bulletpoint__container`, that's going to be specific to this component only and hard to re-use in a different part of the application. It seems like Tailwind's main value proposition is that it forces developers to select from a limited, pre-defined set of options in styling which can then be used as building blocks for components. It basically circumnavigates css entirely to the extent the page can be styled using Tailwind's options. As far as I can tell, it's not really aimed at eliminating code-duplication per se. That should optimally be handled by whatever is generating your components. This article https://adamwathan.me/css-utility-classes-and-separation-of-... explains it better. |
|