Skip to main content
The UI Kit supports multiple approaches to styling depending on your module.

Styling Approaches

Two ways to style components:
  1. XML theme attributes — declarative, app-wide theming via themes.xml
  2. Programmatic CometChatTheme setters — runtime color/font overrides
Programmatic setters take precedence over XML theme attributes.

XML Theme Hierarchy

themes.xml

Programmatic Overrides


Font Customization

Override fonts at the theme level:
themes.xml

CometChatTheme Color Tokens

These tokens are available for programmatic override (Kotlin XML) or via CometChatColorScheme (Compose):

Colors

Icon Tints

Button Colors


Per-Component Style Properties

Each component has its own style data class with nested sub-component styles. Here’s the pattern for key components:

CometChatConversations

CometChatMessageList

CometChatMessageComposer

CometChatMessageHeader