Themes
Overview

Theme Development

Agentbase themes control the visual appearance of AI applications, including the chat widget, layouts, and color schemes.

Theme Structure

my-theme/
├── manifest.json     # Theme metadata
├── styles/
│   └── theme.css     # CSS custom properties
└── components/
    ├── layout.tsx    # Layout wrapper
    ├── header.tsx    # Header component
    └── chat.tsx      # Chat interface

Built-in Presets

Agentbase ships with four theme presets:

PresetDescription
DefaultClean, professional light theme
DarkDark mode with high contrast
MinimalStripped-down, content-focused
VibrantBold colors and modern styling

Customization API

Themes can be customized via the REST API:

# Set a theme
POST /api/applications/:id/theme
{ "themeId": "dark" }
 
# Customize theme
PUT /api/applications/:id/theme/customize
{
  "colors": { "primary": "#4c6ef5", "background": "#1a1a2e" },
  "typography": { "fontFamily": "Inter", "fontSize": "16px" },
  "layout": { "sidebarPosition": "left", "maxWidth": "1200px" }
}

Next Steps