Overview
The IllumiChat widget can be customized to match your website’s branding and design. This guide covers visual customization throughdata-* attributes, CSS overrides, and programmatic control via the SDK.
Colors
Set the primary color using thedata-primary-color attribute. This color is applied to the launcher button, message bubbles, and interactive elements.
| Color Value | Result |
|---|---|
#6366F1 | Indigo (default) |
#10B981 | Green |
#F59E0B | Amber |
#EF4444 | Red |
| Any hex code | Your brand color |
Position
Control where the widget launcher appears on the page.Suggested Messages
Display clickable message chips that visitors can tap to start a conversation quickly.Keep suggested messages short (under 40 characters each) so they display well on mobile devices. Aim for 3-4 messages.
Auto-Open
Automatically open the chat panel after a delay (in milliseconds):Launcher Icon
Customize the launcher button icon:Custom CSS
For advanced styling, you can target the widget’s shadow DOM elements using CSS custom properties (CSS variables).| CSS Variable | Default | Description |
|---|---|---|
--ic-font-family | system-ui | Font family for all widget text |
--ic-border-radius | 16px | Border radius for the chat window |
--ic-launcher-size | 56px | Size of the floating launcher button |
--ic-launcher-margin | 16px | Distance from screen edges |
Mobile Behavior
The widget automatically adapts to mobile screens:- On screens narrower than 480px, the chat window expands to full width
- The launcher button is slightly smaller on mobile (48px vs 56px)
- Touch-friendly tap targets and scrolling are enabled
Programmatic Control
For dynamic control, use the JavaScript SDK to interact with the widget at runtime.Control Widget State
React to Events
Full Configuration Reference
| Attribute | Type | Default | Description |
|---|---|---|---|
data-assistant-id | string | — | Required. Your assistant ID. |
data-primary-color | string | #6366f1 | Primary brand color (hex). |
data-position | string | bottom-right | bottom-right or bottom-left. |
data-offset-x | string | 20 | Horizontal offset from edge in pixels. |
data-offset-y | string | 20 | Vertical offset from edge in pixels. |
data-auto-open | string | — | Auto-open delay in milliseconds. |
data-suggested-messages | string | — | Comma-separated suggested messages. |
data-show-suggested-bubbles | string | false | Show message bubbles near launcher. |
data-suggested-bubbles-delay | string | 3000 | Delay before showing bubbles (ms). |
data-launcher-icon | string | chat | Launcher icon URL or "chat" for default. |
data-company-name | string | Support | Company name for accessibility. |
data-auth-mode | string | anonymous | anonymous, authenticated, or auto. |
data-persist-session | string | true | Persist session across page loads. |
data-visitor-id | string | — | Custom visitor ID for user linking. |
data-base-url | string | — | Override widget iframe URL. |
data-debug | string | false | Enable debug logging to console. |
Next Steps
Widget Installation
Install the widget on any website platform
SDK Reference
Complete JavaScript API reference for programmatic control