HomeBook a Demo

Styling tokens

Restyle the suggested question buttons, the send button, the badge, the title accent, and the integrated chat frame with CSS custom properties, set in your dashboard or in your own CSS.

Styling tokens are CSS custom properties that change the look of parts of the chat, such as the suggested question buttons, the send button, and the badge next to the title. Every token is optional. An unset token keeps the default look, which follows the theme in light and dark mode. A value you set applies in both light and dark mode.

Setting tokens

You can set tokens in two ways:

  • In your dashboard. Inline sets them in your dashboard configuration. This needs no change to your site.
  • In your own CSS. Declare them on :root in a stylesheet on your page.

This example gives the question buttons and the send button a gradient fill, with white text and no border on the buttons:

:root {
  --inline-ai-chip-bg: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);
  --inline-ai-chip-bg-hover: linear-gradient(90deg, #4338ca 0%, #6d28d9 100%);
  --inline-ai-chip-color: #ffffff;
  --inline-ai-chip-color-hover: #ffffff;
  --inline-ai-chip-border-color: transparent;
  --inline-ai-chip-border-color-hover: transparent;
  --inline-ai-chip-radius: 8px;
  --inline-ai-send-bg: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);
}

If a token is set in both places, the dashboard value wins. A token accepts any valid CSS value for the property it styles. These tokens also accept a gradient such as linear-gradient(...): --inline-ai-chip-bg, --inline-ai-chip-bg-hover, --inline-ai-send-bg, --inline-ai-badge-bg, and --inline-ai-title-accent-color.

Question buttons

These tokens style the suggested question buttons in the integrated chat, the Widget sidebar, and the search overlay chat, follow-up questions included. They do not change the questions under a search input.

TokenWhat it stylesDefault
--inline-ai-chip-bgButton backgroundTheme secondary background
--inline-ai-chip-bg-hoverButton background on hoverTheme hover background
--inline-ai-chip-colorButton textTheme text color
--inline-ai-chip-color-hoverButton text on hoverBrand text color
--inline-ai-chip-border-colorButton border (1px). transparent hides it.Theme border color
--inline-ai-chip-border-color-hoverButton border on hoverBrand text color
--inline-ai-chip-radiusButton corner radius20px
--inline-ai-chip-font-weightQuestion button text weight, for example 600 for bolder text on a dark fillTheme default
--inline-ai-chip-stack-max-widthMaximum width of a stacked question button. Stacked buttons are as wide as their text; longer questions wrap at this width.560px

Send button

TokenWhat it stylesDefault
--inline-ai-send-bgSend button background in the chat input, in the docked input bar, and in the search input of the search embed and search FABBrand gradient

The key takeaways and basic embed inputs keep their default send button.

Badge and title accent

The badge is the short tag after the title in the chat header, such as Beta. The title accent is the text after the title, in the accent color.

TokenWhat it stylesDefault
--inline-ai-badge-bgBadge backgroundBrand gradient
--inline-ai-badge-colorBadge textOn-brand text color (white)
--inline-ai-badge-border-colorBadge border (1px)transparent
--inline-ai-title-accent-colorTitle accent textBrand text gradient

Integrated chat

TokenWhat it stylesDefault
--inline-ai-integrated-chat-border-colorBorder of the Compact variant (1px)Theme border color
--inline-ai-integrated-chat-radiusCorner radius of the Compact variant16px
--inline-ai-integrated-chat-column-max-widthMaximum width of the Full size content column and of the input in the docked input bar780px
--inline-ai-dock-border-colorTop border of the docked input bar (1px). transparent hides it.Theme border color

The Full size variant has no border or corner radius. Your page supplies any frame around it. See variants.