react-theme-system
Version:
A comprehensive React theme management system that enforces consistency, supports dark/light mode, and eliminates hardcoded styles
15 lines (14 loc) • 548 B
TypeScript
import React from 'react';
import { ThemeContextType, ThemeConfig, ValidTheme } from './types';
export declare const VALID_THEMES: readonly ["light", "dark"];
export interface ThemeProviderProps {
themes?: ThemeConfig;
children: React.ReactNode;
defaultTheme?: ValidTheme;
onChange?: (_theme: ValidTheme) => void;
enablePersistence?: boolean;
enableSystemTheme?: boolean;
validateTheme?: boolean;
}
export declare const ThemeProvider: React.FC<ThemeProviderProps>;
export declare const useTheme: () => ThemeContextType;