In my VueJS project, I have a variables.scss file which contains a few variables that I usually @importin the <style/> section of my components when I need them locally. This works fine, but how can I use one of those variables when I need them as attributes to an element of my template? In my case, I am trying to use my primary color as the bar-color attribute of a progress-bar (See here for this component's doc).
Here is what I have tried without success, even after importing the variable file in my style section :
<template>
...
<progress-bar :val="value" size="large" bar-color="$primary"></progress-bar>
...
</template>
<style lang="scss" scoped>
@import "../assets/styles/variables.scss";
</style>