Interface for theme providers. A theme provider stores and provides the current theme. And it emits an observable for theme changes.

interface ThemeProvider {
    theme: null | "light" | "dark";
    theme$: Observable<null | "light" | "dark">;
}

Implemented by

Properties

Properties

theme: null | "light" | "dark"

The current theme. Null is for Auto (based on system preference).

theme$: Observable<null | "light" | "dark">

Observable for theme changes.