/ UIKit / Android View
UIKit
Chat UIKit Android View v3
Chat UIKit Android View
Chat UIKit
Android View
Version 3

Color resource

Copy link

The color resource manages a set of colors provided by UIKit for Android. These colors are used in UIKit views and include background and main colors.


Primary

Copy link

Primary color is the color displayed most frequently across your app's screens and components. It is not just a stylistic choice but a strategic tool for enhancing user experience, ensuring accessibility, and strengthening brand identity.

This image shows how primary colors are applied to various UI components like buttons and message bubbles.

Primary color variants

Copy link

Your primary color can have different shades to create a comprehensive color theme for your app. This includes darker and lighter versions of the primary color, allowing for a more flexible and cohesive design across various UI components.

This image displays the gradient of primary colors from dark to light.

Primary-main

Copy link

Used for elements like header buttons, outgoing message bubbles, spinners, and more in the light theme.

Primary-light

Copy link

Used for pressed state of buttons and outgoing message bubble in the dark theme, such as the header button, outgoing message bubble, spinner and more.

Primary-dark

Copy link

Used for pressed state of buttons and message bubbles in the light theme.

Primary-extra dark

Copy link

Used for selected state of reactions elements in the dark theme.

Primary-extra light

Copy link

Used for selected state of reactions elements in the light theme.


Secondary

Copy link

Secondary color provides more ways to accent and distinguish your product. Having a secondary color is optional, and should be applied sparingly to accent select parts of your UI.

Secondary color variants

Copy link

Just like the primary color, your secondary color can have dark and light variants. A color theme can use your primary color, secondary color, and dark and light variants of each color.

This image displays the gradient of secondary colors from dark to light.

Secondary-main

Copy link

Used for read receipt icons, broadcast icons, confirmations icons and more in the light theme.

Secondary-light

Copy link

Used for read receipt icons, broadcast icons, confirmations icons and more in the dark theme.


Typically, error colors do not represent the brand. Instead, they are used to highlight actions that users need to be cautious about, such as Delete or Leave functionalities, or to indicate important information like badges showing the number of unread messages.

Error color variants

Copy link

Your error color can also have different shades to create a comprehensive color theme for your app, including darker and lighter versions of the error-main color.

This image displays the gradient of error colors from dark to light.

Error-main

Copy link

Used for actions like Delete and Leave, and badges indicating the number of unread messages in the light theme.

Error-light

Copy link

Used for actions like Delete and Leave, and badges indicating the number of unread messages in the dark theme.


Information

Copy link

The information color is used to indicate important information, such as a status banner indicating frozen channels.

Information color variants

Copy link

Your information color can also have different shades to create a comprehensive color theme for your app, including darker and lighter versions of the information-main color.

Information-extra light

Copy link

Used for informational top banners to represent information such as the frozen status in the light theme.


Customize colors

Copy link

While the UIKit provides a default color set, you can customize them by changing the UIKit-defined values in the res/colors.xml file, which consists of the following xml elements.

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <color name="primary_500">#491389</color>
    <color name="primary_400">#6211c8</color>
    <color name="primary_300">#742ddd</color>
    <color name="primary_200">#c2a9fa</color>
    <color name="primary_100">#dbd1ff</color>
    <color name="secondary_500">#066858</color>
    <color name="secondary_400">#027d69</color>
    <color name="secondary_300">#259c72</color>
    <color name="secondary_200">#69c085</color>
    <color name="secondary_100">#a8e2ab</color>
    <color name="error_500">#9d091e</color>
    <color name="error_400">#bf0711</color>
    <color name="error_300">#de360b</color>
    <color name="error_200">#f66161</color>
    <color name="error_100">#fdaaaa</color>
    <color name="background_700">#000000</color>
    <color name="background_600">#161616</color>
    <color name="background_500">#2c2c2c</color>
    <color name="background_400">#393939</color>
    <color name="background_300">#bdbdbd</color>
    <color name="background_200">#e0e0e0</color>
    <color name="background_100">#eeeeee</color>
    <color name="background_50">#ffffff</color>
    <color name="overlay_01">#8c000000</color>
    <color name="overlay_02">#51000000</color>
    <color name="onlight_01">#e1000000</color>
    <color name="onlight_02">#80000000</color>
    <color name="onlight_03">#61000000</color>
    <color name="onlight_04">#1e000000</color>
    <color name="ondark_01">#e1ffffff</color>
    <color name="ondark_02">#80ffffff</color>
    <color name="ondark_03">#61ffffff</color>
    <color name="ondark_04">#1effffff</color>
    <color name="information">#adc9ff</color>
</resources>

For an in-depth practical demonstration, see our sample code.