ThemeConfig
Interface: ThemeConfig
ThemeConfig provides visual appearance customization options. Inspired by OpenAI ChatKit’s ThemeOption.
Example
const config: ElementsConfig = {
theme: {
colorScheme: 'dark',
density: 'compact',
radius: 'round',
},
}Properties
colorScheme?
optionalcolorScheme:"light"|"dark"|"system"
The color scheme to use for the UI.
Default
'light'density?
optionaldensity:"compact"|"normal"|"spacious"
Determines the overall spacing of the UI.
compact: Reduced padding and margins for dense layoutsnormal: Standard spacing (default)spacious: Increased padding and margins for airy layouts
Default
'normal'radius?
optionalradius:"round"|"soft"|"sharp"
Determines the overall roundness of the UI.
round: Large border radiussoft: Moderate border radius (default)sharp: Minimal border radius
Default
'soft'Last updated on