Theming
Personalize the colors, spacing, and shapes of your project's user interface.
Chat SDK uses Tailwind for styling and shadcn/ui for components. Since most of the components used in the Chat SDK like buttons and inputs are built using shadcn/ui primitives, you can collectively customize the appearance of the components to follow the theme of your application by modifying the CSS variables in app/global.css
.
Convention
You can use a simple background
and foreground
convention for colors. The background
variable is used for the background color of the component and the foreground
variable is used for the text color.
The background
suffix is omitted when the variable is used for the background color of the component.
Given the following CSS variables:
The background
color of the following component will be var(--primary)
and the foreground
color will be var(--primary-foreground)
.
List of variables
Here's the list of variables available for customization: