Is there a way to use the lookup
function to apply hash objects
to within 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