diff --git a/connect/community/CustomizationOptions.ts b/connect/community/CustomizationOptions.ts index 988c758f..9de9d949 100644 --- a/connect/community/CustomizationOptions.ts +++ b/connect/community/CustomizationOptions.ts @@ -6,6 +6,19 @@ export class Layout { this.portalPid = community; this.layoutOptions = options; } + + public static getVariables(layout: Layout): {} | null { + let options = layout.layoutOptions; + if(options) { + let variables = {}; + if(options.identity) { + variables['@global-primary-background'] = options.identity.mainColor; + variables['@global-secondary-background'] = options.identity.secondaryColor; + } + return variables; + } + return null; + } } export class CustomizationOptions { identity: {