Build the default color palette for the ChatPanel from a MUI theme.
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.
theme.palette.*
import { useTheme } from '@mui/material/styles';import { buildDefaultChatPanelColors } from '@hiyve/react-collaboration';const theme = useTheme();const colors = buildDefaultChatPanelColors(theme); Copy
import { useTheme } from '@mui/material/styles';import { buildDefaultChatPanelColors } from '@hiyve/react-collaboration';const theme = useTheme();const colors = buildDefaultChatPanelColors(theme);
Build the default color palette for the ChatPanel from a MUI theme.