Is it possible to utilize the scss class
or variable
in a typescript file?
scss
.thisIsGreen {
color: green;
}
.thisIsBlue {
color: blue;
}
Alternatively, you can use
$thisIsGreen {
color: green;
}
$thisIsBlue {
color: blue;
}
Now, I want to implement this class
or variable
in the typescript.
component.ts
const colors = ['thisIsGreen', 'thisIsBlue'];
I intend to use these colors in my charts, but I'm unsure how to utilize the css variable or class without hardcoding the color in the component.ts file.
Any assistance on this matter is greatly appreciated.
Thank you