Where styling lives as of SDK v3.2+. Colors, borders, alignment, and width are driven by CSS custom properties — not by HTML attributes. These variables can be set two ways:
- From the Settings API (preferred) — theming is configured per-tenant in the Bonsai dashboard and injected into the component’s shadow DOM automatically at load time.
- From your page’s CSS — override any variable on the
<bonsai-searchbar>host element (or its container) to customize per-embed. Page CSS wins over the Settings API because Settings-API variables are injected at:hostlow specificity.
brand-color, text-color, input-bg, card-bg, results-columns, input-opacity, etc. are no longer supported — use the variables below instead.CSS Variables
Set any of these on the<bonsai-searchbar> element (or an ancestor) to override the defaults or Settings-API values.
Reference Table
Search Bar Parts
The search bar exposes::part(...) hooks for external styling.