Customize Colors with the

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.

Important

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:

1// Create appearance configuration instance
2let appearance = SCAppearanceConfiguration()
3        
4// Customize color tokens
5appearance.setColor(COLOR_VALUE, forName: TOKEN_NAME)
6        
7// Add other customizations here...
8        
9// Save configuration instance
10ServiceCloud.shared().appearanceConfiguration = appearance

In Objective-C:

1// Create appearance configuration instance
2SCAppearanceConfiguration *appearance = [SCAppearanceConfiguration new];
3
4// Customize color tokens
5[appearance setColor:COLOR_VALUE forName:TOKEN_NAME];
6
7// Add other customizations here...
8
9// Save configuration instance
10[SCServiceCloud sharedInstance].appearanceConfiguration = appearance;

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 Background

navbarBackground

SCSAppearanceColorTokenNavbarBackground

#FAFAFA

Navigation bar background

#1A2129

Navigation bar background dark

Background color for the navigation bar.

Navigation Bar Inverted

navbarInverted

SCSAppearanceColorTokenNavbarInverted

#010101

Navigation bar inverted

#C6CBCF

Navigation bar inverted dark

Navigation bar text and icon color.

Brand Primary

brandPrimary

SCSAppearanceColorTokenBrandPrimary

#007F7F

Brand primary

#00B4B4

Brand primary dark

Brand Secondary

brandSecondary

SCSAppearanceColorTokenBrandSecondary

#2872CC

Brand secondary

#0070D2

Brand secondary dark

Used throughout the UI for button colors.

Chat: Agent text bubbles.

Primary Brand Inverted

brandPrimaryInverted

SCSAppearanceColorTokenBrandPrimaryInverted

#FBFBFB

Primary inverted

#FBFBFB

Primary inverted dark

Secondary Brand Inverted

brandSecondaryInverted

SCSAppearanceColorTokenBrandSecondaryInverted

#FCFCFC

Secondary inverted

#F7F7F7

Secondary inverted dark

Text on areas where a brand color is used for the background.

Contrast Primary

contrastPrimary

SCSAppearanceColorTokenContrastPrimary

#000000

Contrast primary

#E2E4E6

Contrast primary dark

Primary body text color.

Contrast Secondary

contrastSecondary

SCSAppearanceColorTokenContrastSecondary

#6D6D6D

Contrast secondary

#898D92

Contrast secondary dark

Contrast Tertiary

contrastTertiary

SCSAppearanceColorTokenContrastTertiary

#BABABA

Contrast tertiary

#A0A6AD

Contrast tertiary dark

Contrast Quaternary

contrastQuaternary

SCSAppearanceColorTokenContrastQuaternary

#F1F1F1

Contrast quaternary

#09121B

Contrast quaternary dark

Chat: Background color.

Contrast Inverted

contrastInverted

SCSAppearanceColorTokenContrastInverted

#FFFFFF

Contrast inverted

#323232

Contrast inverted dark

Page background, navigation bar, table cell background.

Feedback Primary

feedbackPrimary

SCSAppearanceColorTokenFeedbackPrimary

#E74C3C

Feedback primary

#E0A7A9

Feedback primary dark

Text color for error messages.

Feedback Secondary

feedbackSecondary

SCSAppearanceColorTokenFeedbackSecondary

#2ECC71

Feedback secondary

#9ACDB7

Feedback secondary dark

Feedback Tertiary

feedbackTertiary

SCSAppearanceColorTokenFeedbackTertiary

#F5A623

Feedback tertiary

#FADBAE

Feedback tertiary dark

Overlay

overlay

SCSAppearanceColorTokenOverlay

Contrast Primary

(at 40% alpha)

#323232

Contrast inverted dark

These screenshots illustrate how the branding tokens affect the UI.

Chat UI Branding:

Chat color branding

Example

The following code sample changes three of the branding tokens.

In Swift:

1// Create appearance configuration instance
2let appearance = SCAppearanceConfiguration()
3   
4// Customize color tokens
5appearance.setColor(
6       UIColor(red: 80/255, green: 227/255, blue: 194/255, alpha: 1.0), 
7       forName: .brandPrimary)
8appearance.setColor(
9       UIColor(red: 74/255, green: 144/255, blue: 226/255, alpha: 1.0), 
10       forName: .brandSecondary)
11appearance.setColor(
12       UIColor(red: 252/255, green: 252/255, blue: 252/255, alpha: 1.0), 
13       forName: .brandSecondaryInverted)
14   
15// Save configuration instance
16ServiceCloud.shared().appearanceConfiguration = appearance

In Objective-C:

1// Create appearance configuration instance
2SCAppearanceConfiguration *appearance = [SCAppearanceConfiguration new];
3    
4// Customize color tokens
5[appearance setColor:[UIColor colorWithRed: 80/255 
6                                     green: 227/255 
7                                      blue: 194/255 
8                                     alpha: 1.0]
9             forName:SCSAppearanceColorTokenBrandPrimary];
10[appearance setColor:[UIColor colorWithRed: 74/255 
11                                     green: 144/255 
12                                      blue: 226/255 
13                                     alpha: 1.0]
14             forName:SCSAppearanceColorTokenBrandSecondary];
15[appearance setColor:[UIColor colorWithRed: 252/255 
16                                     green: 252/255 
17                                      blue: 252/255 
18                                     alpha: 1.0]
19             forName:SCSAppearanceColorTokenBrandSecondaryInverted];
20    
21// Save configuration instance
22[SCServiceCloud sharedInstance].appearanceConfiguration = appearance;

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.