Like this
<script>
data() {
return {
themeColor: " #ffffff",
}
},
</script>
<style lang="scss" scoped>
$importedColor: themeColor // javascipt variable
.btn {
background: $importedColor;
}
.squre {
border: 1px solid $importedColor;
}
</style>
Either way, I want to be able to choose the theme color in JavaScript.
Is it possible?