> ## Documentation Index
> Fetch the complete documentation index at: https://cometchat-22654f5b-mintlify-715169f7.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-mintlify-715169f7/CD4cvqIDCPY1cJO5/images/f8b72fe1-conversation_styling-bd60245f0728731e74244ea8675b582d.png?fit=max&auto=format&n=CD4cvqIDCPY1cJO5&q=85&s=e3699c0f8dfb997056116f9230458ca6" 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-mintlify-715169f7/emvhP9byKNbSLznu/images/43be6937-message_list_styling-87dfbbb28ddf18e45d5281c3f23d3722.png?fit=max&auto=format&n=emvhP9byKNbSLznu&q=85&s=6584c0fef6ac387219a9a448cef07a7a" 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-mintlify-715169f7/0px8ba-Gw2xNtmel/images/043969b6-message_composer_styling-7a7256fcf47f1835a442e450f03503fe.png?fit=max&auto=format&n=0px8ba-Gw2xNtmel&q=85&s=80073eac8f2b039d603b62829a70e34b" 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-mintlify-715169f7/Av4H4a0jfbLZn4mz/images/35210220-message_header_styling-cff387a0c5c3d3138ef3e55a57f82de1.png?fit=max&auto=format&n=Av4H4a0jfbLZn4mz&q=85&s=1e4091ec5a9801a780dd3cbb30a19866" 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-mintlify-715169f7/zxyu46NTRXGxCr8i/images/e52ab7f6-users_styling-eb50f461911a21f33a5e96e90751deda.png?fit=max&auto=format&n=zxyu46NTRXGxCr8i&q=85&s=a8c35f5ca293ff6dd14e52cd6cf7dee2" 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-mintlify-715169f7/3Sz_vUuHlib7otOg/images/c43fe4f4-groups_styling-107ad9e9a3daa796d657515d719c04f6.png?fit=max&auto=format&n=3Sz_vUuHlib7otOg&q=85&s=fa9b5e169fd2c0647fc37bdd7ade430f" 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-mintlify-715169f7/Av4H4a0jfbLZn4mz/images/34fe5c4c-avatar_styling-ce4b80c50b2be5408fb0b0f36c08a913.png?fit=max&auto=format&n=Av4H4a0jfbLZn4mz&q=85&s=102a1418e88f5862a4de58ac7ca1cf7a" 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-mintlify-715169f7/3Sz_vUuHlib7otOg/images/c563528d-badge_styling-6e584135115b0ed02ccc7d6ac11c03ab.png?fit=max&auto=format&n=3Sz_vUuHlib7otOg&q=85&s=3f44015f7c24b9c86b39a47dd93788ea" 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-mintlify-715169f7/v5dqFuMIk9LJXhE9/images/a14e7d6a-status_indicator_styling-3f378cc8db84ceb56a195b6c48c04d73.png?fit=max&auto=format&n=v5dqFuMIk9LJXhE9&q=85&s=28cfbfb60a1babc93b8d67f869198929" 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-mintlify-715169f7/cH6DMYmUi7XGPCJ6/images/ddb4abba-receipt_styling-c119505832202169fe30108a4b406d22.png?fit=max&auto=format&n=cH6DMYmUi7XGPCJ6&q=85&s=ad9f5f5e78784e783e91e6df8ea09807" 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-mintlify-715169f7/ZGAXZrNhwyd-yTPA/images/8603fdc6-reactions-9e89534b60dda1a813a2c22f4053b042.png?fit=max&auto=format&n=ZGAXZrNhwyd-yTPA&q=85&s=32dd9c7ac5d6033ebd502cb77a78fc5b" 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-mintlify-715169f7/-5sdWCmSnVMqKZDA/images/b101b8c0-conversation_starter_styling-b9c86101e742319c7d009f783447aefe.png?fit=max&auto=format&n=-5sdWCmSnVMqKZDA&q=85&s=1fe0b0fcbdcd5ba05e8faafdc674193c" 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-mintlify-715169f7/KaqoZfbAjKCeB6Wd/images/130759e8-smart_replies_styling-867bc2eb5ffd9c60ea0b93e5170c765a.png?fit=max&auto=format&n=KaqoZfbAjKCeB6Wd&q=85&s=06450d12bf97e9bda4141aac974fa281" 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>
