I have a cdn hosted .scss file that contains a sass variable that I need to access from my code. The hosted file basically looks like this:
$styles: (
$icons: (
'heart': '\ea01',
'star': '\ea02',
'cloud': '\ea03'
)
)
And in my project I'd love to be able to do something like this:
@import url("http://hostedsite/icon.scss");
@each $icon, $value in map-get($styles, 'icons') {
.#{$icon} {
&::before {
content: $value;
}
}
}
Is it possible to do this? I keep getting errors that $styles is undefined. I'm using gulp-sass if that matters at all.