I'm wanting to know if you can use SASS variables to generate inline CSS.
I'm aware you can do the following:
$my-class: yellow;
$yellow: #ffff00;
.#{$my-class} {
color: $yellow;
}
And then inline the CSS using a Grunt task which outputs:
<div class="yellow" style="color: #ffff000;">Hello world</div>
But is it possible to use a variable:
$font-family: Arial, sans-serif;
In such a way:
<div style="font-family: $font-family;">Hello world</div>
Which would output:
<div class="font-family: Arial, sans-serif;">Hello world</div>
I'm pretty sure you can't with basic SASS but it would good to hear some thoughts on it.