@alyle/ui
Version:
Minimal Design, a set of components for Angular
19 lines (18 loc) • 469 B
TypeScript
export type StyleContent<T> = (theme?: T) => string;
export interface StyleData {
/** Class Id */
id: string;
key: string;
styleContainer: any;
styleContent: any;
fn: () => string;
}
export interface DataStyle {
id: string;
styleElement: HTMLStyleElement;
style: StyleObject<any>;
}
export interface MultipleStyles<T> {
[key: string]: StyleContent<T>;
}
export type StyleObject<T> = string | StyleContent<T> | MultipleStyles<T>;