4 ms·
This ridic argument boils down to code reuse and components. The whole reason for css is to facilitate style reuse when writing markup. In normal html pages y
by frebord 8y ago
This ridic argument boils down to code reuse and components.
The whole reason for css is to facilitate style reuse when writing markup. In normal html pages you write a bunch of markup, chunks of that markup might represent the same "component" and so css is a great way to style those similarly using semantic class names.
If you use small components that exist in some type of template (react, vue, etc...) you can take advantage of that to facilitate your code reuse instead of a "semantic-component" css class. I think that is where utilities become valid because you still only change a components styles in one place.