Skip to content

Your CSS is an interface

A person inspecting things can then modify these classes with a good deal of confidence about what exactly they’re tweaking. For example, someone could inspect a card component to find the class controlling its title, then modify the title class declarations to suit their needs.

I agree with this (via Baldur Bjarnason) and wrote something similar about how frustrating I find Twitter’s arcane class names a couple of years back.

I don’t think it really matters how many of us will actually install Stylus or similar – websites should be modifiable in order to make them accessible on principle. Why? Because content has to be decoupled from its appearance in order to be accessible in the broadest sense; the website designer cannot have the final say over how content is presented. A site’s CSS is part of its public-facing API.