2022-09-14

CSS Classes considered harmful

There are some compelling ideas to glean from this article if you can move past the clickbait title.

There are many great ways we express states and parameters of a component without having to shoehorn them into an archaic system like the class attribute. We have mechanisms today to replace it, we just need to unleash ourselves from our own shackles. Upcoming standards will allow us to express ideas in powerful new ways.

Building the web is never done. There’s always new things to learn. The beauty is that building with standards of HTML and CSS means that the old ways never break as progress is continually made.

What a platform!