im trying to change my app theme color based on the user required theme color,for example i have multiple users and each user having their own app theme color,if a user loggedIn to my app then that user theme color has to apply to my whole app,so based on that theme value my app fonts and all the toggles need to change, as of now i tried using [ngStyle] by calling the function fom my component like below
home.html
<div [ngStyle]="setBgColor()">
<p>{{myName}}</P>
<p>{{myPlace}}</P>
<p>{{myPhone}}</P>
</div>
home.ts
setBgColor(){
return {'background-color': userThemeColor}
}
but now i want to change the ion-toggle color and also for ion-slidespagination bullets color to the userThemeColor, how can i do it form them
what i tried
<ion-toggle (ionChange)="toggleChange()" [ngStyle]="setBgColor()"></ion-toggle>
here it is not changing for toggle, so now i want to export my theme color value to scss file and there i hve to use that color like below
.toggle-md .toggle-icon{
background-color:{{userThemeColor}}
}