Customisation
Theme
Looking to refresh your app’s appearance? You can easily alter the default theme colors in your config.toml
file.
Currently, you have the freedom to modify:
- Background color: This option allows you to change the color of the app’s background.
- Paper color: This alters the color of the ‘paper’ elements within the app, such as the navbar, widgets, etc.
- Primary color: This encompasses three shades - main, dark, and light. These colors are primarily used for interactive interface elements.
If you started your Chainlit app with -w (file watcher), it will refresh every time you update the theme!
Light Theme Modification
To modify the light theme, find or create the [UI.theme.light]
section and update the colors as per your preference.
config.toml
Dark Theme Modification
To alter the dark theme, the section begins with [UI.theme.dark]
.
config.toml
Was this page helpful?