What problem does it solve?
CometChat UI may not visually match your app’s design system, so you need a reliable way to customize its look without breaking the already-integrated chat.
Core Features & Use Cases
- CSS variable theming: Override CometChat’s
--cometchat-* custom properties (200+ tokens) via a CSS cascade placed after the UI kit variable import.
- Preset and brand overrides: Apply a fast preset (slack/whatsapp/imessage/discord/notion) or set brand colors (primary, plus optional font and radius).
- Dark mode alignment: Implement OS-driven (
prefers-color-scheme: dark) theming or app-driven theme toggles by targeting the same selector your app uses.
- Framework-specific placement guidance: Ensure overrides work for React/Vite, Next.js, React Router, and Astro (Astro requires overrides inside the React island file).
Quick Start
Ask the assistant to “theme CometChat using the discord preset, including dark mode,” then apply the CSS override after the CometChat css-variables.css import in your app’s designated stylesheet.