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

Color resources

Copy link

UIKit uses the Block, Element, Modifier methodology (BEM), which is a standard naming convention for classes in Cascading Style Sheets (CSS). Components can be customized by overwriting the applicable resources file in the UIKit's stylesheet.

You can use a colorSet prop of the App or SendbirdProvider component to determine the color set of UIKit. You need to put a string of objects to this prop. Refer to the list of color set here.

const myColorSet = {
    '--sendbird-light-primary-500': '#00487c',
    '--sendbird-light-primary-400': '#4bb3fd',
    '--sendbird-light-primary-300': '#3e6680',
    '--sendbird-light-primary-200': '#0496ff',
    '--sendbird-light-primary-100': '#027bce',
};
const MyApp = () => {
    return (
        <SendbirdProvider
            colorSet={myColorSet}
        >
            <ChannelList />
            <Channel />
            ...
        </SendbirdProvider>
    );
};

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.