react-theme-system
Version:
A comprehensive React theme management system that enforces consistency, supports dark/light mode, and eliminates hardcoded styles
9 lines (8 loc) • 819 B
TypeScript
export { ThemeProvider, useTheme, VALID_THEMES } from './ThemeProvider';
export type { ValidTheme } from './types';
export { useStyled } from './hooks';
export { useThemeToggle, useThemeToggleWithSystem } from './hooks/useThemeToggle';
export { defaultTheme } from './themes';
export { createThemeConfig, isValidTheme, getStoredTheme, setStoredTheme, themeToCSSVariables, applyThemeToDOM } from './utils/theme-helpers';
export { themeValidator, createThemeValidator, validateTheme, validateThemeConfig, type ThemeValidationResult } from './utils/theme-schema';
export type { Theme, ThemeConfig, ThemeContextType, ThemeProviderProps, StyledProps, StyledStyles, ThemeTokenPath, ThemeColors, ThemeSpacing, ThemeTypography, ThemeShadows, ThemeBorderRadius, ThemeBreakpoints, ThemeTransitions, ThemeZIndex } from './types';