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:
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 inkiosk-js:
- CSS custom-property overrides. The widget’s shadow-DOM styles do set internal variables like
--hk-primaryand--hk-bg, but they’re computed from the JS config at mount time and written directly onto:host— they never read an externally-set:rootvalue. Setting--hk-primary(or any--hk-*variable) on your page’s:roothas no effect on the widget. - A
themeobject.themeonWidgetConfigis a string union ("light" | "dark" | "auto"), not an object. There is noprimary/background/surface/radius/dark: {...}theme-object API on the widget,<KioskChat>, orHumainKioskClient. - Custom component slots. There is no
componentsprop on React’s<KioskChat>and no named slots on Vue’s<KioskChat>.MessageBubble,Header,InputArea,SendButton,TypingIndicator, andEmptyStateare not exposed for replacement — the chat UI is rendered as a single fixed component in both frameworks.
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>.