> ## Documentation Index
> Fetch the complete documentation index at: https://cometchat-22654f5b-docs-rn-guide-message-privately.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Component Styling

> Style individual CometChat Flutter UI Kit components using ThemeExtensions.

<Accordion title="AI Agent Component Spec">
  | Field           | Value                                                                                         |
  | --------------- | --------------------------------------------------------------------------------------------- |
  | Method          | Add component style classes to `ThemeData.extensions`                                         |
  | Components      | Conversations, MessageList, MessageComposer, MessageHeader, Users, Groups, GroupMembers       |
  | Base components | Avatar, Badge, StatusIndicator, Receipts, Reactions, ReactionList, MediaRecorder              |
  | AI components   | ConversationStarter, ConversationSummary, SmartReplies, AIOptionSheet, AIAssistantChatHistory |
  | Option sheets   | MessageOptionSheet, AttachmentOptionSheet, AIOptionSheet                                      |
  | Pattern         | `CometChat<Component>Style` classes                                                           |
  | Source          | [GitHub](https://github.com/cometchat/cometchat-uikit-flutter/tree/v5/chat_uikit)             |
</Accordion>

Style individual components by adding their style classes to `ThemeData.extensions`.

***

## Main Components

### Conversations

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/mNTojjz_O28of40c/images/f8b72fe1-conversation_styling-bd60245f0728731e74244ea8675b582d.png?fit=max&auto=format&n=mNTojjz_O28of40c&q=85&s=aa89c9e16ed73b12590593bca3fd41a4" width="2560" height="1600" data-path="images/f8b72fe1-conversation_styling-bd60245f0728731e74244ea8675b582d.png" />
</Frame>

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    ThemeData(
      extensions: [
        CometChatConversationsStyle(
          avatarStyle: CometChatAvatarStyle(
            borderRadius: BorderRadius.circular(8),
            backgroundColor: Color(0xFFFBAA75),
          ),
          badgeStyle: CometChatBadgeStyle(
            backgroundColor: Color(0xFFF76808),
          ),
        ),
      ],
    )
    ```
  </Tab>
</Tabs>

### Message List

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/k0f_g7UwNe_JINeP/images/43be6937-message_list_styling-87dfbbb28ddf18e45d5281c3f23d3722.png?fit=max&auto=format&n=k0f_g7UwNe_JINeP&q=85&s=f64b18dfad98d4ea157b23b0bb886bbf" width="2560" height="1600" data-path="images/43be6937-message_list_styling-87dfbbb28ddf18e45d5281c3f23d3722.png" />
</Frame>

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    ThemeData(
      extensions: [
        CometChatMessageListStyle(
          backgroundColor: Color(0xFFFEEDE1),
          outgoingMessageBubbleStyle: CometChatOutgoingMessageBubbleStyle(
            backgroundColor: Color(0xFFF76808),
          ),
        ),
      ],
    )
    ```
  </Tab>
</Tabs>

### Message Composer

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/7a4hqm7gLVRmX34O/images/043969b6-message_composer_styling-7a7256fcf47f1835a442e450f03503fe.png?fit=max&auto=format&n=7a4hqm7gLVRmX34O&q=85&s=6a7c1a7845fb2eca3370e1a8ff4e697f" width="2560" height="464" data-path="images/043969b6-message_composer_styling-7a7256fcf47f1835a442e450f03503fe.png" />
</Frame>

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    ThemeData(
      extensions: [
        CometChatMessageComposerStyle(
          sendButtonIconBackgroundColor: Color(0xFFF76808),
          secondaryButtonIconColor: Color(0xFFF76808),
          auxiliaryButtonIconColor: Color(0xFFF76808),
        ),
      ],
    )
    ```
  </Tab>
</Tabs>

### Message Header

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/PaxBG9I1yMoeQmt2/images/35210220-message_header_styling-cff387a0c5c3d3138ef3e55a57f82de1.png?fit=max&auto=format&n=PaxBG9I1yMoeQmt2&q=85&s=8c8a2fd2c66a043cec8422d604e828a6" width="2560" height="480" data-path="images/35210220-message_header_styling-cff387a0c5c3d3138ef3e55a57f82de1.png" />
</Frame>

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    ThemeData(
      extensions: [
        CometChatMessageHeaderStyle(
          avatarStyle: CometChatAvatarStyle(
            backgroundColor: Color(0xFFFBAA75),
            borderRadius: BorderRadius.circular(6.67),
          ),
          callButtonsStyle: CometChatCallButtonsStyle(
            voiceCallIconColor: Color(0xFFF76808),
            videoCallIconColor: Color(0xFFF76808),
          ),
        ),
      ],
    )
    ```
  </Tab>
</Tabs>

### Users

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/ugckbRl5Q-H7t8X2/images/e52ab7f6-users_styling-eb50f461911a21f33a5e96e90751deda.png?fit=max&auto=format&n=ugckbRl5Q-H7t8X2&q=85&s=6bb8d1af18c80d21e85190935821e570" width="2560" height="1600" data-path="images/e52ab7f6-users_styling-eb50f461911a21f33a5e96e90751deda.png" />
</Frame>

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    ThemeData(
      extensions: [
        CometChatUsersStyle(
          avatarStyle: CometChatAvatarStyle(
            borderRadius: BorderRadius.circular(8),
            backgroundColor: Color(0xFFFBAA75),
          ),
          titleTextColor: Color(0xFFF76808),
          separatorColor: Color(0xFFF76808),
          backgroundColor: Color(0xFFFFF9F5),
        ),
      ],
    )
    ```
  </Tab>
</Tabs>

### Groups

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/FGBCGWXGo5d9bVxR/images/c43fe4f4-groups_styling-107ad9e9a3daa796d657515d719c04f6.png?fit=max&auto=format&n=FGBCGWXGo5d9bVxR&q=85&s=189d45b8fd4f19fb3adb5066f1d12546" width="2560" height="1600" data-path="images/c43fe4f4-groups_styling-107ad9e9a3daa796d657515d719c04f6.png" />
</Frame>

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    ThemeData(
      extensions: [
        CometChatGroupsStyle(
          avatarStyle: CometChatAvatarStyle(
            borderRadius: BorderRadius.circular(8),
            backgroundColor: Color(0xFFFBAA75),
          ),
          titleTextColor: Color(0xFFF76808),
          separatorColor: Color(0xFFF76808),
          backgroundColor: Color(0xFFFFF9F5),
        ),
      ],
    )
    ```
  </Tab>
</Tabs>

### Group Members

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    ThemeData(
      extensions: [
        CometChatGroupMembersStyle(
          avatarStyle: CometChatAvatarStyle(
            borderRadius: BorderRadius.circular(8),
            backgroundColor: Color(0xFFFBAA75),
          ),
          titleStyle: TextStyle(color: Color(0xFFF76808)),
          separatorColor: Color(0xFFF76808),
          ownerMemberScopeBackgroundColor: Color(0xFFF76808),
          adminMemberScopeBackgroundColor: Color(0xFFFEEDE1),
          adminMemberScopeBorder: Border.all(color: Color(0xFFF76808)),
          adminMemberScopeTextColor: Color(0xFFF76808),
          moderatorMemberScopeBackgroundColor: Color(0xFFFEEDE1),
          moderatorMemberScopeTextColor: Color(0xFFF76808),
          backIconColor: Color(0xFFF76808),
        ),
      ],
    )
    ```
  </Tab>
</Tabs>

***

## Base Components

### Avatar

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/PaxBG9I1yMoeQmt2/images/34fe5c4c-avatar_styling-ce4b80c50b2be5408fb0b0f36c08a913.png?fit=max&auto=format&n=PaxBG9I1yMoeQmt2&q=85&s=1e86288601931b89f8192972acae2ae1" width="2560" height="480" data-path="images/34fe5c4c-avatar_styling-ce4b80c50b2be5408fb0b0f36c08a913.png" />
</Frame>

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatAvatarStyle(
      borderRadius: BorderRadius.circular(8),
      backgroundColor: Color(0xFFFBAA75),
    )
    ```
  </Tab>
</Tabs>

### Badge

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/FGBCGWXGo5d9bVxR/images/c563528d-badge_styling-6e584135115b0ed02ccc7d6ac11c03ab.png?fit=max&auto=format&n=FGBCGWXGo5d9bVxR&q=85&s=fd066c7007fc1114a38d60d31fe95928" width="2560" height="480" data-path="images/c563528d-badge_styling-6e584135115b0ed02ccc7d6ac11c03ab.png" />
</Frame>

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatBadgeStyle(
      borderRadius: BorderRadius.circular(4),
      backgroundColor: Color(0xFFF44649),
    )
    ```
  </Tab>
</Tabs>

### Status Indicator

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/JSRiWiPGBHsJZFCg/images/a14e7d6a-status_indicator_styling-3f378cc8db84ceb56a195b6c48c04d73.png?fit=max&auto=format&n=JSRiWiPGBHsJZFCg&q=85&s=403d99e223b87f42b3415b53e8bfbbd4" width="2560" height="480" data-path="images/a14e7d6a-status_indicator_styling-3f378cc8db84ceb56a195b6c48c04d73.png" />
</Frame>

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatStatusIndicatorStyle(
      backgroundColor: Color(0xFFFFAB00),
      borderRadius: BorderRadius.circular(2),
    )
    ```
  </Tab>
</Tabs>

### Receipts

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/OOBJyP9hM0C-rAe_/images/ddb4abba-receipt_styling-c119505832202169fe30108a4b406d22.png?fit=max&auto=format&n=OOBJyP9hM0C-rAe_&q=85&s=6c3021b652b5d4614926a41ce48cb3c3" width="2560" height="480" data-path="images/ddb4abba-receipt_styling-c119505832202169fe30108a4b406d22.png" />
</Frame>

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatMessageReceiptStyle(
      readIconColor: Color(0xFFFFAB00),
    )
    ```
  </Tab>
</Tabs>

### Reactions

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/Gp90C5sdVtuRR4t7/images/8603fdc6-reactions-9e89534b60dda1a813a2c22f4053b042.png?fit=max&auto=format&n=Gp90C5sdVtuRR4t7&q=85&s=d49c2890e22e21ad2db3046076985748" width="2560" height="800" data-path="images/8603fdc6-reactions-9e89534b60dda1a813a2c22f4053b042.png" />
</Frame>

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatReactionsStyle(
      borderRadius: BorderRadius.circular(8),
    )
    ```
  </Tab>
</Tabs>

### Reaction List

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatReactionListStyle(
      activeTabTextColor: Color(0xFFF76808),
      activeTabIndicatorColor: Color(0xFFF76808),
    )
    ```
  </Tab>
</Tabs>

### Media Recorder

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatMediaRecorderStyle(
      recordIndicatorBackgroundColor: Color(0xFFF44649),
      recordIndicatorBorderRadius: BorderRadius.circular(20),
      pauseButtonBorderRadius: BorderRadius.circular(8),
      deleteButtonBorderRadius: BorderRadius.circular(8),
      stopButtonBorderRadius: BorderRadius.circular(8),
    )
    ```
  </Tab>
</Tabs>

***

## Option Sheets

### Message Option Sheet

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    ThemeData(
      extensions: [
        CometChatMessageOptionSheetStyle(
          backgroundColor: Color(0xFFFEEDE1),
          iconColor: Color(0xFFF76808),
        ),
      ],
    )
    ```
  </Tab>
</Tabs>

### Attachment Option Sheet

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    ThemeData(
      extensions: [
        CometChatAttachmentOptionSheetStyle(
          backgroundColor: Color(0xFFFEEDE1),
          iconColor: Color(0xFFF76808),
        ),
      ],
    )
    ```
  </Tab>
</Tabs>

### Message Information

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    ThemeData(
      extensions: [
        CometChatOutgoingMessageBubbleStyle(
          backgroundColor: Color(0xFFF76808),
        ),
        CometChatMessageInformationStyle(
          backgroundHighLightColor: Color(0xFFFEEDE1),
          messageReceiptStyle: CometChatMessageReceiptStyle(
            readIconColor: Color(0xFFF76808),
          ),
        ),
      ],
    )
    ```
  </Tab>
</Tabs>

### Mentions

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    ThemeData(
      extensions: [
        CometChatMentionsStyle(
          mentionSelfTextBackgroundColor: Color(0xFFF76808),
          mentionTextBackgroundColor: Colors.white,
          mentionTextColor: Colors.black,
          mentionSelfTextColor: Colors.white,
        ),
      ],
    )
    ```
  </Tab>
</Tabs>

***

## AI Components

### Conversation Starter

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/21UBnagXOw-XG0Sv/images/b101b8c0-conversation_starter_styling-b9c86101e742319c7d009f783447aefe.png?fit=max&auto=format&n=21UBnagXOw-XG0Sv&q=85&s=77fe221b82d5df7f50f88f9c2a370d54" width="2560" height="1680" data-path="images/b101b8c0-conversation_starter_styling-b9c86101e742319c7d009f783447aefe.png" />
</Frame>

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatAIConversationStarterStyle(
      backgroundColor: Color(0xFFFEEDE1),
      border: Border.all(color: Color(0xFFFBBB90)),
    )
    ```
  </Tab>
</Tabs>

### Smart Replies

<Frame>
  <img src="https://mintcdn.com/cometchat-22654f5b-docs-rn-guide-message-privately/PrOf0fpV33FkfOMB/images/130759e8-smart_replies_styling-867bc2eb5ffd9c60ea0b93e5170c765a.png?fit=max&auto=format&n=PrOf0fpV33FkfOMB&q=85&s=7ec46966887445e544cb6ea466322aa4" width="2560" height="1680" data-path="images/130759e8-smart_replies_styling-867bc2eb5ffd9c60ea0b93e5170c765a.png" />
</Frame>

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatAISmartRepliesStyle(
      backgroundColor: Color(0xFFFEEDE1),
      titleStyle: TextStyle(color: Color(0xFFF76808)),
      itemBackgroundColor: Color(0xFFFFF9F5),
      itemBorder: Border.all(color: Color(0xFFFBBB90)),
    )
    ```
  </Tab>
</Tabs>

### Conversation Summary

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatAIConversationSummaryStyle(
      backgroundColor: Color(0xFFFEEDE1),
      titleStyle: TextStyle(color: Color(0xFFF76808)),
    )
    ```
  </Tab>
</Tabs>

### AI Option Sheet

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    CometChatAiOptionSheetStyle(
      backgroundColor: Color(0xFFFFF9F5),
      iconColor: Color(0xFFF76808),
    )
    ```
  </Tab>
</Tabs>

### AI Assistant Chat History

<Tabs>
  <Tab title="Dart">
    ```dart theme={null}
    final ccColor = CometChatThemeHelper.getColorPalette(context);

    CometChatAIAssistantChatHistory(
      user: user,
      style: CometChatAIAssistantChatHistoryStyle(
        backgroundColor: Color(0xFFFFFAF6),
        headerBackgroundColor: Color(0xFFFFFAF6),
        headerTitleTextColor: ccColor.textPrimary,
        newChatIconColor: ccColor.iconSecondary,
        newChatTextColor: ccColor.textPrimary,
        dateSeparatorStyle: CometChatDateStyle(
          textColor: ccColor.textTertiary,
          backgroundColor: Color(0xFFFFFAF6),
        ),
        itemTextColor: ccColor.textPrimary,
      ),
    )
    ```
  </Tab>
</Tabs>
