ng-devui
Version:
DevUI components based on Angular
30 lines (29 loc) • 903 B
TypeScript
import { Subscription } from 'rxjs';
import { Theme } from './theme';
import { ThemeService } from './theme-service';
/**
* usage
* main.ts
```ts
import { ThemeServiceInit } from 'ng-devui/theme';
ThemeServiceInit();
```
*
*/
export declare function ThemeServiceInit(themes?: {
[themeName: string]: Theme;
}, defaultThemeName?: string, extraData?: {
[themeName: string]: {
appendClasses?: Array<string>;
cssVariables?: {
[cssVarName: string]: string;
};
};
}, ieSupport?: boolean, // TODO:css-var-ponyflll 仍有一些问题待定位
allowDynamicTheme?: boolean): ThemeService;
export declare function ThemeServiceFollowSystemOn(themeConfig?: {
lightThemeName: string;
darkThemeName: string;
}): Subscription;
export declare function ThemeServiceFollowSystemOff(sub?: Subscription): void;
export declare function ieSupportCssVar(): void;