Skip to main content

Overview

All colors in the UI Kit are defined as CSS custom properties. Override them to match your brand. Variables cascade — set on .cometchat to affect everything, or on a specific component class to scope the change.
src/cometchat-overrides.css

Primary Colors

The primary color and its extended scale (50 = lightest, 900 = darkest).

Neutral Colors

Gray scale used for backgrounds, borders, and text.

Alert Colors


Semantic Colors

These reference the neutral/primary scales and change automatically with the theme.

Backgrounds

Borders

Text

Icons


Buttons


Example: Brand Color Override

src/cometchat-overrides.css

Example: Dark Mode Override

Always target .cometchat or [data-theme="..."] for global overrides. For per-component overrides, use the component’s BEM class name directly (e.g., .cometchat-conversations). See Theming for details.