The problems ECSS solves
My primary goal with ECSS was to isolate styles as opposed to abstracting them.
Ordinarily, it makes sense to create CSS classes that are abstractions of common functionality. The benefit being that they can then be re-used and re-applied on many varied elements. That's sound enough in principle. The problem is, on larger and more complicated user interfaces, it becomes impossible to make even minor tweaks and amendments to those abstractions without inadvertently effecting things you didn't intend to.
A guiding principle with ECSS therefore was to isolate styles to the intended target.
Depending upon your goals, even at the cost of repetition, isolation can buy you greater advantages; allowing for predictable styling and ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access