Skip to main content
The chat uses the theme you chose under Customize. Change it from your own code when your website has its own light and dark switch.

What you pass

"light" | "dark" | "system"
required
  • "light": always light.
  • "dark": always dark.
  • "system": follows the visitor’s device.
Any other value is rejected with an error.

What you get back

"light" | "dark" | "system"
The theme now in use. setTheme() returns a promise that resolves with it.

Follow your own theme switch

Customize your widget

Colours, greeting and where the button sits.

Open and close

Control the chat from your own code.

Events

Run your code when something happens.

Methods

What DeskHoot can do.