Theming allows you to define the look and feel of your app by adjusting colors, fonts, and other visual elements using CSS variables. This enables you to provide a cohesive and on-brand experience for your users.
To apply changes globally across the chat UI, simply override the CSS variables in the root of your stylesheet. This will apply the updated values across all components.Shown below is the default chat interface.
The customized chat interface is displayed below.
Use the following code to achieve the customization shown above.
You can also apply specific variables to individual components. For example, if you want the message conversation avatar to differ from other elements, you can define these variables within the specific component’s CSS class.The customized chat interface is displayed below.
Use the following code to achieve the customization shown above.
If you need more control beyond CSS variables, you can use CSS overrides. These allow for detailed adjustments to the look and feel of each component by targeting the specific classes or elements within the chat UI.
To enable dark mode, you can redefine the CSS variables under a dark theme class or media query.Here is the code to enable & toggle between dark & light mode.