I am getting a sass error: Declarations may only be used within style rules.
╷
32 │ #{$property}: $value;
│ ^^^^^^^^^^^^^^^^^^^^
for the following file:
@mixin theme($colour, $texture: null) {
$theme: map-get-strict($themes, $colour, "theme");
@if ($texture) {
@include getTexture($texture);
}
@each $property, $value in $theme {
#{$property}: $value;
}
}
This is using dart-sass.
I think it might be a Sass test file that is causing the issue, e.g.:
@include it('outputs the light-blue theme') {
@include assert {
@include output {
@include theme(light-blue);
}
@include expect {
background-color: getColour(light-blue);
color: getColour(black);
}
}
}