UNPKG

@design.estate/dees-domtools

Version:

A package providing tools to simplify complex CSS structures and web development tasks, featuring TypeScript support and integration with various web technologies.

24 lines (23 loc) 715 B
import { DomTools } from './domtools.classes.domtools.js'; import * as plugins from './domtools.plugins.js'; export declare class ThemeManager { domtoolsRef: DomTools; goBrightBoolean: boolean; preferredColorSchemeMediaMatch: MediaQueryList; themeObservable: plugins.smartrx.rxjs.ReplaySubject<boolean>; constructor(domtoolsRefArg: DomTools); enableAutomaticGlobalThemeChange(): Promise<void>; private updateAllConnectedElements; /** * set the theme of the website to bright */ goBright(): void; /** * set the theme of the website to dark */ goDark(): void; /** * simply toggle between bright and dark */ toggleDarkBright(): void; }