# Variable THEME_CONFIG_TOKEN

const THEME_CONFIG_TOKEN: InjectionToken< ThemeConfig >

Token used to inject ThemeConfig into your application

# Example

Example of injecting both SisenseContextConfig and ThemeConfig into your application:

export const SISENSE_CONTEXT_CONFIG: SisenseContextConfig = {
  url="<instance url>" // replace with the URL of your Sisense instance
  token="<api token>" // replace with the API token of your user account
  defaultDataSource: DM.DataSource,
};

@NgModule({
  imports: [
    BrowserModule,
    SdkUiModule,
  ],
  declarations: [AppComponent],
  providers: [
    { provide: SISENSE_CONTEXT_CONFIG_TOKEN, useValue: SISENSE_CONTEXT_CONFIG },
    {
      provide: THEME_CONFIG_TOKEN,
      useValue: {
        // initial theme settings
      } as ThemeConfig,
    },
  ],
  bootstrap: [AppComponent],
})