Overview
Theming in CometChat allows you to create visually consistent and customizable user interfaces that align with your application’s branding. With theCometChatTheme.DayNight
style which is built on Theme.MaterialComponents.DayNight.NoActionBar
and acts as a global theme applied across all components, you can seamlessly integrate light and dark modes, define custom colors, typography, and component-specific styles, and enhance user experience across all CometChat components.
Using Theming in Your Project
Set theCometChatTheme.DayNight
as the parent theme for your application in the themes.xml
file. You can extend it with your custom theme as needed:

Customization
To customize the primary color in your app, you can override the cometchatPrimaryColor attribute in your theme. Here’s how: