CommunityThemeDefinition

Represents the definition of a theme for an Experience Builder site.

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.

CommunityThemeDefinition components have the suffix .communityThemeDefinition and are stored in the communityThemeDefinitions folder.

Introduced in API version 38.0.

This type is available only if Salesforce Digital Experiences is enabled in your org.

  • Type: CommunityThemeBundleInfo[]
  • Required: No
  • Introduced: API version 44.0
  • Description: If specified, at least one preview image and one highlight are required. Up to 3 preview images and 4 highlights are supported.
  • Type: string
  • Required: No
  • Introduced: API version 44.0
  • Description: The set of branding properties associated with this CommunityThemeDefinition, as defined in the Theme panel in Experience Builder.
  • Type: string
  • Required: No
  • Description: The optional description text of this CommunityThemeDefinition.
  • Type: boolean
  • Required: No
  • Description: False by default. Determines if deleting this CommunityThemeDefinition attempts to delete other directly or indirectly referenced objects automatically, for example, FlexiPage. Values are true or false.
  • Type: string
  • Required: Yes
  • Description: Required. The label for this CommunityThemeDefinition, which displays in Setup.
  • Type: string
  • Required: No
  • Introduced: API version 45.0
  • Description: Defines the name of the publisher as seen in the wizard for creating Experience Builder sites. If no name is provided, the name of the org from which the package was originally exported is used.
  • Type: CommunityThemeRouteOverride[]
  • Required: No
  • Introduced: API version 44.0
  • Description: List of theme layout type overrides for flexipages (currently only for home).
  • Type: CommunityThemeSetting[]
  • Required: No
  • Description: Required. The list of settings for this CommunityThemeDefinition.
  • Type: string
  • Required: No
  • Description: The description of the custom theme layout type.
  • Type: string
  • Required: Yes
  • Description: Required. The name of the custom theme layout type. The values Inner, Home, and Login are reserved.

This type extends CommunityTemplateBundleInfo and inherits its fields.

  • Type: string
  • Required: No
  • Description: The optional description text of its CommunityThemeBundleInfo.
  • Type: string
  • Required: No
  • Description: Required only when the type is PreviewImage, otherwise this field is optional. A preview image for this CommunityThemeDefinition.
  • Type: int
  • Required: Yes
  • Description: Required. An integer specifying the position of this CommunityThemeBundleInfo relative to others of the same type within its CommunityThemeDefinition. 1 is the first position, 3 is the maximum position for PreviewImage type, and 4 is the maximum position for the Highlight type.
  • Type: string
  • Required: Yes
  • Description: Required. The title of this CommunityThemeBundleInfo to use in code.
  • Type: CommunityTemplateBundleInfoType (enumeration of type string)
  • Required: Yes
  • Description: Required. Stores descriptive information about the theme that is included in the export.
  • Possible values:
    • Highlight — This CommunityThemeBundleInfo is used as a highlighted feature. Up to 4 are supported.
    • PreviewImage — This CommunityThemeBundleInfo is used as a preview image. Up to 3 are supported.
  • Type: string
  • Required: No
  • Description: Required when themeLayoutType isn’t specified. Provides the custom theme layout type associated with the theme layout. This field and themeLayoutType are mutually exclusive; you can’t specify both.
  • Type: string
  • Required: Yes
  • Description: Required. Specifies the attributes of the site page for which the default theme layout type is overridden. The only valid value is {"PageName":"Home"}.
  • Type: string
  • Required: Yes
  • Description: Required. Specifies the type of the site page for which the default theme layout type is overridden. The only valid value is comm__standardPage.
  • Type: CommunityThemeLayoutType (enumeration of type string)
  • Required: No
  • Description: Required if customThemeLayoutType isn’t specified. Provides the default theme layout type associated with the theme layout. Valid values are Inner, Home, or Login. This field and customThemeLayoutType are mutually exclusive; you can’t specify both.
  • Type: string
  • Required: No
  • Description: Required when themeLayoutType isn’t specified. The custom theme layout type associated with the theme layout. This field and themeLayoutType are mutually exclusive; you can’t specify both.
  • Type: string
  • Required: Yes
  • Description: Required. The configuration and layout for this theme.
  • Type: CommunityThemeLayoutType (enumeration of type string)
  • Required: No
  • Description: Required when customThemeLayoutType isn’t specified. The default theme layout type associated with the theme layout. Valid values are Inner, Home, or Login. This field and customThemeLayoutType are mutually exclusive; you can’t specify both.

The following is an example of a CommunityThemeDefinition component.

The following is an example package.xml that references the previous definition.

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.