You can override the Chat and Knowledge Base UI colors with an asset catalog or override the UI colors programmatically in the SDK.
To override colors with an asset catalog in Xcode:
- Create a new color set in your
- Name the color set
<colorName>with the UI color name listed in our
For example, you would use
KustomerColor.activeLinkColor as the color set name for the active link color (
Additional Xcode color assets resources
View Manage Colors with an Asset Catalog from NSHipster to learn how to create and manage color sets in Xcode.
You can also override colors programmatically in your code before you initialize the SDK with
If you set a color in your code after your initialize the SDK with
Kustomer.configure(...), the chat UI won't reflect the color override.
// Overrides and sets the Kustomer Chat UI chat history header background color to systemBlue // Always include color overrides before you inisitalize the SDK KustomerUI.Color.historyHeaderBackground = UIColor.systemBlue
For a full list of available Kustomer Chat UI color names, see the
Updated 7 months ago