Skip to content

CSS Variable Customization

You can customize many aspects of the SiteSage components by adding CSS properties to the sitesage element(s).

If you are using multiple sitesage components, you can scope the CSS to apply only to the specific component.

sitesage-chat {
--ss-chat-avatar: url('https://api.sitesage.ai/res/logo.png');
--ss-chat-header-bg: linear-gradient(to right, red, blue);
}

The following is a list of all CSS properties that are available:

Property (CSS Variable)Description
--ss-link-colorThe text color for hyperlinks within the chat components.
--ss-font-familyThe font family used across the chat interface.
--ss-chat-avatarURL to a square image (e.g., SVG data URI) for the chat avatar.
--ss-chat-header-bgBackground color for the chat header. Note that the header is only visible when the header_icon attribute is set.
--ss-chat-bg-assistantBackground color for the chat assistant bubble.
--ss-chat-color-assistantText color for the chat assistant bubble.
--ss-chat-padding-assistantPadding for the chat assistant bubble.
--ss-chat-border-radius-assistantBorder radius for the chat assistant bubble.
--ss-chat-font-size-assistantFont size for the chat assistant bubble.
--ss-chat-bg-userBackground color for the user’s chat bubble.
--ss-chat-color-userText color for the user’s chat bubble.
--ss-chat-padding-userPadding for the user’s chat bubble.
--ss-chat-border-radius-userBorder radius for the user’s chat bubble.
--ss-chat-font-size-userFont size for the user’s chat bubble.
--ss-chat-rate-display-assistantControls the visibility/display behavior of the rating system on assistant messages.
--ss-chat-copy-display-assistantControls the visibility/display behavior of the copy-to-clipboard button on assistant messages.
--ss-chat-icon-checked-colorColor applied to chat icons when they are in an active or checked state.
--ss-chat-throbber-colorThe color of the loading/typing indicator throbber.
--ss-search-focus-colorOutline or highlight color when the search input field is focused.
--ss-search-border-colorThe border color for the search input container.
--ss-search-input-font-sizeFont size for the main text inside the search input box.
--ss-search-info-font-sizeFont size for auxiliary or helper information text within the search UI.
--ss-search-suggestions-title-font-sizeFont size for the headers/titles of search suggestion sections.
--ss-search-suggestions-font-sizeFont size for individual search suggestion items.
--ss-action-colorThe accent color used for primary buttons and interactive action elements.