Skip to content

Theme

Open in ChatGPT Open in Claude

The theme group controls the colors and typography used across the agent interface. Pass it as a nested object inside setConfiguration, as described in the SDK configuration reference.

Theme color property map showing where each theme setting applies on the agent UI Online Ask me anything... primaryColor backgroundColor borderColor primaryFontColor secondaryColor secondaryFontColor fontFamily fontSize
KeyTypeDefaultDescription
primaryColorstring"#0054B6"The main accent color used for key interactive and highlight elements across the UI.
primaryFontColorstring"#121926"The main text color applied to primary content and key interface elements.
backgroundColorstring"#FFFFFF"The primary background color for chat containers and other main interface components.
fontFamilystring"Poppins"The typeface used throughout the interface.
fontSizenumber14The default font size for text across the interface.
borderColorstring""The color used for borders around static UI elements, such as containers or input fields.
secondaryFontColorstring"#121926"The text color for secondary content, such as hints, timestamps, or less prominent labels.
secondaryColorstring"#0054B6"The secondary accent color, used to complement the primary color and create visual hierarchy.
Before and after comparison: default theme versus a custom-branded theme Default AI Assistant Hi! How can I help you today? Ask me anything... Custom branded Acme Support Welcome to Acme! What can I help you with? Ask about your account...
foldspace.agent('API-KEY').setConfiguration({
theme: {
primaryColor: "#0066FF",
primaryFontColor: "#0B1220",
backgroundColor: "#FFFFFF",
fontFamily: "Roboto",
fontSize: 14,
secondaryFontColor: "#6B7280",
secondaryColor: "#F3F4F6",
borderColor: "#E6E9EE"
}
});