9 ms·
Ask HN: Why there are no languages that translate to CSS?
The way Dart and TS are trying to fix JS problems. That language wouldn't just add some features to CSS, it should introduce something completely different but better, since everyone hates CSS.
- fmo91 6y agoI'm an iOS Engineer so maybe I'm wrong, but doesn't SASS already do that?
- mrwnmonm 6y agoNo, it introduces more features, that all.
- lgas 6y agohttps://package.elm-lang.org/packages/mdgriffith/elm-ui/latest/ https://package.elm-lang.org/packages/mdgriffith/elm-ui/late... ?
- mrwnmonm 6y agoYes, this is kind of what I am talking about. Thanks for the link. But we should have more, and better ones. I didn't sit down and think about how it would be, I was just curious why we didn't go that path already, if a lot of people don't like CSS.
- Normille 6y ago{less} [0] [0] http://lesscss.org/ http://lesscss.org/
- mrwnmonm 6y agoMan, it literally says "It's CSS, with just a little more." That is not what I mean. I know about less and sass already.
- Normille 6y agoYou also used Typescript vs Javascript as an example of the kind of thing you were looking for. Since TS just 'adds features' to JS, I think the comparison with CSS / Less is valid. Also "everyone hates CSS" is a bit of an unfounded and simplistic statement to make and may be why a couple of us thought you were asking a pretty uninformed question.
- wryoak 6y agoWoah woah woah. Hold the everyone. I like CSS. In fact, I think I like CSS more than any other programming/templating/scripting/computer language I know - yes, indeed, Go blows, Rust sucks, C/++/# are so clumsy, Python, Ruby, Haskell, Closure and Scheme all excel at being crappy. Maybe F# and Elm are kinda okay but they aren't good like CSS.
- MildlySerious 6y agoIt'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.
- taphangum 6y ago100% 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.
- deleted 6y ago[deleted]
- deleted 6y ago[deleted]