Skip to main content
FieldValue
Kotlin XML ViewsColors defined in res/values/color.xml (light) and res/values-night/color.xml (dark), overridable via theme attributes or CometChatTheme.set*()
Jetpack ComposeColors provided via lightColorScheme() and darkColorScheme() factory functions, customizable via .copy()
Key tokensprimary, backgroundColor1–4, textColorPrimary/Secondary/Tertiary, strokeColorDefault/Light/Dark, successColor, errorColor, warningColor, infoColor
RelatedTheme Introduction · Component Styling
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:
CategoryTokensPurpose
PrimaryprimaryBrand color for buttons, highlights, interactive elements
Neutralneutral50neutral900Grayscale ramp for backgrounds, text, borders
Alertsuccess, error, warning, info, messageReadStatus indicators
BackgroundbackgroundColor1backgroundColor4Surface/panel backgrounds (derived from neutrals)
StrokestrokeColorDefault, strokeColorLight, strokeColorDark, strokeColorHighlightBorders and dividers
TexttextColorPrimary, textColorSecondary, textColorTertiary, textColorDisabled, textColorWhite, textColorHighlightTypography colors
IconiconTintPrimary, iconTintSecondary, iconTintTertiary, iconTintWhite, iconTintHighlightIcon tints
ButtonprimaryButtonBackground, primaryButtonText, secondaryButtonBackground, secondaryButtonTextButton colors

Default Light Mode Palette

Defined in chatuikit-kotlin/src/main/res/values/color.xml:
color.xml
<!-- Primary -->
<color name="cometchat_color_primary">#6852D6</color>

<!-- Neutral -->
<color name="cometchat_color_neutral_50">#FFFFFF</color>
<color name="cometchat_color_neutral_100">#FAFAFA</color>
<color name="cometchat_color_neutral_200">#F5F5F5</color>
<color name="cometchat_color_neutral_300">#E8E8E8</color>
<color name="cometchat_color_neutral_400">#DCDCDC</color>
<color name="cometchat_color_neutral_500">#A1A1A1</color>
<color name="cometchat_color_neutral_600">#727272</color>
<color name="cometchat_color_neutral_700">#5B5B5B</color>
<color name="cometchat_color_neutral_800">#434343</color>
<color name="cometchat_color_neutral_900">#141414</color>

<!-- Alert -->
<color name="cometchat_color_info">#0B7BEA</color>
<color name="cometchat_color_success">#09C26F</color>
<color name="cometchat_color_warning">#FFAB00</color>
<color name="cometchat_color_error">#F44649</color>
<color name="cometchat_color_message_read">#56E8A7</color>

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
<!-- Primary -->
<color name="cometchat_color_primary">#6852D6</color>

<!-- Neutral (inverted for dark mode) -->
<color name="cometchat_color_neutral_50">#141414</color>
<color name="cometchat_color_neutral_100">#1A1A1A</color>
<color name="cometchat_color_neutral_200">#272727</color>
<color name="cometchat_color_neutral_300">#383838</color>
<color name="cometchat_color_neutral_400">#4C4C4C</color>
<color name="cometchat_color_neutral_500">#858585</color>
<color name="cometchat_color_neutral_600">#989898</color>
<color name="cometchat_color_neutral_700">#A8A8A8</color>
<color name="cometchat_color_neutral_800">#C8C8C8</color>
<color name="cometchat_color_neutral_900">#FFFFFF</color>

<!-- Alert -->
<color name="cometchat_color_info">#0D66BF</color>
<color name="cometchat_color_success">#0B9F5D</color>
<color name="cometchat_color_warning">#D08D04</color>
<color name="cometchat_color_error">#C73C3E</color>
<color name="cometchat_color_message_read">#56E8A7</color>
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
<style name="AppTheme" parent="CometChatTheme.DayNight">
    <item name="cometchatPrimaryColor">#F76808</item>
    <item name="cometchatBackgroundColor1">#FFFFFF</item>
    <item name="cometchatTextColorPrimary">#000000</item>
    <item name="cometchatStrokeColorDefault">#E0E0E0</item>
</style>
Or programmatically via CometChatTheme:
CometChatTheme.setPrimaryColor(Color.parseColor("#F76808"))
CometChatTheme.setBackgroundColor1(Color.parseColor("#FFFFFF"))
CometChatTheme.setTextColorPrimary(Color.parseColor("#000000"))
CometChatTheme.setStrokeColorDefault(Color.parseColor("#E0E0E0"))

Derived Colors

Background, stroke, text, and icon colors are derived from the neutral scale by default:
TokenLight Mode DefaultDark Mode Default
backgroundColor1neutral50 (#FFFFFF)neutral50 (#141414)
backgroundColor2neutral100 (#FAFAFA)neutral100 (#1A1A1A)
textColorPrimaryneutral900 (#141414)neutral900 (#FFFFFF)
textColorSecondaryneutral600 (#727272)neutral600 (#989898)
strokeColorDefaultneutral200 (#F5F5F5)neutral200 (#272727)
strokeColorLightneutral300 (#E8E8E8)neutral300 (#383838)
iconTintPrimaryneutral900 (#141414)neutral900 (#FFFFFF)
iconTintHighlightprimary (#6852D6)primary (#6852D6)
This means overriding a neutral color automatically updates all tokens that reference it.