Skip to main content

Overview

The IllumiChat widget can be customized to match your website’s branding and design. This guide covers visual customization through data-* attributes, CSS overrides, and programmatic control via the SDK.

Colors

Set the primary color using the data-primary-color attribute. This color is applied to the launcher button, message bubbles, and interactive elements.
Choose a color with sufficient contrast against both light and dark backgrounds. The widget automatically adjusts text color for readability.

Position

Control where the widget launcher appears on the page.
Fine-tune the exact offset from screen edges:

Suggested Messages

Display clickable message chips that visitors can tap to start a conversation quickly.
Separate messages with commas. These are displayed as buttons when the chat panel opens.
Keep suggested messages short (under 40 characters each) so they display well on mobile devices. Aim for 3-4 messages.
You can also show suggested messages as floating bubbles near the launcher button:
The easiest way to enable these bubbles is the dashboard: Widget → Styles → Popup messages lets you set up to 3 dedicated teaser messages and a delay, with no embed changes needed. When popup messages are configured there, the bubbles show those instead of your suggested messages, and clicking a bubble opens the chat. Script-tag attributes still take priority over dashboard settings. See Popup Messages.

Auto-Open

Automatically open the chat panel after a delay (in milliseconds):
Use auto-open sparingly. A delay of 3 to 10 seconds works well for most use cases.

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).
The widget uses Shadow DOM for style isolation. Standard CSS selectors will not affect widget internals. Use the CSS custom properties listed above for supported customizations.

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

See the SDK Reference for the complete list of methods and events.

Full Configuration Reference

Next Steps

Widget Installation

Install the widget on any website platform

SDK Reference

Complete JavaScript API reference for programmatic control