Skip to content

Theming

This content is for v1.x. Switch to the latest version for up-to-date documentation.

ModeBehavior
"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" };

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 anchors the widget to any corner: bottom-right (default), bottom-left, top-right, top-left.

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:

Terminal window
cd widget
pnpm build:embed # dist/claudius.iife.js + dist/claudius.css

Then self-host the bundle instead of using the shared CDN build.