Reputation: 4692
How to override ionic custom CSS using [ngStyle]
I have tried below code but it's not working:
[ngStyle]="{'--color': 'blue'}"
Upvotes: 0
Views: 142
Reputation: 548
you can use "!important" to override ionic custom CSS .
However , it's bad practice and it will not work with [ngStyle].
Instead of using !important in [ngStyle] you can use it like this :
[attr.style]="'--color:blue !important'"
Upvotes: 1