Styles API
Customize the appearance and positioning of the Alhena chat widget using the Styles API.
Overview
Quick Reference
Property
Type
Default
Description
setStyles(styles)
Style Properties
Positioning
widget_position
Value
Description
bottom_spacing
left_spacing
right_spacing
Mobile-Specific Positioning
mobile_bottom_spacing
mobile_left_spacing
mobile_right_spacing
use_same_position_for_mobile
Visual Styling
widget_border_radius
widget_width
widget_background_color
Layering (Z-Index)
z_index
launcher_z_index
Typography
fontFamily
Initial Configuration
Dynamic Updates
Complete Example
Common Use Cases
Avoid Overlap with Cookie Banner
Match Brand Design
Mobile-Optimized Layout
Ensure Widget Visibility
Related Resources
Last updated