Chat UIKit React v3
Chat UIKit React
Chat UIKit
React
Version 3

Apply brand color

Copy link

Using the Sendbird UIKit for React, you can customize the appearance of your application by applying your brand color to the UIKit components. This feature allows you to align the user interface with your brand's color scheme, ensuring a consistent and visually cohesive experience for users.


Before you start

Copy link

You'll need to have completed the following set up: Getting Started.

Alternatively, you can use the starter code from this GitHub repository. The starter code located in the apply-brand-color/before folder contains the basic setup for the UIKit components.

Once you've completed the set up, your app should look like the image shown below.


How to customize

Copy link

Step 1 Determine colors to use

Copy link

We have five colors for primary usage, ranging from primary100 to primary500.

Use a gradient of colors for a smooth transition in your designs. Primary100 is the lightest color, ideal for backgrounds, while Primary500 is the darkest color, perfect for text and important elements due to its visibility. Primary300 is typically used as the main color due to its balanced intensity.

If you only have one primary color, you can generate variations of this primary color using online tools, which can be found by searching for "color shade generator." This allows you to expand your color palette while maintaining brand consistency.

The following is an example of a color palette that you can use for your application. You can replace the hex codes with your brand colors.

Property nameHex codeSuggested usage

primary_100

#a8e2ab

Backgrounds (lightest shade)

primary_200

#69c085

Background highlights

primary_300

#259c72

Primary usage (mid-tone shade)

primary_400

#027d69

Secondary elements

primary_500

#066858

Text, important elements (darkest shade)

Step 2 Change the property

Copy link

You can update the App.tsx or App.jsx file to change the colors of the UIKit components.

const App = () => {
    const colorSet = {
        '--sendbird-light-primary-500': '#066858',
        '--sendbird-light-primary-400': '#027d69',
        '--sendbird-light-primary-300': '#259c72',
        '--sendbird-light-primary-200': '#69c085',
        '--sendbird-light-primary-100': '#a8e2ab',
    }

    return (
        <div className="App">
            <SendbirdApp
                appId={"YOUR_SENDBIRD_APPLICATION_ID"}
                userId={"YOUR_USER_ID"}
                colorSet={colorSet}
            />
        </div>
    );
};

Step 3 Relaunch the App

Copy link

Congratulations! You have successfully applied your brand color to the UIKit components.

To learn more about UIKit color customization, see Color resources.


What's next?

Copy link

Stay tuned for our next tutorial, where we will guide you through the process of integrating UIKit into your existing app.