2
kiki
64d

Why is CSS beautiful? It's like asking why is Beethoven's Ninth Symphony beautiful. If you don't see why, someone can't tell you. I know CSS is beautiful. If it isn't beautiful, nothing is.

Comments
  • 0
    Well, you can cite facts, but that won't spread your feelings, it might even have a rebound effect, like too much advocacy for Tailwind or TypeScript seemed to have fueled controversies.

    Why is CSS beautiful and elegant?

    Because it's descriptive rather than imperative, functional or anything of those aspects that make other programming languages overcomplicated. It's also quite compact. And pure CSS is less ugly and more lintable than any CSS-in-JS code or overly verbose tailwind or bootstrap class name strings.

    Apart from its idiosyncrasies, like white-space: nowrap; or the fact that there is no implementation of a helpful no-descending-specificity rule that doesn't nag about completely unrelated stuff. Apart from mad (but useful) hacks like pseudo-elements that are hard to debug in browser dev tools. Apart from that, I still love CSS!
  • 0
    Don't get too hard of a cock over it, it's just a key-value pair "language" with a query syntax built in.
  • 1
    @AlgoRythm that's theme.json, but try to build a WordPress theme only using theme.json to customize - good luck!
Add Comment