|
|
|
|
|
by andrei_says_
741 days ago
|
|
I think it makes sense when writing css for isolated components - usually ignoring the cascade. Makes it possible to not name things which is a plus in componentworld. The thing is, it’s the cascade that makes css as powerful and elegant as it is. And not naming the things comes at the cost of listing all css properties as classes on each element. I write CSS and must say that in 2024 CSS is an amazingly powerful and elegant language. If one is willing / given the time to learn it. Using conventions like ITCSS, a few libraries like https://utopia.fyi and placing colors, font sizes and spacing into variables + the use of a few utility classes provide most of the conveniences of a utility-first framework with no downsides. I can also see how devs focusing on components prefer utility-first frameworks for the speed of development. Despite the low maintainability and the horrible markup. |
|