Merge user-provided colors with theme-derived defaults.
Partial color overrides from the consumer
MUI theme used to derive the default palette
Complete colors object with user overrides applied on top of theme defaults
import { useTheme } from '@mui/material/styles';const theme = useTheme();const colors = mergeChatPanelColors({ localMessageBackground: '#4caf50', localMessageText: '#ffffff',}, theme); Copy
import { useTheme } from '@mui/material/styles';const theme = useTheme();const colors = mergeChatPanelColors({ localMessageBackground: '#4caf50', localMessageText: '#ffffff',}, theme);
Merge user-provided colors with theme-derived defaults.