BrandingSet defines a reusable set of appearance properties for an Experience Builder site or an org's Lightning Experience theme. It supplies values such as colors, fonts, and image paths. It does not define the entire consuming theme, site, or service configuration, and deploying a set alone does not establish which component uses it.
The type is available when at least one of Digital Experiences, Surveys, or Lightning Experience is enabled. All users, including unauthenticated guest users, can access this type.
Key Elements
| Element | What the Element Controls |
|---|---|
fullName |
The metadata component identity, inherited from Metadata. Use this identity when selecting the component for a manifest or resolving a consumer's reference. |
masterLabel |
Required. The user-facing label of the branding set. It is not a substitute for the component's metadata identity. |
type |
The assigned branding set definition. It does not identify the metadata component itself. An Experience Builder example uses napili:branding-napili-merged; that example is not a universal required value. |
brandingSetProperty |
A repeated structure containing a name/value pair for each branding property. The applicable properties depend on the consuming component. |
propertyName |
Required within each property entry. Lightning Experience theme names are case-sensitive and uppercase, such as BRAND_COLOR. Other contexts use different naming conventions. |
propertyValue |
The property's value, serialized as a string. Individual properties still require the appropriate format: Lightning theme colors use hex strings such as #54C254, image properties use asset paths, and Boolean properties use true or false. |
Behavior and Constraints
Property names and values depend on the consumer
Do not treat every BrandingSet as the same palette. Lightning Experience theme property names must use their documented uppercase spelling. Experience Builder properties include mixed-case names such as TextColor and PrimaryFont. Embedded-service branding has also been reported with names such as headerColor and headerTextColor.
Lightning theme color properties require valid hex color strings in the format #54C254. That rule is not universal across branding contexts: Experience Builder examples also use rgba values, including rgba(255, 255, 255, 0).
Lightning theme properties depend on the design system
Salesforce Lightning Design System (SLDS) 1 and SLDS 2 themes support different properties:
-
SLDS 1 only:
BANNER_IMAGE,HEADER_BACKGROUND_COLOR,PAGE_BACKGROUND_COLOR,LINK_AS_BACKGROUND, andOVERRIDE_A11Y_COLOR. The header color sits behind the logo, global search, and global actions; the page background color controls page backgrounds. -
SLDS 2 active-state accents:
ACCENT_COLOR_1,ACCENT_COLOR_2, andACCENT_COLOR_3highlight active states such as navigation, tabs, and hover states. -
SLDS 2 container colors:
CONTAINER_ACCENT_COLOR_1,CONTAINER_ACCENT_COLOR_2, andCONTAINER_ACCENT_COLOR_3control branded component container backgrounds and their hover states. -
SLDS 2 container content:
ACCENT_CONTAINER_CONTENT_COLOR_1,ACCENT_CONTAINER_CONTENT_COLOR_2, andACCENT_CONTAINER_CONTENT_COLOR_3control text and icons within accent containers.
Brand color and accessibility interact
BRAND_COLOR controls the navigation bar and other prominent areas. Selecting it automatically generates a complementary palette that complies with the Web Content Accessibility Guidelines (WCAG) 2.0. Where the selected brand color is not accessible, Salesforce substitutes an accessible color.
For SLDS 1 themes, OVERRIDE_A11Y_COLOR replaces the automatically generated accessible color in the first palette tile. This affects elements such as links and buttons, rather than replacing the entire palette. The override can make text harder to read.
LINK_AS_BACKGROUND determines whether links use the selected brand color and defaults to true. It applies only to SLDS 1 themes. OVERRIDE_LOADING_PAGE determines whether the supplied brand logo appears while a Lightning Experience page loads or refreshes and defaults to false. Both use true or false in propertyValue, even though that containing element is a string.
Images are asset paths, not embedded files
Lightning theme image properties contain paths to asset files that must already exist in the org. Use JPG, PNG, or GIF files smaller than 5 MB, with these dimensions:
-
BRAND_IMAGE: 600x120 pixels, used as the logo. -
USER_IMAGEandGROUP_IMAGE: 200x200 pixels, used as default avatars. -
BANNER_IMAGE,GROUPS_BANNER_IMAGE, andPROFILE_BANNER_IMAGE: 1800x360 pixels.BANNER_IMAGEsupplies the org page background image and applies only to SLDS 1 themes.
USER_IMAGE and PROFILE_BANNER_IMAGE provide defaults that users can change. GROUP_IMAGE and GROUPS_BANNER_IMAGE provide defaults that group owners can change. These properties do not enforce a single image across every user profile or group.
Deployment and Retrieval
BrandingSet Metadata API files use the .brandingSet suffix and reside in the brandingSets folder. Salesforce source-format files are represented as Name.brandingSet-meta.xml. In package.xml, use BrandingSet as the type name and the component identity as the member. The type supports the wildcard member *.
Resolve the actual consumer reference before selecting files. Neither masterLabel nor type establishes the value that a consumer must reference. In particular, do not assume a theme's UI label is the name of its branding set.
-
Lightning Experience themes: Include the corresponding
LightningExperienceTheme, not just theBrandingSet. Resolve itsdefaultBrandingSetvalue and account for referenced image assets, which community migrations identify asContentAssetcomponents. -
Surveys: A reported migration dependency chain includes the survey
Flow, the branding set referenced by that flow, and the imageContentAssetcomponents referenced by the set. Select the branding set used by the intended survey version, not merely one with a similar name. -
Messaging for In-App and Web: A community retrieval report identifies
EmbeddedServiceConfigand theBrandingSetnamed in itsbrandingelement as the relevant configuration. RetrievingEmbeddedServiceBrandinginstead can target the wrong branding metadata.
Because image values are paths rather than image data, retrieving or deploying the branding set alone does not carry those files inside it. The referenced asset files must exist in the destination org.
Relationships
Consumer components reference a branding set by name. Their reference fields determine which set is used; the presence of a BrandingSet does not prove that a site, theme, or service uses it. Image dependencies on ContentAsset occur through paths stored in propertyValue, rather than through a dedicated asset-reference element. Survey Flow usage is a community-reported connection.
Referenced By
-
CommunityTemplateDefinition:defaultBrandingSet. -
CommunityThemeDefinition:defaultBrandingSet. -
EmbeddedServiceConfig:branding. -
EmbeddedServiceMenuSettings:branding. -
LightningExperienceTheme:defaultBrandingSet.
Reported Issues
-
A deployed branding set may not produce a visible Lightning theme. In a 2018 migration discussion, deploying only
BrandingSetdid not make the theme appear in the destination. Including the correspondingLightningExperienceThemeresolved the reported problem. The discussion also includes imageContentAssetcomponents in the migration. Lightning theme migration discussion. -
Survey images can be missing when only the survey definition is migrated. A 2023 report identifies a survey
Flowreference to aBrandingSet, whose images areContentAssetcomponents. The author also observed that each new survey version appeared to receive a new branding set, making the intended version's reference important. Survey branding dependency report. -
An empty retrieval of
EmbeddedServiceBrandingmay indicate that the wrong type was requested. For Messaging for In-App and Web, a 2024 report identifiesEmbeddedServiceConfigand itsbrandingreference toBrandingSetas the relevant metadata. Its examples useheaderColorandheaderTextColor, not Lightning theme uppercase names. Messaging branding retrieval report. -
Name mismatches can leave both the branding-set reference and the theme unresolved. In a 2024 deployment report, the posted manifest member differed from the branding-set filename, and deployment reported missing branding-set and theme references. The author reported success after renaming the set and its references consistently without the
LEXTHEMINGprefix. This does not establish that the prefix is invalid; resolve the actual component name rather than adding or removing it by convention. Branding-set naming report. -
An Embedded Service Messaging migration may require more than its configuration and branding set. A 2024 answer, updated in 2025, lists
DigitalExperienceConfig,DigitalExperienceBundle,EmbeddedServiceConfig,Network,CustomSite, system-generatedStaticResourcecomponents, andBrandingSetas its minimum migration set. The author also reports uninstall concerns when packaging the service deployment in unlocked or managed packages and favors Metadata API deployment. This is a report about the service deployment as a whole, not a packaging restriction on standaloneBrandingSetcomponents. Embedded Service Messaging migration report.
Common Questions
Why doesn't my Lightning theme appear after deploying BrandingSet?
BrandingSet supplies appearance values, not the complete theme. Include the corresponding LightningExperienceTheme, verify its defaultBrandingSet reference, and account for referenced image assets. A community migration reported this exact symptom when only the branding set was deployed.
How do I retrieve all BrandingSet components?
Use BrandingSet as the type in package.xml with * as the member. Retrieving the sets does not by itself retrieve complete consuming themes or embed their image files.
Do all BrandingSet property names have to be uppercase?
No. Lightning Experience theme property names are case-sensitive and uppercase. Experience Builder uses names such as TextColor and PrimaryFont, while reported embedded-service properties include headerColor and headerTextColor.
How do I deploy a survey's background image and logo?
The reported dependency chain is the survey Flow, its referenced BrandingSet, and the image ContentAsset components referenced by that set. Follow the intended survey version's reference because a community report observed a new branding set for each new version.
Which metadata contains Messaging for In-App and Web branding?
A community report identifies EmbeddedServiceConfig and the BrandingSet referenced by its branding element. Requesting EmbeddedServiceBranding can target the wrong configuration for this service.