Skip to content

Theme reference

The Theme Builder exports two JSON objects. Embed goes in the storefront’s chat bubble setup. Send Backend to Neocom for the Theme selected on the agent. Inline conversations and product page suggestions use that selected Theme. Look up each group below for its properties and defaults.

Use the preview to check cropping. Frame dimensions below are width × height in pixels.

Where How it is set Notes
Chat icon (chat header) Shop Agent › Agents › your agent › Basic 200 × 200. Preview this image under Chat Icon in the Theme Builder.
Chat bubble icon chatBubble.iconUrl in the Embed JSON Supply the image URL. Preview how it fits in the round launcher.
Product card images Image link in your product data feed results.image sets aspect ratio (4 / 3, 1 / 1 or 3 / 4), fit (contain or cover), position and background
Embed JSON Backend JSON
Where it goes The theme option of Neocom.showChatBubble in your chat bubble snippet. Runs in the shopper’s browser. Sent to the Neocom team, who stores it as a Theme that you select on the agent’s Configs tab under Shop Agent › Agents.
What it styles What the bubble controls on your page: font, position of the floating chat window, the suggestion chips, the bubble itself, the stacking order. The conversation itself: header, chat input, reply options, product results, buttons, product page suggestions.
Groups basics.typography, basics.size, suggestions, chatBubble, floater The full theme, including the embed groups.
When a change applies With your next deployment. When the Neocom team has stored it and the agent is published with that Theme.

For a bubble, use Embed for the launcher and Backend for the conversation. For an inline-only placement, use the selected Theme.

Type Format Examples
color Hex with 3, 6 or 8 digits, rgb(), rgba(), hsl(), hsla(), or transparent #245EE8, #fff, rgba(0,0,0,0.5), transparent
pixel A whole number with px 24px, 0px
pixel or inherit A pixel value or inherit 20px, inherit
pixel or vh A pixel value or a viewport-height value 500px, 80vh
pixel or percent A pixel value or a percentage 400px, 50%
padding One to four CSS lengths 8px 12px
font weight An integer from 100 to 900 in steps of 100 400, 700
font family A comma-separated list of font names Inter, sans-serif
URL An https:// URL, or empty for the default https://fonts.googleapis.com/css2?family=Inter
integer A whole number 2147483647
enum One of the listed values uppercase
alias A $path reference to another property, see below $basics.colors.primary

A value that starts with $ references another property by its path; a loop resolves to the default. Many defaults are aliases, which is why changing basics.colors.primary recolors buttons, the submit hover and the PDP icon in one go, and why a button looks the same on hover until you set a hover value.

Change one color, recolor everything that depends on it
{
"basics": { "colors": { "primary": "#0A7F5A" } },
"primaryButton": { "backgroundColor": "$basics.colors.primary" },
"results": { "ctaButton": { "hover": { "borderColor": "$basics.colors.primary" } } }
}
Property Type What it styles
color color Text color
fontSize pixel Font size
fontWeight font weight Weight
lineHeight pixel or inherit Line height
letterSpacing pixel or inherit Letter spacing
textTransform none | uppercase | lowercase Case transformation
fontStyle normal | italic Style
textDecoration none | underline | line-through Decoration
Property Type What it styles
backgroundColor color Background
borderColor color Border color
borderWidth pixel Border width
borderStyle none | solid Border style

All text and box properties, plus a hover object with the same properties for the hover state.

Theme Builder section Basics.

Property Type Default What it styles
typography.fontFamily font family Nunito Sans, Nunito Sans Fallback, Helvetica Neue, Helvetica, sans-serif The font of all Shop Agent text, on the page and in the conversation
typography.fontCSSLink URL "" A stylesheet that loads the font, for example from Google Fonts. Empty for system fonts or fonts your page already loads
colors.primary color #245EE8 The primary accent. Default for the primary button background, the chat input submit hover, the product page suggestion icon and the CTA button’s hover border
colors.secondary color #434343 The secondary accent. Default text color of the secondary button
cornerRadius.cards pixel 16px Corner radius of cards
cornerRadius.buttons pixel 10px Corner radius of buttons

