🤖 Chatbot
⚙️ Customization
Chatbot SDK
Styling

Widget Styling

You can customize the appearance of your chatbot by modifying the following CSS variables:

📝

Use .ygpt-chatbot class to override the default styling of the chatbot. You can increase the specificity of the selector by adding more classes to it.

For example, .ygpt-chatbot.ygpt-chatbot will override the default styling of the chatbot.

Usage

curl
 
 

CSS Variables

VariableDescription
--yourgptChatbotFontFamilyFont family of the chatbot
--yourgptChatbotPrimaryColorPrimary color of the chatbot
--yourgptChatbotPrimaryColorHslPrimary color of the chatbot in HSL format
--yourgptChatbotSurfaceColorHslSurface color of the chatbot in HSL format
--yourgptChatbotTextColorHslText color of the chatbot in HSL format
--yourgptChatbotUserMessageBgColorBackground color of the user message
--yourgptChatbotUserMessageTextColorText color of the user message
--yourgptChatbotBotMessageBgColorBackground color of the bot message
--yourgptChatbotBotMessageTextColorText color of the bot message

Animations

You can inject custom animations to the widget button using the following CSS:

Hello
CSS