Skip to content

Component variables

CSS variables are the easiest way to customize the theme. They’re organized into two layers:

  • Global
  • Component

Global variables affect the whole chat UI, while component variables change individual components (for example, the message component).

Component variables are further grouped into:

  • Theme variables for changing text and background colors, borders and shadows
  • Layout variables defined for some components (but not all) to change the size of a specific part of a component

Best Practices

  • Use component variables when you need localized visual changes without global ripple effects.
  • Start with theme variables before layout variables to preserve component spacing.
  • Track overrides per component to avoid duplicated or conflicting tokens.
  • Prefer variables over raw CSS overrides for forward compatibility.
  • Re-test complex components (Message, MessageComposer, ChannelList) after variable changes.

You can find the list of components below:

Component name Current source stylesheet
AttachmentList Attachment styling/index.scss
AttachmentPreviewList MessageComposer AttachmentPreview.scss
AudioRecorder AudioRecorder AudioRecorder.scss
Autocomplete TextareaComposer SuggestionList.scss
Avatar Avatar Avatar.scss
Channel Channel Channel.scss
ChannelHeader ChannelHeader ChannelHeader.scss
ChannelList ChannelList ChannelList.scss
ChannelListItem ChannelListItem ChannelListItem.scss
Search Search Search.scss
ChatView ChatView ChatView.scss
CircleFAButton Button Button.scss
CTAButton Button Button.scss
Dialog Dialog styling/index.scss
DragAndDropContainer DragAndDrop DragAndDropContainer.scss
EditedMessagePreview MessageComposer MessageComposer.scss
LoadingIndicator Loading LoadingIndicator.scss
Message Message Message.scss
MessageActions MessageActions MessageActions.scss
MessageBouncePrompt MessageBounce MessageBouncePrompt.scss
MessageComposer MessageComposer MessageComposer.scss
MessageList MessageList MessageList.scss
NewMessageNotification MessageList NewMessageNotification.scss
MessageReactions Reactions MessageReactions.scss
MessageReactionsSelector Reactions ReactionSelector.scss
Modal Modal Modal.scss
Notification Notifications Notification.scss
NotificationList Notifications NotificationList.scss
Poll Poll Poll.scss
Thread Thread Thread.scss
ThreadList ThreadList ThreadList.scss
Tooltip Tooltip Tooltip.scss
TypingIndicator TypingIndicator TypingIndicator.scss
UnreadCountBadge Threads UnreadCountBadge.scss
VirtualizedMessageList MessageList VirtualizedMessageList.scss