Skip to content

.gbtheme UI Theming 🟑 BETA

Visual customization is driven by the --id-* identity tokens; a theme is allowed to change the accent, not the layout or the typography.

Theme contract

Rule Source
Canonical tokens live in botui/ui/suite/identity/tokens.css (shim over suite/css/identity-tokens.css) root DESIGN-SYSTEM.md
The default theme must equal the design system root DESIGN-SYSTEM.md
Other themes may vary only the accent tokens root DESIGN-SYSTEM.md
Local fonts, inline icons, no CDN root DESIGN-SYSTEM.md and root AGENTS.md
--id-focus is a box-shadow, used as box-shadow: var(--id-focus) root DESIGN-SYSTEM.md

A new token must be added to DESIGN-SYSTEM.md and to both light and dark blocks of tokens.css in the same change.

What a .gbtheme folder can hold

{gbtheme}/
└── default.css    CSS custom-property overrides

CSS custom properties cascade, so overriding an accent token changes every consumer. Themes are static assets served by botui; a change does not require recompiling botserver.

Limits

Claim Status
CHANGE THEME keyword Not registered in the keyword sources; do not document it as available.
A shipped .gbtheme prefix in bottemplates/ None present in this tree.
Arbitrary brand colours, fonts or radii Not allowed by the design system; only the accent may vary.
Hot reload timing Not asserted; refresh the page to load new static CSS.