StylesheetProvider
The StylesheetProvider
component dynamically generates and injects a custom Webchat theme based on your configuration.
This includes styling variables like:
- Colors
- Border radius
- Font family
- Theme variant
The generated theme is automatically injected into the page using a <style>
tag and supports both light and dark modes.
Usage
App.tsx
Props
The primary color used in your generated theme. It must be a 6-digit hex value.
The font family used throughout the Webchat UI.
Controls the border radius of Webchat UI elements like cards, buttons, and message bubbles.
Defines the overall style variant of the UI.
Sets the theme mode.
Was this page helpful?