I have a global CSS file where I've defined all the colors. I attempted to import that value into TypeScript but it didn't work. This is my latest attempt:
get sideWindowStyle(): any {
switch (this.windowStyle) {
case 'classicStyle': {
return {
'@import' : 'src/styles-library/colors-variables.scss',
'background-color': '$primary-lightest-color'
};
}
case 'lightStyle': {
return {
'background-color': '#ffffff'
};
}
default: {
return {
'background-color': '#f1f9fe'
};
}
}
}
Whether with or without importing, it still hasn't worked.