Skip to content

Commit dea1a3f

Browse files
committed
update
1 parent cd32fb5 commit dea1a3f

1 file changed

Lines changed: 15 additions & 13 deletions

File tree

  • sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell

sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Add-SPOTheme.md

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,18 @@ Add-SPOTheme
3838
```
3939

4040
## DESCRIPTION
41-
The **Add-SPOTheme** cmdlet creates a new theme or updates an existing theme. The color pairs settings can be passed as a hash table. The color palette settings can be passed as either a hash table or a dictionary.
41+
This cmdlet creates a new theme or updates an existing theme. The color pairs settings can be passed as a hash table, while the color palette settings can be passed as either a hash table or a dictionary.
4242

43-
Adding a theme does not apply the theme to any sites. It adds the theme to your tenant store, and then the theme is available in the list of themes under the **Change the look** option for modern pages.
43+
Adding a theme does not automatically apply it to any site. Instead, the theme becomes available in the list of themes under the **Change the look** option for modern SharePoint pages.
4444

45-
You can choose which parameter set to use depending on the legacy or new theme format you want to add. Please read [Site theme](https://learn.microsoft.com/sharepoint/site-theme) for more about new theme.
45+
Choose the appropriate parameter set based on whether you're working with a legacy or modern theme format. For details about the new theme format, see [Site theme](/sharepoint/site-theme).
4646

4747
> [!NOTE]
48-
> In multi-geo environments, themes added by an administrator in the primary geography are propagated and available across the entire organization. This` Add-SPOTheme` cmdlet is not supported for administrators in satellite geographies.
48+
> In multi-geo environments, themes added by an administrator in the primary geography are automatically propagated and available across the organization. This cmdlet is not supported for administrators in satellite geographies.
4949
5050
## Examples
5151

52-
### Example 1: Add a new format theme
53-
In this example, a theme named `"Teal Theme"` is created, with color pair settings that are various shades of teal.
52+
### Example 1:
5453

5554
```powershell
5655
$colorPairs = @{
@@ -75,16 +74,17 @@ $colorPairs = @{
7574
Add-SPOTheme -Identity "Teal Theme" -ColorPairs $colorPairs
7675
```
7776

78-
### Example 2: Overwrite a new format theme
77+
This example creates a theme named `"Teal Theme"` with color pair settings in various shades of teal.
7978

80-
If you want to update an existing new format theme (to modify some of its color settings, for example), use the same syntax as shown previously, but add the `-Overwrite` flag to the **Add-SPOTheme** cmdlet.
79+
### Example 2:
8180

8281
```powershell
8382
Add-SPOTheme -Identity "Teal Theme" -ColorPairs $colorPairs -Overwrite
8483
```
8584

86-
### Example 3: Add a legacy format theme
87-
In this example, a theme named `"Custom Cyan"` is created, with color palette settings that are various shades of cyan. Note that the settings are passed as a hash table.
85+
To update an existing theme in the new format, modify the color settings using the same syntax as when creating a theme. Add the `-Overwrite` flag to the Add-SPOTheme cmdlet.
86+
87+
### Example 3:
8888

8989
```powershell
9090
$themepalette = @{
@@ -118,17 +118,19 @@ $themepalette = @{
118118
Add-SPOTheme -Identity "Custom Cyan" -Palette $themepalette -IsInverted $false
119119
```
120120

121+
In this example, a theme named `"Custom Cyan"` is created, with color palette settings that are various shades of cyan. Note that the settings are passed as a hash table.
122+
121123
> [!NOTE]
122124
> Prior to the December 2017 release of the SPO Management Shell, the **Add-SPOTheme** cmdlet required that color palette settings be passed as a dictionary. We recommend that you use the latest version of the SPO Management Shell, or use the `HashToDictionary` function to convert a hash table to a dictionary if needed.
123125
124126
### Example 4: Overwrite a legacy format theme
125127

126-
If you want to update an existing legacy format theme (to modify some of its color settings, for example), use the same syntax as shown previously, but add the `-Overwrite` flag to the **Add-SPOTheme** cmdlet.
127-
128128
```powershell
129129
Add-SPOTheme -Identity "Custom Cyan" -Palette $themepalette -IsInverted $false -Overwrite
130130
```
131131

132+
To update an existing legacy format theme and modify its color settings, use the same syntax as when creating the theme. Add the `-Overwrite` flag to the Add-SPOTheme cmdlet.
133+
132134
## PARAMETERS
133135

134136
### -Identity
@@ -171,7 +173,7 @@ Accept wildcard characters: False
171173
172174
> Applicable: SharePoint Online
173175
174-
Specifies the color pairs of the theme, as a dictionary or hash table of theme slot values. Supports up to 16 color pairs.
176+
Specifies the theme’s color pairs using a hash table of slot values. Supports up to 16 color pairs.
175177
176178
```yaml
177179
Type: Microsoft.Online.SharePoint.PowerShell.SpoThemeColorPairPipeBind

0 commit comments

Comments
 (0)