> ## Documentation Index
> Fetch the complete documentation index at: https://cometchat-22654f5b-docs-broken-links-fixes.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-broken-links-fixes/Y_Y5_sZFv7j-U-IK/images/f8b72fe1-conversation_styling-bd60245f0728731e74244ea8675b582d.png?fit=max&auto=format&n=Y_Y5_sZFv7j-U-IK&q=85&s=b3d91e5b124c19921b6d85cdb5f8e1d2" 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-broken-links-fixes/47JdabSx-So1yhNP/images/43be6937-message_list_styling-87dfbbb28ddf18e45d5281c3f23d3722.png?fit=max&auto=format&n=47JdabSx-So1yhNP&q=85&s=c7be72fea121f21821c84c06686d5fc6" 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-broken-links-fixes/i46nH7NJe0mEbSAA/images/043969b6-message_composer_styling-7a7256fcf47f1835a442e450f03503fe.png?fit=max&auto=format&n=i46nH7NJe0mEbSAA&q=85&s=d487bc24ec6c5dfe70b2d6997e0985ec" 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-broken-links-fixes/hQTez9gFOhrq6BsQ/images/35210220-message_header_styling-cff387a0c5c3d3138ef3e55a57f82de1.png?fit=max&auto=format&n=hQTez9gFOhrq6BsQ&q=85&s=ddf09aaeb8b9b6234f163aa5edd81651" 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-broken-links-fixes/R7o82PlXOfdDyVOW/images/e52ab7f6-users_styling-eb50f461911a21f33a5e96e90751deda.png?fit=max&auto=format&n=R7o82PlXOfdDyVOW&q=85&s=d4258020bdf611defe3a81a05ff7fb63" 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-broken-links-fixes/-79GIJbuB_Nz8JJh/images/c43fe4f4-groups_styling-107ad9e9a3daa796d657515d719c04f6.png?fit=max&auto=format&n=-79GIJbuB_Nz8JJh&q=85&s=6fc727425f8ac559e353ce133458aafe" 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-broken-links-fixes/hQTez9gFOhrq6BsQ/images/34fe5c4c-avatar_styling-ce4b80c50b2be5408fb0b0f36c08a913.png?fit=max&auto=format&n=hQTez9gFOhrq6BsQ&q=85&s=697b3558fd86b49267f242bd01f0d5d7" 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-broken-links-fixes/-79GIJbuB_Nz8JJh/images/c563528d-badge_styling-6e584135115b0ed02ccc7d6ac11c03ab.png?fit=max&auto=format&n=-79GIJbuB_Nz8JJh&q=85&s=cae503a8c02c514c05d6774656b459ff" 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-broken-links-fixes/YxwmYXXXj_tIJauw/images/a14e7d6a-status_indicator_styling-3f378cc8db84ceb56a195b6c48c04d73.png?fit=max&auto=format&n=YxwmYXXXj_tIJauw&q=85&s=8097b7a72bf633e67c9b529f21c81c5c" 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-broken-links-fixes/_iRF43pTmsELu7AJ/images/ddb4abba-receipt_styling-c119505832202169fe30108a4b406d22.png?fit=max&auto=format&n=_iRF43pTmsELu7AJ&q=85&s=49ebba09993c269485d4165852835698" 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-broken-links-fixes/Psaa7cTF426dDVjb/images/8603fdc6-reactions-9e89534b60dda1a813a2c22f4053b042.png?fit=max&auto=format&n=Psaa7cTF426dDVjb&q=85&s=6d78709395ed4dd24d00d55e8e2568a2" 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-broken-links-fixes/OzT4HAfznYenvUPM/images/b101b8c0-conversation_starter_styling-b9c86101e742319c7d009f783447aefe.png?fit=max&auto=format&n=OzT4HAfznYenvUPM&q=85&s=5287341bc9f9dcba2cf61f1d6280f9c8" 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-broken-links-fixes/oByNuHAEuneIBZ1v/images/130759e8-smart_replies_styling-867bc2eb5ffd9c60ea0b93e5170c765a.png?fit=max&auto=format&n=oByNuHAEuneIBZ1v&q=85&s=14994aa8bf9bb38a4d8c70e0c250708b" 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>
