News for hackers. Stuff that matters.
Re:StyleX – Meta's styling library by yurishimo on Tuesday December 05, 2023 @08:09PM (#38539269)
Nitpick, but most atomic css libraries name things fairly consistently. In addition, you only have to memorize the names once. After that learning curve, you never have to think of a class name again.

In addition, with robust IDE support, you can type the css attribute and get autocomplete suggestions for the relevant utility.

Re:StyleX – Meta's styling library by cantSpellSober on Tuesday December 05, 2023 @09:28PM (#38539845)
So we're told every time. Is it "2xl" or "xxl" for the breakpoint again? It depends on the library (hopefully you didn't customize it!). Was it Tachyons or Bulma that has "ns" for "not small?"

> you only have to memorize the names once

Yep! After that it's as simple as dark:hover:md:motion-reduce:text-base/7

> you never have to think of a class name again

Unless you're using Tailwind's custom themes, arbitrary groups, peers...