Skip to content

Appearance & theming

Primary colour

color drives the accent everywhere — header rule, send button, FAB, typing dots. Leave it Automatic (null) and the widget inherits the host app’s theme colour instead of forcing a hex.

Font

font_family is a Google Font applied to bot + visitor messages.

Chat-surface palette

chat_appearance (light) and chat_appearance_dark set the message-area colours. Any field left unset falls through to the Material 3 default:

FieldWhat it colours
surface_colorBackground behind the message list.
bot_bubble_colorBot bubble background.
user_bubble_colorVisitor bubble background.
bot_text_colorBot bubble text.
user_text_colorVisitor bubble text.

Theme mode

  • default_theme_mode — light, dark, or system (follows the device). The mode the chat opens in.
  • show_theme_toggle — show a light/dark switch in the more-options menu.

Per-message avatar

show_avatar toggles the avatar circle next to each bot message. Off → bubbles grow a small tail. The header avatar always renders.

Auto-hide bars on scroll

hide_bars_on_scroll — when on, the header and input bars slide away as the visitor scrolls up through history, and slide back when they scroll toward the newest message. Great for full-page chat surfaces.

Host overrides (Flutter)

A host can override the chat-surface palette from code with a ChatColors theme extension — it wins per-field over the dashboard’s (unset) values:

Theme(
data: appTheme.copyWith(extensions: [
...appTheme.extensions.values,
const ChatColors(
surfaceBackground: Color(0xFFFBEAEF),
botBubbleBackground: Colors.white,
botBubbleForeground: Color(0xFF2A1E25),
userBubbleBackground: Color(0xFFB23B59),
userBubbleForeground: Colors.white,
),
]),
child: ChatWidget(configuration: config, fullPage: true),
);