DEV Community

Cover image for How to use CSS variables with Sass Mixins

How to use CSS variables with Sass Mixins

Ali Al-Obaji on September 27, 2019

CSS Variables and Sass mixins are each potent on their own. With some creativity, we can make them work together towards more flexible and robust s...
Collapse
 
jdriviere profile image
J. Djimitry Rivière

That explains why, initially, my compilation wouldn't work whenever I used var() with .sass variables and mixing. Thank you for providing a solution.