> ## Documentation Index
> Fetch the complete documentation index at: https://cometchat-22654f5b-docs-rn-ai-smart-chat-features.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-ai-smart-chat-features/AOrj_SPA4kJ1Cgx_/images/f8b72fe1-conversation_styling-bd60245f0728731e74244ea8675b582d.png?fit=max&auto=format&n=AOrj_SPA4kJ1Cgx_&q=85&s=7a343c408cc0fe938fcc50196bb5fbc7" 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-ai-smart-chat-features/k_kJtAvfFu2sN74w/images/43be6937-message_list_styling-87dfbbb28ddf18e45d5281c3f23d3722.png?fit=max&auto=format&n=k_kJtAvfFu2sN74w&q=85&s=53c2c03c165b5da708a6b042976ffe4b" 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-ai-smart-chat-features/wxZWmuTybduKKDHd/images/043969b6-message_composer_styling-7a7256fcf47f1835a442e450f03503fe.png?fit=max&auto=format&n=wxZWmuTybduKKDHd&q=85&s=9d55f941d8fd0bfc2287d4ae335d58ba" 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-ai-smart-chat-features/NDVFXhICfX3lG4qE/images/35210220-message_header_styling-cff387a0c5c3d3138ef3e55a57f82de1.png?fit=max&auto=format&n=NDVFXhICfX3lG4qE&q=85&s=d33acfdfef183698f71f8cc26adf5e1a" 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-ai-smart-chat-features/yx8ojVxXAowc2zYl/images/e52ab7f6-users_styling-eb50f461911a21f33a5e96e90751deda.png?fit=max&auto=format&n=yx8ojVxXAowc2zYl&q=85&s=4b7551fc5a646e479da91b5210db5f74" 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-ai-smart-chat-features/CYK5duXc0pW8nvGP/images/c43fe4f4-groups_styling-107ad9e9a3daa796d657515d719c04f6.png?fit=max&auto=format&n=CYK5duXc0pW8nvGP&q=85&s=16b9e2af6a08939f7fdd196cc064bbdf" 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-ai-smart-chat-features/NDVFXhICfX3lG4qE/images/34fe5c4c-avatar_styling-ce4b80c50b2be5408fb0b0f36c08a913.png?fit=max&auto=format&n=NDVFXhICfX3lG4qE&q=85&s=3df1e9004b97e341443d29a8cbf25e98" 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-ai-smart-chat-features/CYK5duXc0pW8nvGP/images/c563528d-badge_styling-6e584135115b0ed02ccc7d6ac11c03ab.png?fit=max&auto=format&n=CYK5duXc0pW8nvGP&q=85&s=4c4bee31f394510810e5b70ac6cb6859" 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-ai-smart-chat-features/PzOmzBvSWc1W1Po4/images/a14e7d6a-status_indicator_styling-3f378cc8db84ceb56a195b6c48c04d73.png?fit=max&auto=format&n=PzOmzBvSWc1W1Po4&q=85&s=8b534337db9d8bbd35c231c34fa8b039" 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-ai-smart-chat-features/97NStKtZ2IXHuPkd/images/ddb4abba-receipt_styling-c119505832202169fe30108a4b406d22.png?fit=max&auto=format&n=97NStKtZ2IXHuPkd&q=85&s=6c6c50f272ea005758238d22aed7b7e5" 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-ai-smart-chat-features/7QkUMi4jtdPRgAqu/images/8603fdc6-reactions-9e89534b60dda1a813a2c22f4053b042.png?fit=max&auto=format&n=7QkUMi4jtdPRgAqu&q=85&s=05c73f2ae96fe30e23e535c3dace6ce1" 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-ai-smart-chat-features/D7Qpe_Zccx7WsESA/images/b101b8c0-conversation_starter_styling-b9c86101e742319c7d009f783447aefe.png?fit=max&auto=format&n=D7Qpe_Zccx7WsESA&q=85&s=4c4fb48d4ed90e66d51614ed7901d823" 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-ai-smart-chat-features/nJ6688KCDUlywtWf/images/130759e8-smart_replies_styling-867bc2eb5ffd9c60ea0b93e5170c765a.png?fit=max&auto=format&n=nJ6688KCDUlywtWf&q=85&s=832fb01eacb50ceb07c35f241a4947bc" 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>
