Styling note. In SDK v3.2+, per-tenant theming is delivered by the Settings API — page CSS and CSS custom properties on the host element override those defaults when you need to customize per-embed. Legacy color attributes (
brand-color, text-color, input-bg, etc.) are ignored.<bonsai-search> examples are listed below from minimal setup to full-page templates.
Copy-paste minimal integration
Copy-paste minimal integration
This minimal example includes required attributes, event listeners, and a small CSS override.
Full example with wrapper styling
Full example with wrapper styling
This example wraps the component in a container with custom CSS for layout and theming. Colors are set via CSS custom properties on the host element.
Component using CSS variables
Component using CSS variables
Full page template — default palette
Full page template — default palette
Full page template — custom palette
Full page template — custom palette
A black page with a dark palette of your own.
theme="light" selects the palette the CSS below is allowed to replace — Dark theme explains why, and what happens if you reach for theme="dark" instead.Next
- For issue resolution, see Troubleshooting.
- For release/version notes, see Changelog.