UNPKG

theme-o-rama

Version:

A TypeScript library for dynamic theme management in react + shadcn + tailwind applications

14 lines 710 B
import { Theme } from "./theme.type.js"; export type ImageResolver = (themeName: string, imagePath: string) => Promise<string>; export declare class ThemeLoader { private readonly themesCache; constructor(); clearCache(): void; getTheme(themeName: string | null): Theme; getThemes(): Theme[]; loadThemes(themes: Theme[], imageResolver?: ImageResolver | null): Promise<void>; loadTheme(theme: Theme, imageResolver?: ImageResolver | null): Promise<void>; loadThemeFromJson(themeJson: string, imageResolver?: ImageResolver | null): Promise<Theme>; initializeTheme(theme: Theme, imageResolver?: ImageResolver | null): Promise<Theme>; } //# sourceMappingURL=theme-loader.d.ts.map