Skip to main content
FieldValue
GoalCustomize UI Kit appearance (colors, fonts, spacing) via Flutter ThemeExtensions
WhereThemeData.extensions in MaterialApp
ColorCometChatColorPalette — primary, neutral, alert, text, icon, background colors
TypographyCometChatTypography — font sizes, weights, text styles
SpacingCometChatSpacing — padding, margin, border radius
Dark modeUse separate CometChatColorPalette for dark theme
SourceGitHub
Theming controls the look and feel of the chat UI — colors, fonts, and spacing — through Flutter’s ThemeExtension system.

Core Components

ComponentClassPurpose
ColorCometChatColorPalettePrimary, neutral, alert, text, icon, background colors
TypographyCometChatTypographyFont sizes, weights, text styles
SpacingCometChatSpacingPadding, margin, border radius

Typography Tokens

TokenPurpose
heading1 - heading4Heading text styles
bodyBody text
caption1, caption2Caption text
buttonButton text
linkLink text
titleTitle text

Spacing Tokens

TokenDefault Value
spacing - spacing202px - 80px (increments of 4)
padding - padding10Derived from spacing
margin - margin20Derived from spacing
radius - radius6, radiusMaxBorder radius values

Basic Usage

Override theme properties in your MaterialApp:
main.dart

Light and Dark Themes


Custom Brand Colors


Next Steps

Color Resources

Full list of color tokens

Component Styling

Style individual components

Message Bubbles

Customize message bubbles

Localization

Multi-language support