From 9cdde391b248adef667dedcf04b2c1aef9f0aa86 Mon Sep 17 00:00:00 2001 From: Rongqi Zhou Date: Mon, 13 Oct 2025 17:19:12 +0800 Subject: [PATCH 1/6] add color pairs for get-spotheme --- .../Get-SPOTheme.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOTheme.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOTheme.md index db1ffda9f..a54cbb163 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOTheme.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOTheme.md @@ -31,9 +31,24 @@ 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 ``` +When the theme is in the new format: +```Output +{ + "Name": "Teal theme", + "Palette": null, + "ColorPairs": { + "light": [ + {"accentColor": "#0078D4", "backgroundColor": "#FFFFFF"}, + {"accentColor": "#FFFFFF", "backgroundColor": "#0078D4"} + ] + }, + "IsInverted": false +} +``` +When the theme is in the legacy format: ```Output { "Name": "Custom Cyan", @@ -64,6 +79,7 @@ Get-SPOTheme -Name "Custom Cyan" | ConvertTo-Json "primaryText": "#333", "themePrimary": "#00ffff" }, + "ColorPairs": null, "IsInverted": false } ``` From 8112d8c13c8fb56c49fdbf3a909e2be7504a2071 Mon Sep 17 00:00:00 2001 From: Rongqi Zhou Date: Mon, 13 Oct 2025 17:22:42 +0800 Subject: [PATCH 2/6] update name --- .../Microsoft.Online.SharePoint.PowerShell/Get-SPOTheme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOTheme.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOTheme.md index a54cbb163..548f769fe 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOTheme.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOTheme.md @@ -37,7 +37,7 @@ Get-SPOTheme -Name "Custom Cyan" | ConvertTo-Json 4 When the theme is in the new format: ```Output { - "Name": "Teal theme", + "Name": "Custom Cyan", "Palette": null, "ColorPairs": { "light": [ From 2bdf0d34dda7dbe0dc091d3fe9c05cb83529c348 Mon Sep 17 00:00:00 2001 From: Rongqi Zhou Date: Mon, 13 Oct 2025 17:23:21 +0800 Subject: [PATCH 3/6] add space --- .../Microsoft.Online.SharePoint.PowerShell/Get-SPOTheme.md | 1 + 1 file changed, 1 insertion(+) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOTheme.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOTheme.md index 548f769fe..fe2f02afd 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOTheme.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOTheme.md @@ -48,6 +48,7 @@ When the theme is in the new format: "IsInverted": false } ``` + When the theme is in the legacy format: ```Output { From d7d4e6b49aec813f1771c5cebc26d3369af65729 Mon Sep 17 00:00:00 2001 From: Rongqi Zhou Date: Mon, 13 Oct 2025 17:26:39 +0800 Subject: [PATCH 4/6] update --- .../Microsoft.Online.SharePoint.PowerShell/Get-SPOTheme.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOTheme.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOTheme.md index fe2f02afd..4bb11537e 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOTheme.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOTheme.md @@ -34,7 +34,8 @@ This example shows how to use the **Get-SPOTheme** cmdlet to return the settings Get-SPOTheme -Name "Custom Cyan" | ConvertTo-Json 4 ``` -When the theme is in the new format: +#### Return Value Examples +Theme in new format ```Output { "Name": "Custom Cyan", @@ -49,6 +50,7 @@ When the theme is in the new format: } ``` +Theme in legacy format When the theme is in the legacy format: ```Output { From df2d5d18305c02c0f490154123fd3cc07bb2a067 Mon Sep 17 00:00:00 2001 From: Rongqi Zhou Date: Mon, 13 Oct 2025 17:36:54 +0800 Subject: [PATCH 5/6] update --- .../Microsoft.Online.SharePoint.PowerShell/Get-SPOTheme.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOTheme.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOTheme.md index 4bb11537e..021cb08c0 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOTheme.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOTheme.md @@ -36,7 +36,7 @@ Get-SPOTheme -Name "Custom Cyan" | ConvertTo-Json 4 #### Return Value Examples Theme in new format -```Output +``` { "Name": "Custom Cyan", "Palette": null, @@ -51,8 +51,7 @@ Theme in new format ``` Theme in legacy format -When the theme is in the legacy format: -```Output +``` { "Name": "Custom Cyan", "Palette": { From 0becd8bce1b755795932405d17cc4689d4470872 Mon Sep 17 00:00:00 2001 From: Rongqi Zhou Date: Mon, 13 Oct 2025 17:40:28 +0800 Subject: [PATCH 6/6] test --- .../Microsoft.Online.SharePoint.PowerShell/Get-SPOTheme.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOTheme.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOTheme.md index 021cb08c0..277d04186 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOTheme.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOTheme.md @@ -36,6 +36,7 @@ Get-SPOTheme -Name "Custom Cyan" | ConvertTo-Json 4 #### Return Value Examples Theme in new format + ``` { "Name": "Custom Cyan", @@ -51,6 +52,7 @@ Theme in new format ``` Theme in legacy format + ``` { "Name": "Custom Cyan",