1@Observable2class CustomThemeManager: AgentforceThemeManager {3 var colorScheme: ColorScheme = .light4 var overrideColorSchemeWithSystem: Bool{5 return true // Allow system theme switching6}78 var colors: AgentforceTheme.Colors {9 colorScheme == .light ? CustomLightColors() : CustomDarkColors()10}1112 // Protocol requirements (not used by UI components)13 var fonts: AgentforceTheme.Fonts {14 SalesforceCosmosFonts()15}16 var dimensions: AgentforceTheme.Dimensions {17 SalesforceCosmosDimensions()18}19 var shapes: AgentforceTheme.Shapes {20 SalesforceCosmosShapes()21}22}2324// Custom light colors using inheritance approach25class CustomLightColors: AgentforceCosmosLightColors {26 override var accent2: Color {27 Color(hex: "#E74C3C")// Your brand red28}29 override var accentContainer1: Color {30 Color(hex: "#FDEDEC")// Light red container31}32 override var surface1: Color {33 Color(hex: "#FEFEFE")// Slightly warm white34}35 // All other colors inherit from AgentforceCosmosLightColors36}3738// Custom dark colors using inheritance approach39class CustomDarkColors: AgentforceCosmosDarkColors {40 override var accent2: Color {41 Color(hex: "#FF6B6B")// Brighter red for dark mode42}43 override var accentContainer1: Color {44 Color(hex: "#4A1412")// Dark red container45}46 override var surface1: Color {47 Color(hex: "#1C1C1E")// iOS-style dark48}49 // All other colors inherit from AgentforceCosmosDarkColors50}