Skip to main content
Make the widget feel like a natural part of your website by customizing its colors and appearance.

Widget title

Set the title option to change the text displayed in the widget header:
const voltai = Voltai.load({
  apiKey: 'your-api-key',
  title: 'Acme Support'
});

Custom colors

Pass a colors object to override the default theme. You only need to specify the colors you want to change. Colors should be provided as hex values (e.g., #2563EB).
const voltai = Voltai.load({
  apiKey: 'your-api-key',
  colors: {
    primary: '#FFC222',
    primaryForeground: '#181D27',
    ring: '#FFC222'
  }
});

Available color options

Background colors

PropertyDescription
backgroundMain page/widget background
surfaceElevated surfaces (cards, modals)
mutedSubtle backgrounds (hover states, disabled)

Card colors

PropertyDescription
cardCard background color
cardForegroundText color on card backgrounds

Popover colors

PropertyDescription
popoverPopover background color
popoverForegroundText color on popover backgrounds

Text colors

PropertyDescription
foregroundPrimary text color
mutedForegroundSecondary/muted text

Primary colors

PropertyDescription
primaryBrand/accent color (buttons, links, highlights)
primarySoftLight variant of primary for soft backgrounds
primarySoftForegroundText color on primary soft backgrounds
primaryForegroundText color on primary backgrounds
primaryStrongDark variant of primary

Secondary colors

PropertyDescription
secondarySecondary/neutral accent color
secondaryForegroundText color on secondary backgrounds
secondarySoftLight variant of secondary
secondarySoftForegroundText color on secondary soft backgrounds
secondaryStrongDark variant of secondary

Accent colors

PropertyDescription
accentAccent background color
accentForegroundText color on accent backgrounds

Border & Input

PropertyDescription
borderBorder color
borderPrimaryBrand-colored border
inputInput field border color
ringFocus ring color

Status colors

PropertyDescription
errorError/destructive color
errorSoftLight error background
errorSoftForegroundText on error soft backgrounds
errorForegroundText on error backgrounds
errorStrongDark variant of error
successSuccess color
successSoftLight success background
successSoftForegroundText on success soft backgrounds
successForegroundText on success backgrounds
successStrongDark variant of success
warningWarning color
warningSoftLight warning background
warningSoftForegroundText on warning soft backgrounds
warningForegroundText on warning backgrounds
warningStrongDark variant of warning

Other

PropertyDescription
radiusBorder radius for rounded corners (e.g., “0.5rem”)

Example: Dark theme

const voltai = Voltai.load({
  apiKey: 'your-api-key',
  colors: {
    foreground: '#ffffff',
    mutedForeground: '#a1a1aa',
    background: '#18181b',
    surface: '#27272a',
    muted: '#3f3f46',
    border: '#3f3f46'
  }
});

Example: Brand colors

const voltai = Voltai.load({
  apiKey: 'your-api-key',
  title: 'Your Company AI',
  colors: {
    primary: '#FFC222',
    primaryForeground: '#181D27',
    ring: '#FFC222'
  }
});
Start by customizing just primary to match your brand’s primary color. Add more overrides as needed.