css-theme-management
Version:
This package was created to ease the process of implementing multiple themes in an app.
13 lines (12 loc) • 534 B
TypeScript
import Theming from '../types/index';
export declare namespace ThemeManagement {
type IThemeLoader = (theme: Theming.Theme) => void;
type IPropertyLoader = (property: Theming.ThemeProperty, rootStyle: CSSStyleDeclaration) => void;
type IRootFetcher = () => CSSStyleDeclaration;
interface IThemeManager {
loadTheme: (theme: string, cacheSelection: boolean) => void;
cacheSelection: (themeName: string) => void;
loadCache: () => string | null;
}
}
export default ThemeManagement;