I just noticed the title of my article may lead to confusion: it’s more about accessing to the variable once defined, it’s not about the variable definition, which is a topic covered by your article.
What you write reminds me the css-vars package or the postcss-custom-properties plugin, which both seems very similar to what you do.
I’m currently working on a SCSS workflow for Custom Media Queries, this time more on the media query definition. It will leverage the postcss-custom-media and postcss-media-minmax plugins, and from what I’m testing, it’ll be the faster way to both declare and use media queries I’ve ever encounter. (Huge statement. :D)
We’re a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.