calc
in a mixin.
@define-mixin fontstyle $size, $color {
font-size: $(size) px;
font-size: calc($size/16) rem;
color: $color;
}
$size
inside calc()
.
#{}
.
#{$size}
.
postcss
to your own package.json
@import
in the scss files: @import('libs/theme/scss/brand-colors')
for example. brand-colors
is a .scss
file.
libs/theme
path altogether or tell it how to import properly I think my problem would be fixed.