Skip to main content

Interface: NexatronTheme

Defined in: sdk/src/types.ts:21

Visual theme tokens. Passed to <NexatronChat> as a theme prop, the Web Component as CSS variables, or applied globally via your stylesheet on :root/host. All tokens are optional — unset tokens fall back to the defaults baked into the component.

The CSS variable names mirror the keys here with a --nx- prefix (e.g. accent--nx-accent).

Properties

accent?

optional accent?: string

Defined in: sdk/src/types.ts:33

Accent color (send button, focused input). Default: "#5B4FE5".


assistantBg?

optional assistantBg?: string

Defined in: sdk/src/types.ts:37

Assistant-message bubble background. Default: "#f8fafc".


bg?

optional bg?: string

Defined in: sdk/src/types.ts:27

Background color of the chat container. Default: "#ffffff".


border?

optional border?: string

Defined in: sdk/src/types.ts:23

Outer border, e.g. "1px solid #e5e7eb". Default: "1px solid #e5e7eb".


errorText?

optional errorText?: string

Defined in: sdk/src/types.ts:39

Error text color. Default: "#b91c1c".


muted?

optional muted?: string

Defined in: sdk/src/types.ts:31

Muted text color (timestamps, hints). Default: "#64748b".


radius?

optional radius?: string

Defined in: sdk/src/types.ts:25

Outer border radius, e.g. "8px". Default: "8px".


text?

optional text?: string

Defined in: sdk/src/types.ts:29

Primary text color. Default: "#0f172a".


userBg?

optional userBg?: string

Defined in: sdk/src/types.ts:35

User-message bubble background. Default: "#EFEDFF".