cometchat-theming

Override CometChat CSS custom properties for React chat UI theming.

Updated May 28, 2026
One-click install
npx skills add https://github.com/MAX5271/CometChat --skill cometchat-theming-max5271
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cometchat-theming
Source: https://github.com/MAX5271/CometChat/tree/main/.claude/skills/cometchat-theming
Command: npx skills add https://github.com/MAX5271/CometChat --skill cometchat-theming-max5271

SYSTEM DOCUMENTATION & REQUIREMENTS

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.

Frequently Asked Questions about cometchat-theming

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I customize CometChat React UI colors to match my brand design system?

Customize CometChat React UI colors by overriding `--cometchat-*` CSS custom properties in a stylesheet placed after the `@cometchat/chat-uikit-react/css-variables.css` import. This adjusts 200+ tokens for colors, typography, and radius to align the chat interface with your brand.

Does CometChat theming support dark mode through OS preference or app toggles?

CometChat theming supports dark mode by targeting the same selector your app uses for OS-driven `prefers-color-scheme: dark` detection or app-controlled theme toggles. You apply CSS variable overrides to ensure dark mode alignment.

Can I apply a preset like Discord or Slack to my CometChat React chat interface?

You can apply fast presets like slack, whatsapp, imessage, discord, or notion to your CometChat React chat interface. The assistant generates the necessary CSS variable overrides to quickly match those specific visual styles.

Where do I place CometChat CSS variable overrides in Next.js, React Router, and Astro?

Place CometChat CSS variable overrides after the `css-variables.css` import in your framework-specific stylesheet location. For Astro, overrides must be placed inside the React island file to ensure the cascade applies correctly.

Why are my CometChat v2 theme overrides not applying correctly?

CometChat theme overrides may fail if using the v2 `cometchat apply-theme` method. You must avoid this and instead override `--cometchat-*` CSS custom properties placed after the UI kit variable import to ensure styles cascade correctly.