UNPKG

@bookbox/view-html

Version:

Bookbox view for html

15 lines (14 loc) 427 B
export type Theme = 'light' | 'dark' | 'sepia'; export type SetThemeOptions = { theme: Theme; element?: Element; selector?: 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;