AI Integration Quick Reference
AI Integration Quick Reference
Color Categories
The palette is organized into these groups:Default Light Mode Palette
- Kotlin (XML Views)
- Jetpack Compose
Defined in
chatuikit-kotlin/src/main/res/values/color.xml:color.xml
Default Dark Mode Palette
- Kotlin (XML Views)
- Jetpack Compose
Defined in Android automatically uses
chatuikit-kotlin/src/main/res/values-night/color.xml. Note how neutral values are inverted:values-night/color.xml
values-night resources when the system is in dark mode.Override Colors
- Kotlin (XML Views)
- Jetpack Compose
Override via XML theme attributes in Or programmatically via
themes.xml:themes.xml
CometChatTheme:
Derived Colors
Background, stroke, text, and icon colors are derived from the neutral scale by default:
This means overriding a neutral color automatically updates all tokens that reference it.
Incoming Call Screen Colors
The incoming-call screen is drawn by the Push Notifications SDK, which cannot read the UI Kit theme when a call arrives with the app killed. It takes its colours from two places:- A theme passed in code.
CometChatTheme.getIncomingCallTheme(context)(XML Views) orincomingCallTheme(light, dark)(Compose) reads your UI Kit theme, light and dark, and your app passes it to the Push SDK withsetIncomingCallTheme. A palette changed in code, including at runtime, reaches the screen this way. See Styling the incoming-call screen. - Colour resources. These apply to any colour the theme doesn’t set. The UI Kit overrides six of them with its palette (background, text, secondary text, avatar, accept and decline); the other five keep the Push SDK’s defaults, which follow those six, so the values below hold for all of them. The UI Kit’s overrides take effect only when your app lists the UI Kit dependency before the Push SDK artifacts. Your app’s own
res/values/andres/values-night/overrides always win.
Strings, drawables and the layout can be overridden the same way; see Theming the SDK’s incoming-call screen.