--str-chat__primary-color |
.str-chat,.str-chat__theme-light |
|---|
var(--str-chat__blue500) | .str-chat__theme-dark |
|---|
var(--str-chat__blue400) |
|
Used for emphasis, brands can inject their main color using this variable |
AttachmentList, AttachmentPreviewList, AudioRecorder, Autocomplete, Avatar, ChannelPreview, ChannelSearch, CircleFAButton, CTAButton, EditMessageForm, LinkPreview, LoadingIndicator, Message, MessageBouncePrompt, MessageInput, MessageReactions, MessageNotification |
--str-chat__primary-overlay-color |
.str-chat,.str-chat__theme-light |
|---|
rgba(0, 95, 255, 0.6) | .str-chat__theme-dark |
|---|
rgba(51, 126, 255, 0.6) |
|
Used for emphasised overlays - color of --str-chat__primary-color with alpha channel |
MessageInput |
--str-chat__primary-color-low-emphasis |
.str-chat,.str-chat__theme-light |
|---|
var(--str-chat__blue300) | .str-chat__theme-dark |
|---|
var(--str-chat__blue700) |
|
Used for emphasis, brands can inject their main color using this variable, it has less emphasis than primary color |
MessageReactionsSelector |
--str-chat__active-primary-color |
.str-chat,.str-chat__theme-light |
|---|
var(--str-chat__blue600) | .str-chat__theme-dark |
|---|
var(--str-chat__blue600) |
|
Used to indicate that a UI element with primary color is in an active state |
CTAButton |
--str-chat__on-primary-color |
.str-chat,.str-chat__theme-light |
|---|
var(--str-chat__grey50) | .str-chat__theme-dark |
|---|
var(--str-chat__grey50) |
|
If the primary color is used as a background, text/icons are displayed in this color |
AudioRecorder, Avatar, CTAButton, Message, MessageInput, MessageNotification |
--str-chat__background-color |
.str-chat,.str-chat__theme-light |
|---|
var(--str-chat__grey50) | .str-chat__theme-dark |
|---|
var(--str-chat__grey950) |
|
Used as a background color for the main chat UI components |
AudioRecorder, Channel, ChannelSearch, MessageInput, MessageList, VirtualizedMessageList |
--str-chat__secondary-background-color |
.str-chat,.str-chat__theme-light |
|---|
var(--str-chat__grey50) | .str-chat__theme-dark |
|---|
var(--str-chat__grey900) |
|
Used as a background color for the main chat UI components |
AttachmentList, Autocomplete, ChannelHeader, ChannelList, ChannelSearch, CircleFAButton, Message, MessageActionsBox, MessageInput, MessageReactionsSelector, Modal, Thread, Tooltip |
--str-chat__primary-surface-color |
.str-chat,.str-chat__theme-light |
|---|
var(--str-chat__blue100) | .str-chat__theme-dark |
|---|
var(--str-chat__blue900) |
|
Used as a background color to give emphasis, but less vibrant than the primary color |
Message, MessageReactionsSelector |
--str-chat__primary-surface-color-low-emphasis |
.str-chat,.str-chat__theme-light |
|---|
var(--str-chat__blue50) | .str-chat__theme-dark |
|---|
var(--str-chat__blue950) |
|
Used as a background color to give emphasis, but less vibrant than the primary surface color |
MessageReactions |
--str-chat__surface-color |
.str-chat,.str-chat__theme-light |
|---|
var(--str-chat__grey300) | .str-chat__theme-dark |
|---|
var(--str-chat__grey700) |
|
A neutral color used to give emphasis to different surfaces |
AttachmentList, AttachmentPreviewList, Autocomplete, ChannelList, ChannelPreview, ChannelSearch, CircleFAButton, MessageInput, MessageList, Thread |
--str-chat__secondary-surface-color |
.str-chat,.str-chat__theme-light |
|---|
var(--str-chat__grey200) | .str-chat__theme-dark |
|---|
var(--str-chat__grey800) |
|
A neutral color used to give emphasis to different surfaces |
AttachmentList, BaseImage, ChannelPreview, ChannelSearch, Message, MessageActionsBox |
--str-chat__tertiary-surface-color |
.str-chat,.str-chat__theme-light |
|---|
var(--str-chat__grey100) | .str-chat__theme-dark |
|---|
var(--str-chat__grey900) |
|
A neutral color used to give emphasis to different surfaces |
Message, MessageReactions |
--str-chat__text-color |
.str-chat,.str-chat__theme-light |
|---|
var(--str-chat__grey950) | .str-chat__theme-dark |
|---|
var(--str-chat__grey50) |
|
The main color used for texts/icons |
AttachmentList, AttachmentPreviewList, Autocomplete, BaseImage, Channel, ChannelList, ChannelPreview, ChannelSearch, Icon, ImageCarousel, Message, MessageActionsBox, MessageInput, MessageList, VirtualizedMessageList, MessageReactions, MessageReactionsSelector, Modal, Thread, Tooltip, TypingIndicator |
--str-chat__text-low-emphasis-color |
.str-chat,.str-chat__theme-light |
|---|
var(--str-chat__grey500) | .str-chat__theme-dark |
|---|
var(--str-chat__grey500) |
|
Used for texts/icons that need less emphasis |
AttachmentList, AttachmentPreviewList, AudioRecorder, Autocomplete, Channel, ChannelHeader, ChannelList, ChannelPreview, ChannelSearch, EditMessageForm, LinkPreview, Message, MessageInput, MessageList, Modal, Thread, TypingIndicator |
--str-chat__disabled-color |
.str-chat,.str-chat__theme-light |
|---|
var(--str-chat__grey400) | .str-chat__theme-dark |
|---|
var(--str-chat__grey600) |
|
Used for displaying disabled UI elements (typically buttons) |
AttachmentList, BaseImage, Channel, ChannelPreview, ChannelSearch, CTAButton, Message, MessageInput |
--str-chat__on-disabled-color |
.str-chat,.str-chat__theme-light |
|---|
var(--str-chat__grey50) | .str-chat__theme-dark |
|---|
var(--str-chat__grey50) |
|
Used for text/icon colors if disabled color is used as a background color |
CTAButton, MessageInput, Modal |
--str-chat__danger-color |
.str-chat,.str-chat__theme-light |
|---|
var(--str-chat__red400) | .str-chat__theme-dark |
|---|
var(--str-chat__red600) |
|
Used for error messages, and destructive actions |
AudioRecorder, Icon, Message |
--str-chat__message-highlight-color |
.str-chat,.str-chat__theme-light |
|---|
var(--str-chat__yellow100) | .str-chat__theme-dark |
|---|
var(--str-chat__yellow900) |
|
The background color used to highlight a message when jumping to a message. Only available in React SDK. |
Message |
--str-chat__unread-badge-color |
.str-chat,.str-chat__theme-light |
|---|
var(--str-chat__red400) | .str-chat__theme-dark |
|---|
var(--str-chat__red400) |
|
Used for displaying the unread badge |
ChannelPreview |
--str-chat__on-unread-badge-color |
.str-chat,.str-chat__theme-light |
|---|
var(--str-chat__grey50) | .str-chat__theme-dark |
|---|
var(--str-chat__grey50) |
|
Used for text/icon colors if unread badge color is used as a background color |
ChannelPreview |
--str-chat__overlay-color |
.str-chat,.str-chat__theme-light |
|---|
rgba(252, 252, 252, 0.9) | .str-chat__theme-dark |
|---|
rgba(0, 0, 0, 0.7) |
|
The background color used for overlays |
AttachmentPreviewList, TypingIndicator |
--str-chat__secondary-overlay-color |
.str-chat,.str-chat__theme-light |
|---|
rgba(0, 0, 0, 0.2) | .str-chat__theme-dark |
|---|
rgba(0, 0, 0, 0.4) |
|
The background color used for subtle overlays |
AttachmentList, AttachmentPreviewList, Modal |
--str-chat__secondary-overlay-text-color |
.str-chat,.str-chat__theme-light |
|---|
var(--str-chat__grey50) | .str-chat__theme-dark |
|---|
var(--str-chat__grey50) |
|
The text/icon color used on subtle overlays |
AttachmentList, AttachmentPreviewList |
--str-chat__opaque-surface-background-color |
.str-chat,.str-chat__theme-light |
|---|
rgba(0, 0, 0, 0.8) | .str-chat__theme-dark |
|---|
rgba(250, 250, 250, 0.85) |
|
The background color used for opaque surfaces |
Notification |
--str-chat__opaque-surface-text-color |
.str-chat,.str-chat__theme-light |
|---|
var(--str-chat__grey50) | .str-chat__theme-dark |
|---|
var(--str-chat__grey900) |
|
The text color used on opaque surfaces |
Notification |
--str-chat__box-shadow-color |
.str-chat,.str-chat__theme-light |
|---|
rgba(0, 0, 0, 0.18) | .str-chat__theme-dark |
|---|
rgba(0, 0, 0, 0.8) |
|
If a component has a box shadow applied to it, this will be the color used for the shadow |
ChannelSearch, MessageActionsBox, MessageReactionsSelector, Notification, Tooltip |
--str-chat__info-color |
.str-chat,.str-chat__theme-light |
|---|
var(--str-chat__green500) | .str-chat__theme-dark |
|---|
var(--str-chat__green500) |
|
Used for online indicator and success messages |
Avatar |