Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

1.4 KB
Raw Blame
// Export types
export type {
  Theme,
  IThemeRGB,
  ThemeMode,
  IThemeBrands,
  IThemeColors,
  IThemeVariables,
  ThemeDefinition,
  IThemeAppearance,
  ThemeModeDefinition,
  ResolvedThemeDefinition,
} from 'librechat-data-provider';

// Export ThemeProvider, ThemeContext, useTheme hook, and the mode predicates
export {
  ThemeProvider,
  ThemeContext,
  useTheme,
  isDark,
  isHighContrast,
  resolvesToHighContrast,
} from './context/ThemeProvider';

// Export utility functions
export {
  default as applyTheme,
  applyResolvedTheme,
  clearAppliedTheme,
  describeResolvedTheme,
  themeOwnedProperties,
  THEME_BOOT_ATTRIBUTE,
} from './utils/applyTheme';
export type { ResolvedThemeStyle } from './utils/applyTheme';

export {
  HIGH_CONTRAST_THEME_NAME,
  THEME_VERSION,
  collectThemeWarnings,
  darkAppearanceDefaults,
  defaultAppearance,
  defaultAppearanceFor,
  defaultBrands,
  fromLegacyTheme,
  highContrastTheme,
  libreChatTheme,
  resolveTheme,
  themeAppearanceProperties,
  themeBrandTokens,
  themeColorTokens,
  renamedColorTokens,
  validateThemeDefinition,
} from 'librechat-data-provider';

// Export theme atoms for persistence
export { themeModeAtom, themeColorsAtom, themeNameAtom } from './atoms/themeAtoms';

// Read a theme color role for code that paints outside the stylesheet
export { readThemeColor } from './utils/color';

// Export predefined themes
export * from './themes';