Hiyve Components - v1.0.0
    Preparing search index...

    Function buildDefaultChatPanelColors

    • Build the default color palette for the ChatPanel from a MUI theme.

      Parameters

      • theme: Theme

      Returns ChatPanelColors

      Most keys are derived from theme.palette.* so the chat adapts to the host app's light/dark/custom theme. The avatar palette is kept as a fixed set so per-user avatar colors remain deterministic regardless of theme.

      import { useTheme } from '@mui/material/styles';
      import { buildDefaultChatPanelColors } from '@hiyve/react-collaboration';

      const theme = useTheme();
      const colors = buildDefaultChatPanelColors(theme);