|
|
|
|
|
by Tade0
1738 days ago
|
|
Adding new UI requires creating new CSS files, refactoring existing UI requires also refactoring the separate CSS files, removing UI is the same thing. Due to this disconnect, old code tends to stick around. To me this says more about the development practices of that team than about BEM. Chiefly you should be able to automatically determine if a given block, element or modifier is still used/needed. How did they wind up in such a situation? Meanwhile Tailwind is functionally equivalent to this: https://twitter.com/samthor/status/1402825668061130755 I would say that this is nice for prototypes, but given how it disincentivises reuse, refactors take an amount of time proportional to the number of instances - that's really bad. Also since there's no composition, just by looking at the codebase it's not clear if a change is something that should propagate to other, similar instances or land only there. |
|
[0] https://tailwindcss.com/docs/functions-and-directives#apply