I want to create one site that can be multiple brand based on a brand code I feed in - so I'm using a service (brand.service) to set a brand interface (brand.ts) and so far the properties are:
export interface Brand {
status: number;
logoUri: string;
primaryColour: string;
secondaryColour: string;
tertiaryColour: string;
fontFace: string;
}
I've got everything loading in dynamically apart from the font. So say for example I have a link to the font online as such:
And I create a name:
Raleway Regular
How would I use ngStyle
to apply the font wherever required (if this is even possible)?
EDIT: For colours I'm using the following ngStyle directive:
<p [ngStyle]="{'color': brand?.primaryColour}"><i class="fad fa-palette"></i> Primary Colour</p>