Customization

The new version of the Knowledge Base is built with Jetpack Compose. Because of that, the Knowledge Base is no longer customized through styles. Instead, a separate class UsedeskKnowledgeBaseTheme was created with the following fields:

Field Description
palette: Palette A set of base colors. Learn more
fonts: Fonts A set of base fonts. Learn more
strings: Strings A set of text strings. Learn more
drawables: Drawables A set of images and icons. Learn more
textStyles: TextStyles A set of text styles built on the base fonts (fonts) and colors (palette). Learn more
dimensions: Dimensions A set of dimensions. Learn more
colors: Colors A set of element colors built on the base colors (palette). Learn more
animationStiffness: Float Animation stiffness value
supportWindowInsets: Boolean Whether to respect system insets (status bar, navigation bar). Defaults to false


To change the Knowledge Base theme, use the following construct:

UsedeskKnowledgeBaseTheme.provider = { UsedeskKnowledgeBaseTheme() }