ui-theme/dist/components/ThemeProvider.d.ts
Natalie aaf23fa33f feat(@cocotte/ui-theme): extract UI theme package to @ct/@packages
Re-scoped from @lilith/ui-theme to @cocotte/ui-theme. In-set cross-package deps
re-pointed to @cocotte; out-of-set @lilith deps preserved (same Verdaccio).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-29 13:04:11 -04:00

21 lines
No EOL
919 B
TypeScript

import type { ReactNode, FC } from 'react';
import type { ThemeInterface, ThemeName, ThemeContextValue } from '../types/ThemeInterface';
import type { DeepPartial } from '../utils/merge-theme';
/**
* Theme context - internal, use useTheme() hook instead
*/
export declare const ThemeContext: import("react").Context<ThemeContextValue | undefined>;
interface ThemeProviderProps {
children: ReactNode;
/** Controlled theme name — takes precedence over localStorage and defaultTheme */
themeName?: ThemeName;
defaultTheme?: ThemeName;
storageKey?: string;
/** Inject theme values as CSS custom properties on :root */
cssVariables?: boolean;
/** Custom theme overrides — deep-merged on top of the resolved base adapter */
customTheme?: DeepPartial<ThemeInterface>;
}
export declare const ThemeProvider: FC<ThemeProviderProps>;
export {};
//# sourceMappingURL=ThemeProvider.d.ts.map