Skip to main content
FieldValue
ClassCometChatColorPalette
UsageThemeData(extensions: [CometChatColorPalette(...)])
CategoriesPrimary, Neutral, Alert, Text, Icon, Border, Background, Button, Shimmer
Light modeUse light color values
Dark modeUse dark color values
SourceGitHub
CometChatColorPalette controls all colors in the UI Kit. Apply it via ThemeData.extensions.

Complete Token Reference

Primary Colors

TokenDescription
primaryMain accent color
extendedPrimary5096% lighter (light) / 80% darker (dark)
extendedPrimary10088% lighter (light) / 72% darker (dark)
extendedPrimary20077% lighter (light) / 64% darker (dark)
extendedPrimary30066% lighter (light) / 56% darker (dark)
extendedPrimary40055% lighter (light) / 48% darker (dark)
extendedPrimary50044% lighter (light) / 40% darker (dark)
extendedPrimary60033% lighter (light) / 32% darker (dark)
extendedPrimary70022% lighter (light) / 24% darker (dark)
extendedPrimary80011% lighter (light) / 16% darker (dark)
extendedPrimary90011% lighter (light) / 8% darker (dark)

Neutral Colors

TokenDescription
neutral50 - neutral900Surface and background shades (50, 100, 200, 300, 400, 500, 600, 700, 800, 900)

Alert Colors

TokenDescription
infoInformation indicator
warningWarning indicator
errorError indicator
successSuccess indicator
error100Light/dark mode error shade

Text Colors

TokenDescription
textPrimaryPrimary text
textSecondarySecondary text
textTertiaryTertiary text
textDisabledDisabled text
textWhiteWhite text
textHighlightHighlighted text

Icon Colors

TokenDescription
iconPrimaryPrimary icon
iconSecondarySecondary icon
iconTertiaryTertiary icon
iconWhiteWhite icon
iconHighlightHighlighted icon

Border Colors

TokenDescription
borderLightLight border
borderDefaultDefault border
borderDarkDark border
borderHighlightHighlighted border

Background Colors

TokenDescription
background1Primary background
background2Secondary background
background3Tertiary background
background4Quaternary background

Button Colors

TokenDescription
buttonBackgroundPrimary button background
secondaryButtonBackgroundSecondary button background
buttonIconColorPrimary button icon
buttonTextPrimary button text
secondaryButtonIconSecondary button icon
secondaryButtonTextSecondary button text

Other

TokenDescription
shimmerBackgroundShimmer effect background
shimmerGradientShimmer effect gradient
messageSeenRead receipt indicator
whiteWhite color
blackBlack color
transparentTransparent color

Light Mode

ThemeData(
  extensions: [
    CometChatColorPalette(
      primary: Color(0xFF6852D6),
      textPrimary: Color(0xFF141414),
      textSecondary: Color(0xFF727272),
      background1: Color(0xFFFFFFFF),
      borderLight: Color(0xFFF5F5F5),
      borderDark: Color(0xFFDCDCDC),
      iconSecondary: Color(0xFFA1A1A1),
      iconHighlight: Color(0xFF6852D6),
      success: Color(0xFF09C26F),
      warning: Color(0xFFFAAB00),
      extendedPrimary500: Color(0xFFAA9EE8),
      messageSeen: Color(0xFF56E8A7),
      neutral300: Color(0xFFE8E8E8),
      neutral600: Color(0xFF727272),
      neutral900: Color(0xFF141414),
    ),
  ],
)

Dark Mode

ThemeData(
  extensions: [
    CometChatColorPalette(
      primary: Color(0xFF6852D6),
      textPrimary: Color(0xFFFFFFFF),
      textSecondary: Color(0xFF989898),
      background1: Color(0xFF1A1A1A),
      borderLight: Color(0xFF272727),
      iconSecondary: Color(0xFF858585),
      iconHighlight: Color(0xFF6852D6),
      success: Color(0xFF0B9F5D),
      warning: Color(0xFFD08D04),
      extendedPrimary500: Color(0xFF3E3180),
      messageSeen: Color(0xFF56E8A7),
      neutral300: Color(0xFF383838),
      neutral600: Color(0xFF989898),
      neutral900: Color(0xFFFFFFFF),
    ),
  ],
)

Custom Brand Colors

ThemeData(
  extensions: [
    CometChatColorPalette(
      primary: Color(0xFFF76808),
      iconHighlight: Color(0xFFF76808),
      extendedPrimary500: Color(0xFFFBAA75),
      textPrimary: Color(0xFF141414),
      textSecondary: Color(0xFF727272),
      background1: Color(0xFFFFFFFF),
      borderLight: Color(0xFFF5F5F5),
      borderDark: Color(0xFFDCDCDC),
      success: Color(0xFF09C26F),
      warning: Color(0xFFFAAB00),
      messageSeen: Color(0xFF56E8A7),
      neutral300: Color(0xFFE8E8E8),
      neutral600: Color(0xFF727272),
      neutral900: Color(0xFF141414),
    ),
  ],
)