Embed JSON.

Property Type Default What it styles
size.topGap pixel 0px Gap between the top of the viewport and the chat window, mobile
size.md.topGap pixel 0px Same, desktop
size.md.offsetX pixel 24px Horizontal distance of the chat window from the viewport edge, desktop
size.md.offsetY pixel 24px Vertical distance of the chat window from the viewport edge, desktop

For the inline agent.

Property Type Default What it styles
size.height pixel or vh 80vh Height of the inline agent
size.maxWidth pixel 900px Maximum width of the conversation inside its container
size.offsetTop pixel 0px Scroll offset on mobile. Set it to the height of a sticky header so the agent is not scrolled underneath it
size.md.offsetTop pixel 0px Scroll offset on desktop

Theme Builder section Chat Bubble Suggestions. Embed JSON.

Property Type Default What it styles
backgroundColor color #FFFFFF Chip background
text text properties fontSize: 14px, fontWeight: 400, color: #000000, lineHeight: inherit, letterSpacing: inherit, textTransform: none, fontStyle: normal, textDecoration: none Chip text
hover.backgroundColor color #E9E9E9 Chip background on hover

Theme Builder section Chat Bubble. Embed JSON.

Property Type Default What it styles
backgroundColor color #000000 Bubble background
borderRadius pixel 30px Bubble corner radius
iconUrl URL "" The icon inside the bubble. Empty shows the default icon
size.offsetX pixel 24px Horizontal distance from the viewport edge, mobile
size.offsetY pixel 24px Vertical distance from the viewport edge, mobile
size.md.offsetX pixel 24px Horizontal distance, desktop
size.md.offsetY pixel 24px Vertical distance, desktop

Theme Builder section Floater. Embed JSON.

Property Type Default What it styles
zIndex integer 2147483647 The z-index of the floating elements, 0 to 2147483647. Raise it if the bubble sits behind a banner; lower it if it should stay below your own overlays

Theme Builder section Header. Backend JSON. The chat icon is an image file, see Image sizes.

Property Type Default What it styles
backgroundColor color transparent Header background
color color #000000 Header text color
icon.backgroundColor color #F5F5F5 Background behind the chat icon
button.backgroundColor color #F5F5F5 Shared background behind the header buttons
button.color color #0D0D0D Header button icon color
button.hover.backgroundColor color #E9E9E9 Header button background on hover

Theme Builder section Chat Input. Backend JSON.

Property Type Default What it styles
submit.hover.backgroundColor color $primaryButton.backgroundColor Background of the send button on hover

Answer options during guided advice. Theme Builder section Reply options. Backend JSON.

Property Type Default What it styles
card.boxShadow CSS box-shadow none Shadow of an option card
card.borderWidth pixel 1px Border width of an option card
controls.color color #868686 Radio button or checkbox, unselected
controls.checked.color color #0D0D0D Radio button or checkbox, selected

The product cards. Theme Builder section Results. Backend JSON.

Property Type Default What it styles
image.aspectRatio 4 / 3 | 1 / 1 | 3 / 4 4 / 3 Shape of the image area
image.objectFit contain | cover contain Whether the product image is fitted inside the area or fills it
image.objectPosition top | center | bottom center Alignment of the image inside the area
image.mixBlendMode normal | darken normal darken makes white image backgrounds blend into the card
image.backgroundColor color #F9F9F9 Background of the image area
card box properties backgroundColor: #ffffff, borderColor: #DADCE4, borderWidth: 1px, borderStyle: solid The card

All take the text properties.

Property Default What it styles
title fontWeight: 700, color: #31343F, fontSize: 14px, rest inherit, normal, none Product title
price color: #000000, fontWeight: 700, fontSize: 14px, rest inherit, normal, none The price
discountedPrice every property $results.price.* The reduced price when a product is on sale
originalPrice color: #9095A8, fontSize: 14px, fontWeight: 400, textDecoration: line-through, rest inherit, normal The crossed-out original price next to a reduced price
pricePrefix every property $results.price.* Text before the price, such as “from”
priceSuffix every property $results.price.* Text after the price, such as “incl. VAT”
originalPricePrefix every property $results.originalPrice.* Text before the original price
originalPriceSuffix every property $results.originalPrice.* Text after the original price

