config.toml
At the moment, we do not provide a detailed guide of all the available css
classes. It is up to you to dig in the Web Inspector and find the css class
you wish to override.
CSS Variables
Chainlit exposes CSS variables that let you customize specific UI elements without digging into class names.Stop Icon & Loading Cursor
You can override the appearance and animation of the stop button icon and the loading (blinking) cursor:| Variable | Description | Default |
|---|---|---|
--stop-icon-mask | SVG data URI for the stop icon shape | Built-in square icon |
--stop-icon-color | Stop icon color | currentColor |
--stop-icon-animation | Stop icon CSS animation | none |
--loading-cursor-mask | SVG data URI for the loading cursor shape | Built-in circle |
--loading-cursor-color | Loading cursor color | hsl(var(--foreground)) |
--loading-cursor-size | Loading cursor size | 0.875rem |
--loading-cursor-animation | Loading cursor CSS animation | pulse |
Since version 2.11.0.