Override Less Mixins

76 Views Asked by At

I am fully aware mixins (classes) in Less couldn't be overridden, but maybe some npm packages exist that could do it or smth else? Currently compiling with grunt-contrib-less

/// vendor_mixins.less
.do-my-css(@color:red) {color: @color; display: table}

// custom_mixins.less
.do-my-css(@color:red) {color: @color;}

// public.less
body {
.do-my-css()
};

// real output
body {color: red; display: table;}

// expecting
body {color: red}
0

There are 0 best solutions below