Skip to content

Commit 48637ee

Browse files
Merge pull request #1056 from RongqiZ/user/rongqizhou/AddColorPairsForGetTheme
Add ColorPairs in the response of get-spotheme
2 parents 7f3afc9 + 6439df7 commit 48637ee

File tree

1 file changed

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

1 file changed

+18
-1
lines changed

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

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,25 @@ 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+
```Output
38+
{
39+
"Name": "Custom Cyan",
40+
"Palette": null,
41+
"ColorPairs": {
42+
"light": [
43+
{"accentColor": "#0078D4", "backgroundColor": "#FFFFFF"},
44+
{"accentColor": "#FFFFFF", "backgroundColor": "#0078D4"}
45+
]
46+
},
47+
"IsInverted": false
48+
}
49+
```
50+
51+
If the theme is in legacy format, the output will be:
52+
3753
```Output
3854
{
3955
"Name": "Custom Cyan",
@@ -111,3 +127,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
111127
## NOTES
112128
113129
## RELATED LINKS
130+
[Site theme](/sharepoint/site-theme)

0 commit comments

Comments
 (0)