Skip to main content

Website widget: CSS customization

Most styling is done with the agent's appearance settings in the app (theme color, light or dark mode, position, logo, texts). For anything beyond that, add your own CSS.

Plan: every plan (custom CSS is part of LUMA Essential and above). Credits: free.

Where to add CSS​

In the LUMA app: agent, then Appearance, then Custom CSS. LUMA injects the CSS into the chat panel for every visitor. Up to 20,000 characters. Save, then reload your website to see the change.

CSS on your own website does not reach inside the chat panel, because the panel runs in its own frame.

Stable class names​

Every widget element has a class that starts with agent-widget-. Use only these classes in your CSS; other class names inside the widget can change without notice.

AreaClasses
Chat headeragent-widget-chat-header, agent-widget-chat-back-btn, agent-widget-chat-agent-badge
Conversationagent-widget-chat-conversation, agent-widget-chat-messages
Messagesagent-widget-message, agent-widget-message-row, agent-widget-message-bubble, agent-widget-message-assistant
Typing indicatoragent-widget-typing, agent-widget-typing-bubble, agent-widget-typing-loader
Welcome screenagent-widget-welcome-header, agent-widget-welcome-logo, agent-widget-welcome-title, agent-widget-welcome-description, agent-widget-welcome-tabs, agent-widget-welcome-tab, agent-widget-welcome-tab-content, agent-widget-welcome-grid, agent-widget-welcome-carousel
Welcome cardsagent-widget-welcome-card-image, agent-widget-welcome-card-image-fallback, agent-widget-welcome-card-scrim
Pre-chat formagent-widget-prechat-submit-btn
WhatsApp tabagent-widget-whatsapp-logo, agent-widget-whatsapp-title, agent-widget-whatsapp-subtitle, agent-widget-whatsapp-btn
Tool approval cardagent-widget-tool-approval-header, agent-widget-tool-approval-icon, agent-widget-tool-approval-title, agent-widget-tool-approval-message, agent-widget-tool-approval-args, agent-widget-tool-approval-arg, agent-widget-tool-approval-arg-key, agent-widget-tool-approval-arg-value, agent-widget-tool-approval-decline
Footeragent-widget-chat-powered-by
Bubble iconagent-widget-overlay-icon

Examples​

Rounder message bubbles and a larger font:

.agent-widget-message-bubble {
border-radius: 18px;
font-size: 15px;
line-height: 1.5;
}

Your brand font in the header:

.agent-widget-chat-header {
font-family: "Your Brand Font", system-ui, sans-serif;
letter-spacing: 0.2px;
}

Assistant answers on a light tint:

.agent-widget-message-assistant .agent-widget-message-bubble {
background: #F2F6FA;
color: #0B2A4A;
}

Tips​

  • Prefer the theme color setting over CSS for colors, so light and dark mode both stay readable.
  • Test on mobile: the panel is full screen there.
  • Hiding the "Powered by LUMA" line is a plan feature (LUMA Elevate and above), set in the app, not with CSS.