react-theme-system
Version:
A comprehensive React theme management system that enforces consistency, supports dark/light mode, and eliminates hardcoded styles
17 lines (16 loc) • 738 B
TypeScript
import { Theme, ThemeConfig } from '../types';
export interface ThemeValidationResult {
isValid: boolean;
errors: string[];
warnings: string[];
}
export declare const validateTheme: (theme: Theme, themeName: string) => ThemeValidationResult;
export declare const validateThemeConfig: (config: ThemeConfig) => ThemeValidationResult;
export declare const createThemeValidator: (strict?: boolean) => {
validate: (config: ThemeConfig) => ThemeValidationResult;
validateTheme: (theme: Theme, themeName: string) => ThemeValidationResult;
};
export declare const themeValidator: {
validate: (config: ThemeConfig) => ThemeValidationResult;
validateTheme: (theme: Theme, themeName: string) => ThemeValidationResult;
};