@ng-doc/app
Version:
<!-- PROJECT LOGO --> <br /> <div align="center"> <a href="https://github.com/ng-doc/ng-doc"> <img src="https://ng-doc.com/assets/images/ng-doc.svg?raw=true" alt="Logo" height="150px"> </a>
29 lines (28 loc) • 984 B
TypeScript
import { InjectionToken } from '@angular/core';
import { NgDocTheme } from '@ng-doc/app/interfaces';
/**
* Token that can be used to provide custom theme.
* You must compile your theme to CSS and add it to `assets` so that NgDoc can load it dynamically.
*
* You always should provide custom themes in root of your application with `multi: true` parameter.
*
* For example
* ```typescript
* @NgModule({
* declarations: [AppComponent],
* imports: [],
* providers: [
* {provide: NG_DOC_THEME, useValue: {id: 'CustomTheme', path: '/assets/themes/custom.css'}, multi: true}
* ],
* bootstrap: [AppComponent],
* })
* export class AppModule {}
* ```
*/
export declare const NG_DOC_THEME: InjectionToken<NgDocTheme>;
/**
* Default theme for application if user didn't change it manually.
*
* You can provide this token in the root of you application, to set theme by default.
*/
export declare const NG_DOC_DEFAULT_THEME_ID: InjectionToken<string>;