Angular 12's css are generating a fallback for css's variables. How can I prevent that?

CodePudding user response:
I think it has to do with how Angular compiles.
You could switch back from AOT to JIT, and see if that helps you;
but I don't know why you have a problem with it.
If you want to assign only the style you have defined on your component CSS, you can use ViewEncapsulation with ShadowDom.
CodePudding user response:
Use !important after declaring a style
