Possibly mixins, loops, and variables, which, unlike CSS variables, can be used in media queries.
Possibly mixins, loops, and variables, which, unlike CSS variables, can be used in media queries.
Please god no. CSS is intended to be completely declarative. Loops and conditional logic were the very worst ideas SASS ever had.
Then in-between then and now, I did a lot of consulting work, and now I'm strongly feeling that the more DRY you try to make CSS, the more you end up writing, and unmaintainable CSS at that. Random example:
https://github.com/primefaces/primeflex/blob/master/_sass/li...
SASS is too powerful for its own good.
TL;DR: I wholeheartedly agree with the above comment.
css variables in media queries would be helpful too, but mixins to me is the next big step after :has() (oh so useful, come on firefox!) and this nested css syntax. unfortunately, it may be years for us to see it in browsers. there's no consensus yet on mixin syntax or where in the css lifecycle it would be implemented (there are potentially serious performance implications apparently).