@bookbox/view-html
Version:
Bookbox view for html
16 lines (15 loc) • 452 B
TypeScript
export type Theme = 'light' | 'dark' | 'sepia';
export type SetThemeOptions = {
theme: Theme;
element?: Element;
selector?: string;
storageKey?: string;
};
export declare const THEME_STORE_KEY = "book-box-theme";
export declare function setTheme(options: SetThemeOptions): void;
/**
* set theme from localStorage
*/
export declare function setSavedTheme(options?: Omit<SetThemeOptions, 'theme'> & {
storageKey?: string;
}): void;