You can customize the appearance of the chat widget by adding your own CSS styles. Examples of what can be accomplished:
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fe31ec311-d29b-4a71-be7f-7a554076531c%2Faafe9d14-fafe-4dd4-9156-c36ce981fcca%2FCleanShot_2024-07-22_at_9_.10.032x.png%3FspaceId%3De31ec311-d29b-4a71-be7f-7a554076531c?table=block&id=5fe8d982-c26b-4a35-a282-4822edba7a4b&cache=v2)
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fe31ec311-d29b-4a71-be7f-7a554076531c%2Ff687c029-eba3-4b8d-964d-d34005f80cf6%2FCleanShot_2024-07-22_at_9_.24.222x.png%3FspaceId%3De31ec311-d29b-4a71-be7f-7a554076531c?table=block&id=2120998c-c865-40a3-b434-8e4f18568b00&cache=v2)
How to add custom styling
To change chatbot widget appearance, enter CSS (Cascading Style Sheets) in the ‘Appearance’ section in your chatbot dashboard:
![notion image](https://www.notion.so/image/https%3A%2F%2Fprod-files-secure.s3.us-west-2.amazonaws.com%2Fe31ec311-d29b-4a71-be7f-7a554076531c%2Fe20fd87d-c1c0-400c-b7f3-1d3df1b1f106%2FCleanShot_2024-07-23_at_10_.39.022x.png%3FspaceId%3De31ec311-d29b-4a71-be7f-7a554076531c?table=block&id=651718f8-704d-4dbe-8bf8-4a50a7090c9e&cache=v2)
Tip: Try changing the theme between light/dark to make styling experiments easier.
Example
Below are the IDs of various elements you can target and some example styles you could use.
/* Chat widget container */ #chatwith-chat-widget { background-color: #DAD7CD; color: #ffffff; font-family: 'Courier New', Courier, monospace; } #chatwith-chat-message-list { max-width: 1000px; } /* Chat header */ #chatwith-chat-header { background-color: #A3B18A; border-bottom: 2px solid #344E41; } #chatwith-chat-header-avatar { border: 1px solid #A3B18A; background-color: #DAD7CD; border-radius: 10px; width: 40px; height: 40px; margin-right: 10px } #chatwith-chat-header-name { color: #344E41; font-size: 1.5rem; font-weight: bold; } #chatwith-chat-header-clear-conversation-button { color: #344E41; } #chatwith-chat-header-close-button { color: #344E41; } /* Chat Bubbles */ .chatwith-chat-bubble-user { background-color: #344E41 !important; padding: 16px; border-radius: 15px 15px 0 15px; } .chatwith-chat-bubble-assistant { background-color: #A3B18A; padding: 16px; border-radius: 15px 15px 15px 0; } .chatwith-chat-bubble-user .chatwith-bubble-content p, .chatwith-chat-bubble-assistant .chatwith-bubble-content p, .chatwith-chat-bubble-user .chatwith-bubble-content span, .chatwith-chat-bubble-assistant .chatwith-bubble-content span { color: #000000; font-size: 1.5rem; } #chatwith-chat-loading-indicator { width: 100px; } #chatwith-chat-bubble-action[data-action-state="loading"] { color: #000000; font-weight: bold; border-radius: 100px; } #chatwith-chat-bubble-action[data-action-state="loading"] svg { stroke: #ffff00; } #chatwith-chat-bubble-action[data-action-state="error"] { background-color: #ffcccc; border-radius: 100px; } #chatwith-chat-bubble-action[data-action-state="completed"] { font-weight: bold; border-radius: 100px; } /* Chat Panel */ #chatwith-chat-panel { background-color: #A3B18A; border-top: 2px solid #344E41; padding: 10px; } #chatwith-chat-panel-form { background-color: #DAD7CD; border: 1px solid #344E41; padding: 10px; border-radius: 10px; } .chatwith-chat-suggestion { background-color: #A3B18A; color: #344E41; font-weight: bold; border: 1px solid #344E41; padding: 10px; border-radius: 100px; } /* Lead Form */ #chatwith-lead-form { background-color: rgba(0, 0, 0, 0.8); color: #ffffff; padding: 20px; border-radius: 10px; } #chatwith-lead-form input { background-color: #ffffff; color: #000000; border: 1px solid #cccccc; padding: 10px; border-radius: 5px; } #chatwith-lead-form button { background-color: #007bff; color: #ffffff; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; } #chatwith-lead-form button:hover { background-color: #0056b3; }
Your custom code will not be checked for correctness before saving. Having trouble accomplishing a theme? Try asking ChatGPT for help! (provide code above as example)