Color resources
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.
Primary
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
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
Used for elements like header buttons, outgoing message bubbles, spinners, and more in the light
theme.
Primary-light
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
Used for pressed state of buttons and message bubbles in the light
theme.
Primary-extra dark
Used for selected state of reactions elements in the dark
theme.
Primary-extra light
Used for selected state of reactions elements in the light
theme.
Secondary
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
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
Used for read receipt icons, broadcast icons, confirmations icons and more in the light
theme.
Secondary-light
Used for read receipt icons, broadcast icons, confirmations icons and more in the dark
theme.
Error
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
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
Used for actions like Delete
and Leave
, and badges indicating the number of unread messages in the light
theme.
Error-light
Used for actions like Delete
and Leave
, and badges indicating the number of unread messages in the dark
theme.
Information
The information color is used to indicate important information, such as a status banner indicating frozen channels.
Information color variants
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
Used for informational top banners to represent information such as the frozen status in the light
theme.