AgentforceDefaultThemeManager

Default implementation of the Agentforce theme management system with built-in Salesforce design tokens. AgentforceDefaultThemeManager provides a complete theming solution that handles light/dark mode switching, dynamic font sizing, and comprehensive visual customization using Salesforce's Cosmos design system. It serves as both a production-ready theme manager and a reference implementation for custom theme development.

PropertyTypeDescription
colorSchemeColorSchemeCurrent color scheme applied to UI components
colorsAgentforceTheme.ColorsActive color palette automatically selected based on current color scheme
dimensionsAgentforceTheme.DimensionsSpacing, sizing, and layout measurements from Salesforce Cosmos design system
dynamicFontsBoolControls whether fonts use dynamic sizing based on accessibility preferences
fontsAgentforceTheme.FontsActive font system automatically selected based on dynamic font preferences
overrideColorSchemeWithSystemBoolDetermines whether UI components should respect system-wide color scheme preferences
shapesAgentforceTheme.ShapesBorder radius, corner styles, and geometric properties from Salesforce Cosmos design system
MethodSignatureDescription
init(themeMode:dynamicFonts:)init(themeMode: AgentforceThemeMode, dynamicFonts: Bool)Creates a new theme manager with specified appearance and accessibility preferences