Customizing Widget Appearance
The AppearanceConfig Object
// Example using useImpler hook (React)
const { showWidget } = useImpler({
projectId: 'YOUR_PROJECT_ID',
templateId: 'YOUR_TEMPLATE_ID', // Or template name
// ... other required props
appearance: {
// Customization properties go here
primaryColor: '#FF5733', // Example primary color
fontFamily: '"Segoe UI", Tahoma, Geneva, Verdana, sans-serif', // Example font stack
borderRadius: '8px', // Example border radius
widget: {
backgroundColor: '#FAFAFA' // Example widget background
},
primaryButtonConfig: {
backgroundColor: '#FF5733',
textColor: '#FFFFFF',
hoverBackground: '#E64A19'
},
secondaryButtonConfig: {
borderColor: '#CCCCCC',
textColor: '#555555',
hoverBackground: '#EEEEEE'
}
}
});Available AppearanceConfig Properties:
Property
Type
Usage
The ButtonConfig Object
Property
Type
Usage
Reference: Type Definitions
Widget Customization Examples


Last updated
Was this helpful?