I have a SCSS file containing font mixins, e.g:
@mixin font1 {
font-size:18px;
font-weight:bold;
color:black;
}
%font1 {
@include font1
}
I want to include this font as a default variable in another mixin. I've tried multiple variations but I cannot get the SCSS to compile as it does not like %font1
:
@mixin mainHeader($font: %font1) {
@extend #{$font};
...
}
@mixin mainHeader($font: #{%font1}) {
@extend #{$font};
...
}
Is it not possible to include a mixin as a default variable for use in @extend
?