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:
| Parameter | Type | Description |
|---|---|---|
colors | Colors? | Custom colors (optional) |
darkColors | Colors? | Custom dark mode colors (optional) |
shapes | Shapes? | Custom shapes (optional) |
dimensions | Dimensions? | Custom dimensions (optional) |
typography | Typography? | Custom typography (optional) |
shadows | Shadows? | Custom shadows (optional) |
Return: A new BaseUiTheme with the specified customizations