Skip to main content
CometChatTheme class is made up of two primary components such as:
  1. Palette
  2. Typography

Palette

CometChatUIKit’s palette is a predefined set of colors to provide a consistent and unified color scheme that can be used across various elements and components. It supports 2 specific color schemes i.e. light and dark CometChatUIKit’s palette primarily consists of four colors. It includes the background color, primary color, error color, accent color, and its variations of shades and tints.

Typography

CometChatUIKit’s typography encompasses the font family, font size and other typographic elements. All fonts used in UI Kit are pre-configured with the below values, but you can also customize it.

Usage

Step1: Provide theme to App
Step2: Injecting and using the Theme within the component
App level providers to make it available in the entire application Component level providers to make it available in child components
Theme can also be provided within a component but this will only be available to be injected in the child components