botbook/src/05-gbtheme
2025-12-06 11:09:12 -03:00
..
css.md Update: General project updates 2025-12-06 11:09:12 -03:00
README.md Update: General project updates 2025-12-06 11:09:12 -03:00
structure.md Update: General project updates 2025-12-06 11:09:12 -03:00

Chapter 05: Themes and Styling

Customize your bot's appearance with .gbtheme packages.

Overview

Themes control colors, fonts, logos, and overall visual presentation of your bot interface.

Quick Start

# In config.csv
name,value
theme-color1,#0d2b55
theme-color2,#fff9c2
theme-title,My Bot
theme-logo,https://example.com/logo.svg

Theme Structure

mybot.gbai/
└── mybot.gbtheme/
    └── style.css

Configuration Options

Setting Description Example
theme-color1 Primary color #0d2b55
theme-color2 Secondary color #fff9c2
theme-title Bot name in header My Assistant
theme-logo Logo URL https://...

CSS Customization

Create style.css in your .gbtheme folder:

:root {
  --primary: #0d2b55;
  --secondary: #fff9c2;
}

.chat-header {
  background: var(--primary);
}

.user-message {
  background: var(--secondary);
}

Chapter Contents

See Also