BrandingSet
Represents the definition of a set of branding properties for an Experience Builder site or for your org’s Lightning Experience theme.
Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.
This type extends Metadata and inherits its fields.
BrandingSet components have the suffix brandingSet and are stored in the brandingSets folder.
Introduced in API version 40.0.
The BrandingSet type is available when at least one of the following is enabled in your org: Digital Experiences, Surveys, or Lightning Experience. All users, including unauthenticated guest users, can access this type.
- Type: BrandingSetProperty[]
- Required: No
- Description: An array containing the name and value of each branding property, such as
TextColor:#333.
- Type: string
- Required: No
- Description: A description of the set of branding properties.
- Type: string
- Required: Yes
- Description: Required. The user interface name of the set of branding properties.
- Type: string
- Required: No
- Description: The assigned branding set definition for this BrandingSet.
Represents the definition of a branding property in the Theme panel in Experience Builder or in the Edit Theme page in Setup.
- Type: string
- Required: Yes
- Description: Required. The name of the branding property, such as
TextColor.
- Type: string
- Required: No
- Description: The value of the branding property, such as
#333.
The following is an example of a BrandingSet component.
The following is an example package.xml that references the previous definition.
Use these properties to describe Lightning Experience themes. Each propertyName is case-sensitive and must use all capital letters. Some properties only apply to either Salesforce Lightning Design System (SLDS) 1 themes or SLDS 2 themes.
| Property | Description |
|---|---|
ACCENT_COLOR_1 | - Field Type: string - Description: The primary accent color used to highlight active states of the user interface like navigation, tabs, and hover states. Must be a valid hex color string in the format #54C254. Available only for SLDS 2 themes. Available in API version 64.0 and later. |
ACCENT_COLOR_1_DARK_MODE | - Field Type: string - Description: The primary accent color used to highlight active states of the user interface like navigation, tabs, and hover states when a user views Salesforce in dark mode. Must be a valid hex string in the format #54C254. Available only for SLDS 2 themes. Available in API version 65.0 and later. |
ACCENT_COLOR_2 | - Field Type: string - Description: A variant of the primary accent color used to highlight active states of the user interface like navigation, tabs, and hover states. Must be a valid hex color string in the format #54C254. Available only for SLDS 2 themes. Available in API version 64.0 and later. |
ACCENT_COLOR_2_DARK_MODE | - Field Type: string - Description: A variant of the primary accent color used to highlight active states of the user interface like navigation, tabs, and hover states when a user views Salesforce in dark mode. Must be a valid hex string in the format #54C254. Available only for SLDS 2 themes. Available in API version 65.0 and later. |
ACCENT_COLOR_3 | - Field Type: string - Description: A variant of the primary accent color used to highlight active states of the user interface, like navigation, tabs, and hover states. Must be a valid hex color string in the format #54C254. Available only for SLDS 2 themes. Available in API version 64.0 and later. |
ACCENT_COLOR_3_DARK_MODE | - Field Type: string - Description: A variant of the primary accent color used to highlight active states of the user interface like navigation, tabs, and hover states when a user views Salesforce in dark mode. Must be a valid hex string in the format #54C254. Available only for SLDS 2 themes. Available in API version 65.0 and later. |
ACCENT_CONTAINER_CONTENT_COLOR_1 | - Field Type: string - Description: The primary color used for the icons and text within accent containers. Must be a valid hex color string in the format #54C254. Available only for SLDS 2 themes. Available in API version 65.0 and later. |
ACCENT_CONTAINER_CONTENT_COLOR_1_DARK_MODE | - Field Type: string - Description: The primary color used for the icons and text within accent containers when a user views Salesforce with dark mode enabled. Must be a valid hex color string in the format #54C254. Available only for SLDS 2 themes. Available in API version 65.0 and later. |
ACCENT_CONTAINER_CONTENT_COLOR_2 | - Field Type: string - Description: A variant of the primary color used for the icons and text within accent containers. Must be a valid hex color string in the format #54C254. Available only for SLDS 2 themes. Available in API version 65.0 and later. |
ACCENT_CONTAINER_CONTENT_COLOR_2_DARK_MODE | - Field Type: string - Description: A variant of the primary color used for the icons and text within accent containers when a user views Salesforce with dark mode enabled. Must be a valid hex color string in the format #54C254. Available only for SLDS 2 themes. Available in API version 65.0 and later. |
ACCENT_CONTAINER_CONTENT_COLOR_3 | - Field Type: string - Description: A variant of the primary color used for the icons and text within accent containers. Must be a valid hex color string in the format #54C254. Available only for SLDS 2 themes. Available in API version 65.0 and later. |
ACCENT_CONTAINER_CONTENT_COLOR_3_DARK_MODE | - Field Type: string - Description: A variant of the primary color used for the icons and text within accent containers when a user views Salesforce with dark mode enabled. Must be a valid hex color string in the format #54C254. Available only for SLDS 2 themes. Available in API version 65.0 and later. |
BANNER_IMAGE | - Field Type: string - Description: The path to the image to display in the background of your org’s pages. Use a JPG, PNG, or GIF that’s 1800x360 pixels and smaller than 5 MB. Must refer to an asset file that already exists within the org. Available only for SLDS 1 themes. |
BRAND_COLOR | - Field Type: string - Description: The color to display on your nav bar and other important areas of Salesforce. Must be a valid hex color string in the format #54C254. |
BRAND_IMAGE | - Field Type: string - Description: The path to the image to display as your logo. Use a JPG, PNG, or GIF that’s 600x120 pixels and smaller than 5 MB. Must refer to an asset file that already exists within the org. |
BRAND_IMAGE_DARK_MODE | - Field Type: string - Description: The path to the image to display as your logo when a user views Salesforce in dark mode. Use a JPG, PNG, or GIF that’s 600x120 pixels and smaller than 5 MB. Must refer to an asset file that already exists within the org. Available only for SLDS 2 themes. Available in API version 65.0 and later. |
CONTAINER_ACCENT_COLOR_1 | - Field Type: string - Description: The primary color used for the background of branded component containers like the brand button. Container accent colors are also used for hover states for branded component containers. Must be a valid hex color string in the format #54C254. Available only for SLDS 2 themes. Available in API version 64.0 and later. |
CONTAINER_ACCENT_COLOR_1_DARK_MODE | - Field Type: string - Description: The primary color used for the background of branded component containers like the brand button when a user views Salesforce in dark mode. Container accent colors are also used for hover states for branded component containers. Must be a valid hex color string in the format #54C254. Available only for SLDS 2 themes. Available in API version 65.0 and later. |
CONTAINER_ACCENT_COLOR_2 | - Field Type: string - Description: A variant of the primary color used for the background of branded component containers. Container accent colors are also used for hover states for branded component containers. Must be a valid hex color string in the format #54C254. Available only for SLDS 2 themes. Available in API version 64.0 and later. |
CONTAINER_ACCENT_COLOR_2_DARK_MODE | - Field Type: string - Description: A variant of the primary color used for the background of branded component containers when a user views Salesforce in dark mode. Container accent colors are also used for hover states for branded component containers. Must be a valid hex color string in the format #54C254. Available only for SLDS 2 themes. Available in API version 65.0 and later. |
CONTAINER_ACCENT_COLOR_3 | - Field Type: string - Description: A variant of the primary color used for the background of branded component containers. Container accent colors are also used for hover states for branded component containers. Must be a valid hex color string in the format #54C254. Available only for SLDS 2 themes. Available in API version 64.0 and later. |
CONTAINER_ACCENT_COLOR_3_DARK_MODE | - Field Type: string - Description: A variant of the primary color used for the background of branded component containers when a user views Salesforce in dark mode. Container accent colors are also used for hover states for branded component containers. Must be a valid hex color string in the format #54C254. Available only for SLDS 2 themes. Available in API version 65.0 and later. |
GROUP_IMAGE | - Field Type: string - Description: The default group avatar image. Use a JPG, PNG, or GIF that’s 200x200 pixels and smaller than 5 MB. Group owners can change their avatar image. Must refer to an asset file that already exists within the org. |
GROUPS_BANNER_IMAGE | - Field Type: string - Description: The default banner image for group pages. Use a JPG, PNG, or GIF that’s 1800x360 pixels and smaller than 5 MB. Group owners can change their banner image. Must refer to an asset file that already exists within the org. |
HEADER_BACKGROUND_COLOR | - Field Type: string - Description: The color to display at the top of your org pages. Your logo, global search, and global actions appear on top of the global header background. Must be a valid hex color string in the format #54C254. Available only for SLDS 1 themes. |
LINK_AS_BACKGROUND | - Field Type: boolean - Description: Indicates whether you want links in your org to use your selected brand color (true) or not (false). The default value is true. Available only for SLDS 1 themes. |
OVERRIDE_A11Y_COLOR | - Field Type: string - Description: When you select a value for BRAND_COLOR, a color palette that complements your brand color and is WCAG 2.0 compliant is automatically generated. In places where your selected brand color isn’t accessible, an accessible color is used instead. If you provide a value for OVERRIDE_A11Y_COLOR, your value is used in the instances described in place of an automatically generated color. Overriding the accessible brand color only updates the first tile in your brand-based color palette, which affects colors like links and buttons. Overriding the accessibility brand color can make text harder to read. Must be a valid hex color string in the format #54C254. Available only for SLDS 1 themes. |
OVERRIDE_LOADING_PAGE | - Field Type: boolean - Description: Indicates whether your provided brand logo displays while a Lighting Experience page loads or refreshes (true) or not (false). The default value is false. |
PAGE_BACKGROUND_COLOR | - Field Type: string - Description: The color used for page backgrounds. Must be a valid hex color string in the format #54C254. Available only for SLDS 1 themes. |
PROFILE_BANNER_IMAGE | - Field Type: string - Description: The default banner image for user profiles. Use a JPG, PNG, or GIF that’s 1800x360 pixels and smaller than 5 MB. Users can change their profile banner image. Must refer to an asset file that already exists within the org. |
USER_IMAGE | - Field Type: string - Description: The default avatar image for user profiles. Use a JPG, PNG, or GIF that’s 200x200 pixels and smaller than 5 MB. Users can change their profile avatar image. Must refer to an asset file that already exists within the org. |
This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.