I got the following system. We have a back-end system that get input from another system for setting for our angular application.
So for each module we load a different color to style our application. Module 1 = red. Module 2 = blue.
What we are looking for is is a dynamic change of color, cause it can be changed any second. Most solutions I have seen are hardcoded css but that doesn't work.
What we have tried is:
<mat-form-field floatLabel="always" color="primary">
<input #input matInput [ngStyle]="{'color': color }" />
</mat-form-field>
We have tried to adjust the primary color pallet or set the color with ngStyle but to no succes.