Customize Colors with the Service Chat SDK
Customize the colors by defining the branding token colors used throughout the interface.
The legacy chat product is scheduled for retirement on February 14, 2026, and is in maintenance mode until then. During this phase, you can continue to use chat, but we no longer recommend that you implement new chat channels. To avoid service interruptions to your customers, migrate to Messaging for In-App and Web before that date. Messaging offers many of the chat features that you love plus asynchronous conversations that can be picked back up at any time. Learn about chat retirement in Help.
To customize colors, create an SCAppearanceConfiguration instance, specify values for each token you want to change, and store the instance in the appearanceConfiguration property of the ServiceCloud sharedInstance.
In Swift:
In Objective-C:
To support dark mode in iOS 13 and later, specify adaptive colors for each branding token. The following branding tokens are available for customization.
| Token Name / Swift Value / Objective-C Value | Default | Dark Mode Default | Description / Sample Uses |
|---|---|---|---|
Navigation Bar BackgroundnavbarBackgroundSCSAppearanceColorTokenNavbarBackground | #FAFAFA | #1A2129 | Background color for the navigation bar. |
Navigation Bar InvertednavbarInvertedSCSAppearanceColorTokenNavbarInverted | #010101 | #C6CBCF | Navigation bar text and icon color. |
Brand PrimarybrandPrimarySCSAppearanceColorTokenBrandPrimary | #007F7F | #00B4B4 | |
Brand SecondarybrandSecondarySCSAppearanceColorTokenBrandSecondary | #2872CC | #0070D2 | Used throughout the UI for button colors. Chat: Agent text bubbles. |
Primary Brand InvertedbrandPrimaryInvertedSCSAppearanceColorTokenBrandPrimaryInverted | #FBFBFB | #FBFBFB | |
Secondary Brand InvertedbrandSecondaryInvertedSCSAppearanceColorTokenBrandSecondaryInverted | #FCFCFC | #F7F7F7 | Text on areas where a brand color is used for the background. |
Contrast PrimarycontrastPrimarySCSAppearanceColorTokenContrastPrimary | #000000 | #E2E4E6 | Primary body text color. |
Contrast SecondarycontrastSecondarySCSAppearanceColorTokenContrastSecondary | #6D6D6D | #898D92 | |
Contrast TertiarycontrastTertiarySCSAppearanceColorTokenContrastTertiary | #BABABA | #A0A6AD | |
Contrast QuaternarycontrastQuaternarySCSAppearanceColorTokenContrastQuaternary | #F1F1F1 | #09121B | Chat: Background color. |
Contrast InvertedcontrastInvertedSCSAppearanceColorTokenContrastInverted | #FFFFFF | #323232 | Page background, navigation bar, table cell background. |
Feedback PrimaryfeedbackPrimarySCSAppearanceColorTokenFeedbackPrimary | #E74C3C | #E0A7A9 | Text color for error messages. |
Feedback SecondaryfeedbackSecondarySCSAppearanceColorTokenFeedbackSecondary | #2ECC71 | #9ACDB7 | |
Feedback TertiaryfeedbackTertiarySCSAppearanceColorTokenFeedbackTertiary | #F5A623 | #FADBAE | |
OverlayoverlaySCSAppearanceColorTokenOverlay | Contrast Primary (at 40% alpha) | #323232 |
These screenshots illustrate how the branding tokens affect the UI.
Chat UI Branding:

The following code sample changes three of the branding tokens.
In Swift:
In Objective-C:
For an example of how to specify adaptive colors that work with the dark mode feature that was introduced in iOS 13, see Handling Dark Mode for iOS 13 with the Service SDK.