Rusty Cascading Style Sheets – Another CSS Preprocessor
github.com
github.com
Vanilla CSS doesn’t have mixins, but generally speaking those aren’t all that helpful anyway, there’s often a better way to achieve what you want using some combination of other HTML/CSS features.
I’m more inclined to write vanilla CSS and use Lightning CSS (also implemented in Rust) to transcode for backward compatibility with older browsers. Lightning also supports mixins via the compose property if you really want them, although that’s not standard CSS.
I'm still a fan of LESS, but quite specifically because it _does not_ try to force another languages syntax into my preprocessed stylesheets, rather keeps everything as css-like as possible. This makes it much easier to transition things to vanilla-only when possible, absolutely dreading "mostly js"-types of SASS frameworks
But seriously.. multi-line comment syntax that blows up when it encounters a nested comment is infuriating and a slog in huge projects, particularly during multi-line editing.
The same reason why trailing commas should be mandatory by law and semis should be punishable by wedgie.
It would be good if Lightning CSS supported that use case: https://github.com/parcel-bundler/lightningcss/issues/69.
Compile-time variables are still a useful feature. CSS Custom Properties get used in a lot of places where compile-time variables would be better.