cometchat-react-v7-customization
Installation
SKILL.md
Ground truth:
@cometchat/chat-uikit-react@7. Theming mechanism below is from the live v7 theming docs (see corereferences/docs-map.md→/ui-kit/react/theming). Status: catalog-verified vs installed 7.1.0 (exports-only web-v7.json). Fetch the full--cometchat-*token list from the theming.mdtwin ({DOCS_BASE}/ui-kit/react/theming.md, viadocs-map.md) — do NOT bake it.
Companion skills (read first)
cometchat-react-v7-core— install, provider,init→login→render. This skill ASSUMES it.
Use this skill when
Branding/theming: colors, fonts, light/dark mode, or per-component style overrides.
Prerequisites & install
Covered by core. No new package.
Customization mechanism (BAKED — v7)
- Design tokens = CSS custom properties, all prefixed
--cometchat-*, scoped to the.cometchatwrapper. - Light/dark: built-in
light(default) anddark, selected via thethemeprop onCometChatProviderand thedata-themeattribute on the wrapper. Runtime switching via theuseThemehook. - Follow the OS theme: the
themeprop is"light" | "dark"only and defaults tolight— there is notheme="system"and the kit does NOT readprefers-color-scheme(AUDIT-004). To follow the system light/dark setting, sync thethemeprop towindow.matchMedia("(prefers-color-scheme: dark)")(with achangelistener, SSR-guarded). Recommended as the default for a fresh integration. Full recipe:cometchat-react-v7-core/references/theming.md. - Import order: import your overrides AFTER the UI Kit styles (import UI Kit CSS ONCE at root).