@rxxuzi/gumi
Version:
Clean & minimal design system with delightful interactions
34 lines (33 loc) • 657 B
TypeScript
export declare class ThemeManager {
private currentTheme;
private readonly storageKey;
constructor();
/**
* Initialize theme
*/
private init;
/**
* Get current theme
*/
getTheme(): string;
/**
* Set theme
*/
setTheme(theme: 'light' | 'dark' | 'auto'): void;
/**
* Toggle theme
*/
toggleTheme(): void;
/**
* Clear theme preference
*/
clearPreference(): void;
/**
* Create theme toggle button
*/
createToggleButton(options?: {
className?: string;
lightIcon?: string;
darkIcon?: string;
}): HTMLButtonElement;
}