2 ms·
I'm very sceptical of class-based CSS solutions because I had "do it semantically" drilled into me when learning it. However I think I'm starting to come aroun
by solarkraft 4y ago
I'm very sceptical of class-based CSS solutions because I had "do it semantically" drilled into me when learning it.
However I think I'm starting to come around because it finally clicked that modern web programming already abstracts styles on another level, as components.
So instead of repeating yourself, you create something like a StandardBox component and it brings all of its styles.
It still doesn't look or feel very elegant to me, but this seems to be the compromise most web developers are willing to make. Changing the theme seems to be mostly done through variables.