Re:CSS Utility Classes and “Separation of Concerns” (2017)
by jameslk on Saturday November 16, 2019 @04:02PM
(#21554928)
It would be some domain-specific component. Like .product-card. I don't see the examples you've given. Those are so literal, you might as well use inline styles at that point.
[ Parent
| on HN ]
Re:CSS Utility Classes and “Separation of Concerns” (2017)
by meerita on Saturday November 16, 2019 @04:19PM
(#21555017)
That's the problem functional CSS solves: class naming doesn't relay on developer intervention, it's just a translation of the utility.
Product-card is not an utility, that's why it's a problem to maintain such classes.