Skip to content

Commit 9cdde39

Browse files
committed
add color pairs for get-spotheme
1 parent 7f3afc9 commit 9cdde39

File tree

1 file changed

+17
-1
lines changed
  • sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell

1 file changed

+17
-1
lines changed

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

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,24 @@ The **Get-SPOTheme** cmdlet returns the settings for a named existing theme, or
3131
This example shows how to use the **Get-SPOTheme** cmdlet to return the settings for the `"Custom Cyan"` theme created in the example for the **Add-SPOTheme** cmdlet. Note that this example uses the PowerShell `ConvertTo-Json` filter to display the theme in JSON format.
3232

3333
```powershell
34-
Get-SPOTheme -Name "Custom Cyan" | ConvertTo-Json
34+
Get-SPOTheme -Name "Custom Cyan" | ConvertTo-Json 4
3535
```
3636

37+
When the theme is in the new format:
38+
```Output
39+
{
40+
"Name": "Teal theme",
41+
"Palette": null,
42+
"ColorPairs": {
43+
"light": [
44+
{"accentColor": "#0078D4", "backgroundColor": "#FFFFFF"},
45+
{"accentColor": "#FFFFFF", "backgroundColor": "#0078D4"}
46+
]
47+
},
48+
"IsInverted": false
49+
}
50+
```
51+
When the theme is in the legacy format:
3752
```Output
3853
{
3954
"Name": "Custom Cyan",
@@ -64,6 +79,7 @@ Get-SPOTheme -Name "Custom Cyan" | ConvertTo-Json
6479
"primaryText": "#333",
6580
"themePrimary": "#00ffff"
6681
},
82+
"ColorPairs": null,
6783
"IsInverted": false
6884
}
6985
```

0 commit comments

Comments
 (0)