Both take the button properties.

Property Default What it styles
ctaButton color: #000000, backgroundColor: #F5F5F5, borderWidth: 0px, borderColor: #ffffff, borderStyle: none, fontWeight: 400, fontSize: 16px, rest inherit, normal, none. Hover: color: #ffffff, backgroundColor: #000000, borderColor: $basics.colors.primary, rest $results.ctaButton.* The card’s call to action that opens the product or asks the agent about it
addToCartButton Box: $primaryButton.*. Text: $results.ctaButton.*. Hover: box $primaryButton.hover.*, text $results.addToCartButton.* The Add to Cart button, shown once Neocom has enabled it

Theme Builder section Primary Button. Backend JSON. Button properties; the Theme Builder exposes only icon color and box properties, because this button currently shows an icon and no text.

Property Default
color #ffffff
backgroundColor $basics.colors.primary
borderColor #ffffff
borderWidth 0px
borderStyle none
fontSize 14px
fontWeight 700
textTransform, fontStyle, textDecoration none, normal, none
letterSpacing, lineHeight inherit
hover.* every property $primaryButton.*: no visual change on hover until you set one

Theme Builder section Secondary Button. Backend JSON. Button properties.

Property Default
color $basics.colors.secondary
backgroundColor #F5F5F5
borderColor, borderWidth, borderStyle $primaryButton.borderColor, $primaryButton.borderWidth, $primaryButton.borderStyle
fontSize $primaryButton.fontSize
fontWeight 400
letterSpacing, lineHeight, fontStyle, textTransform, textDecoration $primaryButton.*
hover.backgroundColor #DDDDDD
other hover.* $secondaryButton.*

Theme Builder section PDP Suggestions. Backend JSON. See Product page suggestions.

Property Type Default What it styles
suggestions.backgroundColor color #F5F5F5 Chip background
suggestions.borderRadius pixel 20px Chip corner radius
suggestions.icon.color color $basics.colors.primary The icon in front of each question
suggestions.text text properties every property $suggestions.text.* Chip text; follows the bubble suggestions unless set
suggestions.hover.backgroundColor color $suggestions.hover.backgroundColor Chip background on hover
Property Type Default What it styles
input.maxWidth pixel or percent 100% Width of the input
input.borderColor color #DADCE4 Input border color
input.borderWidth pixel 1px Input border width
input.borderRadius pixel 21px Input corner radius
input.padding padding 8px 12px Inner spacing of the input
input.submit.color color $primaryButton.color Send button icon color
input.submit.backgroundColor color $primaryButton.backgroundColor Send button background
input.submit.borderRadius pixel 9999px Send button corner radius (a circle)
input.submit.hover.color color $primaryButton.hover.color Send button icon color on hover
input.submit.hover.backgroundColor color $primaryButton.hover.backgroundColor Send button background on hover

Build both in the Theme Builder, which validates values and copies them from its Code tab.

Backend JSON
{
"basics": {
"typography": {
"fontFamily": "Inter, sans-serif",
"fontCSSLink": "https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap"
},
"colors": { "primary": "#0A7F5A", "secondary": "#1F2933" },
"cornerRadius": { "cards": "12px", "buttons": "999px" }
},
"chatBubble": { "backgroundColor": "#0A7F5A", "iconUrl": "" },
"header": { "backgroundColor": "#0A7F5A", "color": "#ffffff" },
"results": { "image": { "aspectRatio": "1 / 1", "objectFit": "cover" } }
}
Embed JSON
{
"basics": {
"typography": {
"fontFamily": "Inter, sans-serif",
"fontCSSLink": "https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap"
}
},
"chatBubble": { "backgroundColor": "#0A7F5A", "iconUrl": "" }
}