News for hackers. Stuff that matters.
Re:Ask HN: Why there are no languages that translate to CSS? by MildlySerious on Thursday December 17, 2020 @07:06PM (#25462203)
It's quite the stretch I know, but for me, on a practical level the answer to getting something better than CSS was Tailwind.

In the biggest project I currently manage, the custom CSS I wrote boils down to maybe 150 lines total of: custom fonts, some ::before/::after styles and styled tags inside a markdown section using @apply. Everything else is just classes in components.

Re:Ask HN: Why there are no languages that translate to CSS? by taphangum on Saturday December 19, 2020 @05:13PM (#25481747)
100% this.

What OP seems to be looking for is just a higher level of abstraction. So that there's less repetitiveness.

That's exactly what Tailwind does. And does VERY well.