CustomizationTheming

Theming

Four ways to make the widget look like your site, from a one-line colour override to full token control.

Start with the brand shortcuts — they cover most cases in a few lines. Move to a full theme object only when you need token-level control.

Quick reference

GoalWhat you pass
Change the brand colourprimaryColor: "#4f46e5"
Use a curated palettetheme: "modern"
Curated palette, one tweaktheme: "modern", primaryColor: "#be123c"
Override specific tokenstheme: { colors: { primary: "#8B6F47" } }
Change nothingomit theme — you get default

Each row goes at the top level of your init() call, alongside apiKey.

How the layers resolve

Later layers win:

default — the starting point whenever you don't pass theme.
theme — a built-in name, full theme object, or partial override.
Brand shortcutsprimaryColor, secondaryColor, borderRadius, fontFamily.

Adjust all of them live in the Playground.

On this page