Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,29 @@ The **Get-SPOTheme** cmdlet returns the settings for a named existing theme, or
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.

```powershell
Get-SPOTheme -Name "Custom Cyan" | ConvertTo-Json
Get-SPOTheme -Name "Custom Cyan" | ConvertTo-Json 4
```

```Output
#### Return Value Examples
Theme in new format

```
{
"Name": "Custom Cyan",
"Palette": null,
"ColorPairs": {
"light": [
{"accentColor": "#0078D4", "backgroundColor": "#FFFFFF"},
{"accentColor": "#FFFFFF", "backgroundColor": "#0078D4"}
]
},
"IsInverted": false
}
```

Theme in legacy format

```
{
"Name": "Custom Cyan",
"Palette": {
Expand Down Expand Up @@ -64,6 +83,7 @@ Get-SPOTheme -Name "Custom Cyan" | ConvertTo-Json
"primaryText": "#333",
"themePrimary": "#00ffff"
},
"ColorPairs": null,
"IsInverted": false
}
```
Expand Down