---
schema_version: "1"
id: f3b04a0510f72f4022fd178e7a412b6ecb19c31c3b5a21ea1f0db85785a2785c
title: AgentforceDefaultThemeManager
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/genai/agentforce-mobile-sdk/references/ios/agentforce-default-theme-manager-ios.md
canonical_url: https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/agentforce-default-theme-manager-ios.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: c1c707d83a8fb11fc316cbb28da8e686d983839b53691316ccb867ea7df4a6ab
products:
  - Agentforce Mobile SDK
  - Agentforce and Einstein Generative AI
---
# AgentforceDefaultThemeManager

## Overview

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.

## Declaration

```swift
class AgentforceDefaultThemeManager
```

## Properties

| Property                        | Type                         | Description                                                                                 |
| ------------------------------- | ---------------------------- | ------------------------------------------------------------------------------------------- |
| `colorScheme`                   | `ColorScheme`                | Current color scheme applied to UI components                                               |
| `colors`                        | `AgentforceTheme.Colors`     | Active color palette automatically selected based on current color scheme                   |
| `dimensions`                    | `AgentforceTheme.Dimensions` | Spacing, sizing, and layout measurements from Salesforce Cosmos design system               |
| `dynamicFonts`                  | `Bool`                       | Controls whether fonts use dynamic sizing based on accessibility preferences                |
| `fonts`                         | `AgentforceTheme.Fonts`      | Active font system automatically selected based on dynamic font preferences                 |
| `overrideColorSchemeWithSystem` | `Bool`                       | Determines whether UI components should respect system-wide color scheme preferences        |
| `shapes`                        | `AgentforceTheme.Shapes`     | Border radius, corner styles, and geometric properties from Salesforce Cosmos design system |

## Methods

| Method                          | Signature                                                  | Description                                                                         |
| ------------------------------- | ---------------------------------------------------------- | ----------------------------------------------------------------------------------- |
| `init(themeMode:dynamicFonts:)` | `init(themeMode: AgentforceThemeMode, dynamicFonts: Bool)` | Creates a new theme manager with specified appearance and accessibility preferences |

## Usage Patterns

### Basic Configuration

```swift
let themeManager = AgentforceDefaultThemeManager(
    themeMode: .system,
    dynamicFonts: true
)
```

### Custom Theme Mode

```swift
let darkThemeManager = AgentforceDefaultThemeManager(
    themeMode: .dark,
    dynamicFonts: false
)
```
