Is there a method to incorporate JavaScript variables into an SCSS file? For instance, I have a JavaScript file containing the following code:
// sky blue
const PRIMARY_COLOR = '#489FEF'
export { PRIMARY_COLOR}
and I would like to utilize it in my SCSS file like so:
.sampleClassName { border: $PRIMARY_COLOR 3px solid }
I am attempting to theme my project and apply styles using SCSS. If there are superior alternatives for achieving this, I would appreciate any suggestions. Thank you!