AgentforceThemeCreator

object AgentforceThemeCreator

Factory class for creating and customizing Agentforce themes (BaseUiTheme). This provides a public API for host apps to access default themes and create customized variations.

Gets the default Agentforce theme. This theme provides a complete set of design tokens based on Agentforce Default design system.

Return: The default AgentforceTheme

Creates a customized theme based on the default theme. This allows host apps to modify specific aspects without recreating the entire theme.

Parameters:

ParameterTypeDescription
colorsColors?Custom colors (optional)
darkColorsColors?Custom dark mode colors (optional)
shapesShapes?Custom shapes (optional)
dimensionsDimensions?Custom dimensions (optional)
typographyTypography?Custom typography (optional)
shadowsShadows?Custom shadows (optional)

Return: A new BaseUiTheme with the specified customizations