I have looked around and I've seen one solution where in your html, you'd have a tag dedicated to pass sass variables to javascript. I'm talking about the second answer from
Is there a way to import variables from javascript to sass or vice versa?
I also tried using html
<div class="selector"></div>
with css
.selector { content: "stuff"; }
but looking at the dom in the developer tools, it doesn't get added even though we can see it on the rendered page, so I cannot pick it up with javascript
$('.selector').text()
How does everyone do it?
See Question&Answers more detail:os