Skip to main content
This page reflects what kiosk-js actually implements today. Deep theming (CSS custom properties, a theme object, swappable sub-components) is not built yet — see Not yet available below before reaching for any of that.

What you can customise today

Drop-in widget (HumainWidget.init())

Appearance options are plain JS config values passed to init() — there is no CSS-variable layer underneath them. See Configuration options for the full list; the ones that affect appearance are:
Everything else about the widget’s look — spacing, radius, shadows, fonts, bubble colours — is currently fixed and not configurable.

React (<KioskChat>)

@humain/kiosk-js/react exports a KioskChat component that renders its own chat UI with hardcoded inline styles. The only style hooks it accepts are className and style, which apply to the outer container only — they don’t reach the header, bubbles, or input row inside it:

Vue (<KioskChat>)

The Vue KioskChat component currently accepts no style-related props at all (credential, mode, placeholder, title, initialMessage only). Its internal styles are fixed, same as the React version.

Not yet available

The following do not work despite sometimes appearing in examples elsewhere — there is no implementation behind them yet in kiosk-js:
  • CSS custom-property overrides. The widget’s shadow-DOM styles do set internal variables like --hk-primary and --hk-bg, but they’re computed from the JS config at mount time and written directly onto :host — they never read an externally-set :root value. Setting --hk-primary (or any --hk-* variable) on your page’s :root has no effect on the widget.
  • A theme object. theme on WidgetConfig is a string union ("light" | "dark" | "auto"), not an object. There is no primary / background / surface / radius / dark: {...} theme-object API on the widget, <KioskChat>, or HumainKioskClient.
  • Custom component slots. There is no components prop on React’s <KioskChat> and no named slots on Vue’s <KioskChat>. MessageBubble, Header, InputArea, SendButton, TypingIndicator, and EmptyState are not exposed for replacement — the chat UI is rendered as a single fixed component in both frameworks.
If your integration needs full visual control beyond primaryColor / theme / zIndex today, build your own chat UI against the underlying HumainKioskClient / Session APIs (see Vanilla JS) instead of the drop-in widget or <KioskChat>.