It is possible. @each
part needs some modification:
&-#{$name}:
should convert to&-#{$name}
.- Access to list (array) items is possible with
nth
function; for examplenth($value, 1)
. - lists indexes start from 1.
- Also
'100vh'
doesn’t need'
.
More information about lists: https://sass-lang.com/documentation/modules/list
@each $name, $value in $background-things {
#background {
&-#{$name} {
@include column($height:nth($value, 1), $background-color:nth($value, 2), $flex-direction:nth($value, 3));
}
}
}
CLICK HERE to find out more related problems solutions.