Theming
This content is for v1.x. Switch to the latest version for up-to-date documentation.
Theme modes
Section titled “Theme modes”| Mode | Behavior |
|---|---|
"light" (default) | Light background, dark text |
"dark" | Dark background, light text |
"auto" | Follows the OS via prefers-color-scheme, live-updating |
window.ClaudiusConfig = { apiUrl: "...", theme: "auto" };Brand color
Section titled “Brand color”accentColor overrides the primary color (toggle bubble, header, send
button) at runtime via CSS custom properties — no rebuild needed:
window.ClaudiusConfig = { apiUrl: "...", accentColor: "#0057a3" };Position
Section titled “Position”position anchors the widget to any corner: bottom-right (default),
bottom-left, top-right, top-left.
Deeper customization
Section titled “Deeper customization”For changes beyond the accent color — fonts, radii, the full palette — edit
widget/tailwind.config.ts (brand colors like pmds-blue, pmds-dark,
pmds-light-green) and rebuild the embed:
cd widgetpnpm build:embed # dist/claudius.iife.js + dist/claudius.cssThen self-host the bundle instead of using the shared CDN build.