UNPKG

theme-o-rama

Version:

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

20 lines 826 B
import React from "react"; import { Theme } from "./index.js"; import { ImageResolver } from "./theme-loader.js"; export type SimpleThemeChangeCallback = (theme: Theme) => void; interface SimpleThemeContextType { currentTheme: Theme | null; setTheme: (theme: Theme) => void; isLoading: boolean; error: string | null; initializeTheme: (theme: Theme) => Promise<Theme>; } interface SimpleThemeProviderProps { children: React.ReactNode; imageResolver?: ImageResolver; onThemeChange?: SimpleThemeChangeCallback; } export declare function SimpleThemeProvider({ children, imageResolver, onThemeChange, }: SimpleThemeProviderProps): import("react/jsx-runtime").JSX.Element; export declare function useSimpleTheme(): SimpleThemeContextType; export {}; //# sourceMappingURL=simple-theme-context.d.ts.map