Comment

Comment by devilshaircut

I don't entirely understand why some people find CSS so difficult to work with. I agree that it has its own challenges, but solutions generally aren't very complex. Global selectors ("variables") collisions? Use namespacing. Specificity is convoluted? Simplify by using only non-nested classes.

Does the annoyance primarily center around the fact that styles cascade to child elements? Hard to tell from the article.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton