Skip to content

Customize the checkout

The in-chat checkout should look like part of your product. You control four things: your name and logo, the theme, the accent color and the corners.

The top of the checkout shows who your customer is paying. Set your business name and upload a logo in the Cyan app under Settings → Business. Every checkout picks them up, with no code to change.

Pass appearance when you mount the checkout:

const checkout = Cyan.mount("#payment", {
url: link.url,
appearance: {
theme: "dark",
accent: "#7c3aed",
corners: "square",
},
});
Option Values Default What it changes
theme "auto", "light", "dark" "auto" Light or dark. "auto" follows your customer’s device.
accent A hex color, such as "#7c3aed" A neutral that suits the theme The Pay button and the highlight on the field in focus.
corners "rounded", "square" "rounded" The corners of the card, fields and buttons.

Pick any accent you like. Cyan chooses dark or white text for the Pay button so it stays readable.

Write the accent as a six-digit hex color. Any value Cyan doesn’t recognize falls back to the default.

The Widget page in the Cyan app is a live preview. Switch the theme, try accent colors and change the corners, and see the checkout with your own name and logo. When it looks right, copy the snippet the page writes for you.

If your product has its own theme switch, change the checkout to match with update. The payment form stays loaded, so nothing your customer typed is lost.

checkout.update({
appearance: { theme: "light", accent: "#7c3aed", corners: "square" },
});

update sets the whole appearance at once, so pass every option you want to keep.

See the Cyan.mount reference for everything else the widget does.