Skip to main content
The UI Kit ships with a complete color palette for light and dark modes. This page documents the default values and how to override them.

Color Categories

The palette is organized into these groups:

Default Light Mode Palette

Defined in chatuikit-kotlin/src/main/res/values/color.xml:
color.xml

Default Dark Mode Palette

Defined in chatuikit-kotlin/src/main/res/values-night/color.xml. Note how neutral values are inverted:
values-night/color.xml
Android automatically uses values-night resources when the system is in dark mode.

Override Colors

Override via XML theme attributes in themes.xml:
themes.xml
Or programmatically via 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) or incomingCallTheme(light, dark) (Compose) reads your UI Kit theme, light and dark, and your app passes it to the Push SDK with setIncomingCallTheme. 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/ and res/values-night/ overrides always win.
Strings, drawables and the layout can be overridden the same way; see Theming the SDK’s incoming-call screen.