Trying to implement global colors using CSS variables in my Angular 11 app.
The styles.scss file contains:
:root{
--primary : #0b68e8;
--secondary:#ABCFFF;
}
.test-class{
background: var(--primary);
}
However, when applying this class in one of the components, the variable is not being recognized:
https://i.sstatic.net/wGndk.png
I have tried looking for solutions but cannot seem to resolve it. Any ideas on what might be going wrong here?