Re:CSS Utility Classes and “Separation of Concerns”
by adamwathan on Wednesday August 09, 2017 @08:25AM
(#14967868)
The big issue with extends in my experience is that it changes your source order which can cause unexpected bugs.
I'd stick with regular Sass mixins, and if you want to mix in an existing utility, extract a mixin from that utility and mix it into both the component and the utility.
I'd stick with regular Sass mixins, and if you want to mix in an existing utility, extract a mixin from that utility and mix it into both the component and the utility.