CSS variables

|

View as Markdown

IMPORTANT

Advanced customization will be deprecated. It applies only to the legacy widget design.

Override these CSS variables in the styles object of a custom theme to change colors, dimensions, spacing, and visibility of Live Chat widget elements.

Naming pattern [#naming-pattern]

The names of all supported CSS variables follow the atomic design(opens in new tab) methodology, which organizes styling in a structured, modular way.

Each CSS variable follows this pattern:

lc-{section}-{organism}-{molecule}-{atom}

The pattern contains the following parts:

  • lc: Indicates Live Chat.
  • section: The larger part of the widget, such as the header, chat, or footer.
  • organism: A significant component or area within a section, such as a form, carousel, or thread item.
  • molecule: A specific group within the organism, such as the header title, avatar, or bubble.
  • atom: The smallest visual element affected, such as background-color, padding, or border-radius.

The following sections list all supported CSS variables, grouped by widget section, with their descriptions and default values.



General [#general]

The following variables define the brand colors and the focus outline:

IMPORTANT

The variables lc-focus-outline-color and lc-focus-outline are linked to the accessibility support of the widget. To disable the outline, set "lc-focus-outline": "none" in the theme configuration. Disable focus outlines only when a specific client requires it, because this setting does not comply with accessibility standards.



Container [#container]

The following variables control the widget wrapper, the widget button, and the unread messages counter:



Header [#header]

The following variables control the widget header, logo, title, and Close button:



Chat [#chat]

The following variables control message bubbles, typing indicators, carousels, quick replies, the scrollbar, and the loading spinner:



Footer [#footer]

The following variables control the widget footer, message input, attachments, emoji picker, error messages, and start chat elements:



Survey [#survey]

The following variables control the survey content, modal window, rating options, feedback input, and Submit survey button:



Thread list [#thread-list]

The following variables control the thread list view and thread cards in multi-thread widgets:



Eye-catcher [#eye-catcher]

The following variables control the eye-catcher container, its Close button, and its message bubble:



Related pages

Custom themes
Enable advanced customization and define themes in JSON.

Custom fonts
Load a custom web font for each theme.

JavaScript SDK in Live Chat
Apply a theme at runtime with the set_theme command.


Was this page helpful?