csstools/stylelint-media-use-custom-media

Sass Variables

mlatimetoact opened this issue · 1 comments

I am using sass in my project and like to use sass variables in my media queries.
Can you add an option to switch from css variable to sass variables.

My code will look something like that:

@media ($sm) {}
@media ($sm), ($md) {}
@media screen and ($sm) {}

That sounds like a reasonable idea for a different plugin, as this one relies on the standards-tracking Custom Media Queries specification. Would you have any interest in building one? How would we handle detecting whether or not a Sass variable was correctly available, or would we? I could provide guidance, but I do not presently have the time to build this.