You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
595 B
13 lines
595 B
export type Theme = Record<string, string>;
|
|
export type Themes = Record<string, Theme>;
|
|
export interface ThemeManager {
|
|
themes: Record<string, Record<string, string>>;
|
|
currentTheme: string;
|
|
eventListeners: Array<(theme: string) => void>;
|
|
loadThemesFromJSON: (url: string) => Promise<void>;
|
|
switchTheme: (themeName: string) => void;
|
|
onThemeChange: (callback: (theme: string) => void) => void;
|
|
setThemeVariable: (variable: string, value: string) => void;
|
|
addThemeVariable: (themeName: string, variable: string, value: string) => void;
|
|
applyTheme: () => void;
|
|
}
|
|
|