Skip to main content
Chainlit’s theme is based on CSS variables. To modify the CSS variables, create a theme.json file under /public with the following content. You can check Shadcn’s documentation to learn about the role of each variable.
If the UI is not updated, try to empty your browser cache.
theme.json
As you may have noticed, the colors are not expressed in Hexadecimal but rather in HSL. This is mandatory. You can easily convert any color to HSL. The custom_fonts array can receive URLs (typically from google fonts) like: