MaintainableCSS - an approach to writing modular, scalable and of course, maintainable CSS(maintainablecss.com)

over 7 years ago from Adam Silver, Interaction designer focused on inclusive design and design systems

  • Terry OTerry O, over 7 years ago

    I agree this is overly dogmatic, I think there's a happy medium here (in my experience at least) where you have objects as well as utility classes for common, repeatable styles e.g. something like Harry Roberts' ITCSS.

    2 points
    • Hamish TaplinHamish Taplin, over 7 years ago

      I've started using pure utility classes a lot recently (with responsive suffixes eg @m) and find this a really nice way to express simple bits of layout, type and whitespace.

      I don't understand this at all:

      If you have utility non-semantic classes that describe the look then when you edit one of these classes, they will propogate to every single element with that class

      That's the whole point of utility classes, they follow the single responsibility principle and you would be incredibly unlikely to edit them.

      5 points