0
There is a way to use the function lookup
to apply hash objects
within a for
?
I’m using it this way:
$color= {
$success: {
bg: #4caf50,
...
}
,
$error: {
bg: #f44336,
...
}
,
$warning: {
bg: #f0ad4e,
...
}
,
$info: {
bg: #03a9f4,
...
}
}
tag-type= {
'.success': $success,
'.error': $error,
'.warning': $warning,
'.info': $info
}
.ui-tag
for tags, value in tag-type
& { tags }
teste = lookup('$color.'+value+'.primary')
foo: teste
border-color: $color.$info.primary // Exemplo esperado