Documentation Index
Fetch the complete documentation index at: https://cometchat-22654f5b-react-uikit-v7.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
AI Integration Quick Reference
AI Integration Quick Reference
| Field | Value |
|---|---|
| Bubble wrapper class | .cometchat-message-bubble |
| Incoming content | .cometchat-message-bubble__content--incoming |
| Outgoing content | .cometchat-message-bubble__content--outgoing |
| Key tokens | --cometchat-neutral-color-300 (incoming bg), --cometchat-primary-color (outgoing bg) |
Overview
Message bubbles are the core visual element of the chat. This page covers how to customize their appearance — background colors, border radius, spacing, and text colors — using CSS variable overrides.Bubble Structure
Each message bubble has this DOM structure:Customizing Bubble Colors
Incoming Bubble Background
Outgoing Bubble Background
Using CSS Variables (Recommended)
Override the tokens on.cometchat — this is the simplest and most reliable approach:
Changing
--cometchat-neutral-color-300 affects all elements that use it (borders, dividers, etc.), not just bubbles. For bubble-only changes, use the attribute selector approach or wrap the message list in your own class.Customizing Bubble Shape
Border Radius
Remove Rounded Corners
Customizing Bubble Spacing
Gap Between Bubbles
Content Padding
Customizing Text Colors
Incoming Message Text
Outgoing Message Text
Customizing Timestamp & Receipts
Full Example: Custom Bubble Theme
src/bubble-overrides.css
CSS Selectors Reference
Class names are plain, stable BEM names that you can target directly:| Target | Selector |
|---|---|
| Bubble wrapper | .cometchat-message-bubble |
| Leading (avatar) | .cometchat-message-bubble__leading |
| Body | .cometchat-message-bubble__body |
| Header (sender name) | .cometchat-message-bubble__header |
| Reply preview | .cometchat-message-bubble__reply |
| Content (incoming) | .cometchat-message-bubble__content--incoming |
| Content (outgoing) | .cometchat-message-bubble__content--outgoing |
| Footer (reactions) | .cometchat-message-bubble__footer |
| Status info (time + receipts) | .cometchat-message-bubble__status-info |
| Thread indicator | .cometchat-message-bubble__thread |
| Bottom (moderation) | .cometchat-message-bubble__bottom |
All class names follow BEM conventions and are stable across builds. You can target them with standard
.class-name selectors in your CSS.