Hi, Humans. How may we help you?

How to use CSS to customize the style of your WebChat window
4 min
Created by Leonora Alves on 5/26/2025 6:01 PM
Updated by Leonora Alves on 8/26/2025 3:10 PM

 The CSS Editor available in the Web Chat channel appearance settings  allows advanced customization of the chat window interface. It is recommended when standard settings (such as color, avatar, and logo) do not meet the project’s requirements, whether for business needs or visual criteria. 

⚠️ Attention: The CSS Editor only applies to the chat window, without affecting other elements of the page where the Web Chat is embedded.

If you want to customize the floating button, you need to apply the styles directly in your website's code.
👉 Check some code examples at the end of this article.

Below, you will see how to visually customize the Web Chat through the CSS Editor, including modifications to the header, conversation background, message bubbles, font, and input field.

Where to modify?

 The editor is located right below the avatar selection field. Click the arrow to expand it. 

💡 Tips

  • Use exactly the CSS class names presented in this documentation and add !important when indicated, otherwise the changes will not take effect.
  • In the examples, we use the yellow color #FFD300 to make it easier to visualize the modified areas.

Header

ChangeCSS CodeResult
Change the background color of the header (the color behind the logo).chat-header {
background: #FFD300 !important;
Remove the header (to hide both the logo and the header space).chat-header {
display: none !important;

Conversation Background

ModificationCSS CodeResult
Change conversation background colorbody {
background-color: #FFD300 !important;
Insert background image in the conversation. A valid image URL is required.body {
background-image: url(link) !important;

Chat bubbles and font

ModificationCSS CodeResult
Change font size

.message-thread .message {
font-size: 20px !important;
}

Change font color

.message-received .message-content {
color: #FFD300 !important;
}

Change user response font color

.message-sent .message-content {
color: #FFD300 !important;
}

Change bubble color

.message-received .message-content {
background-color: #FFD300 !important;
}

Change user response bubble color

.message-sent .message-content {
background-color: #FFD300 !important;
}

User input field and actions

ModificationCSS CodeResult
Remove file upload clip

.chat-footer form .clip.enabled {
display: none !important;
}

Remove input field

.chat-footer {
display: none !important;
}

.message-thread {
margin-bottom: 0px;
}

.message-thread-wrapper {
min-height: calc(100vh - 22px);
}

 

Customize the floating button: Code examples

👉 Example 1: Change and center the floating button icon
(In this example, the button receives a custom image as an icon, which is centered inside the button.)

CSS Code:

<body> <script src="https://static.zenvia.com/embed/js/zenvia-chat.hlg.min.js"></script> <script> var chat = new ZenviaChat('59aef0d85ebad512447fb2fa870bbd5a').embedded('button').build(); </script> <style> .znv-chat .znv-float-button { background-image: url('http://s3-sa-east-1.amazonaws.com/zenvia-smart/omni-chat/1755610140928.png') !important; background-size: 100% !important; background-position: center !important; } </style> </body>

👉 Example 2: Customize the button shape and colors:
(In this example, you change the button’s roundness, border color, and background color.)CSS Code:

<body> <script src="https://static.zenvia.com/embed/js/zenvia-chat.hlg.min.js"></script> <script> var chat = new ZenviaChat('59aef0d85ebad512447fb2fa870bbd5a').embedded('button').build(); </script> <style> .znv-chat .znv-float-button { border-radius: 20% !important; border-color: rgb(0, 145, 255) !important; background-color: white !important; } </style> </body>
Did this article solve your doubts?
Recently viewed