Skip to main content
Writing custom CSS · Theme tokens

Shared Parts

These parts are shared by both the floating chat and the embedded chat (inline activator).

Messages

The conversation thread. Expert messages are grouped with an avatar; user messages appear on the opposite side. Each message bubble wraps markdown content.

Message Prose

Markdown rendered in a message carries part="prose" on its container, and every element inside it is stamped with prose-<tag> — prose-p, prose-a, prose-h2, prose-li, and so on — so any rendered element can be styled individually. Links carry message-link alongside prose-a. Block spacing inside prose is driven by custom properties set on the container, overridable through ::part(prose). Prefer these over margin overrides on the per-element parts — a variable keeps the first/last-child edge resets intact and covers grouped elements in one declaration:

Typing and Input

The text input area at the bottom of the chat, plus indicators shown while the expert or AI is composing a response.

Attachments

Files the visitor attaches to a message, when attachments are enabled for your workspace. Staged files show in a preview strip above the input. Sent files that aren’t images show as a list on the message, and sent images use the gallery parts in Messages.

Prompts

Suggested questions shown on the landing screen, during a paused conversation, or as conversation starters. Visitors click a prompt to send it as their first message. The prompt-button part also appears on prompt-skeleton placeholders and on the live try-on prompt, so a rule on ::part(prompt-button) styles those too.

Product Recommendations

Product cards shown inline when an expert or AI recommends items. Each card links to the product page and displays a thumbnail carousel, name, and price. The add-to-cart button adds the product directly, or opens a variant picker sheet when the product has options; a post-add toast offers checkout.

Presented Showcases

Scene-style imagery the agent generates from products in the catalog and presents inline in the conversation. A summary header introduces the showcase; hotspots on the rendered image let visitors hover for product details and add items directly to cart.

Content Previews

Rich previews for URLs shared in the conversation. Open Graph previews display an image, title, and optional price. YouTube links render an embedded video player.

Inline Cards

Interactive cards the agent renders inline in the conversation, such as discount codes and return-portal links. Every card shares the generic card part and a common anatomy, so you can style all cards at once, a specific kind by its own part, or a specific element by its anatomy part.

Assistant Indicator

A small tag shown alongside messages to indicate whether the response came from an AI assistant or a human expert. The bar at the bottom of the chat, containing terms of service text and Remark branding.
Avoid hiding the chat footer, terms text, or terms of service controls with custom CSS. These elements may contain legal disclosures or consent prompts that visitors need to see before using chat.

Data Collection

Forms and prompts for collecting visitor information (email, name, phone) and feedback. These appear at specific points during the conversation flow. The NPS survey itself opens in a bottom sheet built from the widget’s standard dialog elements; its rating request and summary appear in the message stream.

Skeleton and Loading

Placeholder elements shown while the widget loads. Skeleton elements use a -skeleton suffix (e.g., chat-header-avatar-skeleton). The shimmering placeholder blocks also carry the skeleton token, so you can target a specific placeholder or style them all at once.