Skip to content

DEFAULT_ROLE_ACCENTS

const DEFAULT_ROLE_ACCENTS: Record<MessageRole, MessageAccent>

Defined in: react/components/agent/roles.ts:33

Sensible per-role accent defaults, mirroring the convention “colour = sender”: the human prompt gets a warm bar on the trailing (right) edge; the assistant a cool bar on the leading (left) edge; tool output a muted/silver bar; a system notice a solid bar in the error colour. All are theme tokens so they adapt to the active palette — spread-and-override any field via MessageAccent.