Skip to main content

Introducing CometChatColorPalette

The CometChatColorPalette class allows you to customize the colors used throughout your app. It works the same way in V6 as in V5 — you assign it to the extensions property of your ThemeData. Here’s what you can customize:
  • Primary Colors — Main color scheme of your app
  • Neutral Colors — Balanced base for visuals
  • Alert Colors — Informative, warning, success, and error messages
  • Background Colors — Background shades for different areas
  • Text Colors — Text element colors for readability
  • Border Colors — Borders for buttons and cards
  • Icon Colors — App icon colors
  • Button Colors — Button background and text colors
  • Shimmer Colors — Loading animation colors

Light Mode

Dark Mode

Custom Colors

Ring Screen Colors

On Android, the incoming call ring screen is drawn by cometchat_voip, not by the UI Kit, and can appear while your app isn’t running. Your ThemeData doesn’t reach it on its own. CometChatIncomingCallTheme.from reads your palette, light and dark, and your app passes it to cometchat_voip; see Styling the ring screen. Each ring screen colour comes from one palette colour. When your palette leaves a colour out, the UI Kit’s default is used: On iOS, CallKit draws the call, and these colours don’t apply.