From 9cdde391b248adef667dedcf04b2c1aef9f0aa86 Mon Sep 17 00:00:00 2001 From: Rongqi Zhou Date: Mon, 13 Oct 2025 17:19:12 +0800 Subject: [PATCH 1/9] 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/9] 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/9] 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/9] 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/9] 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/9] 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", From f3b280147f7bc0ffa3e3a08284bb68c886f8b44f Mon Sep 17 00:00:00 2001 From: Rongqi Zhou Date: Mon, 13 Oct 2025 17:43:53 +0800 Subject: [PATCH 7/9] add related links --- .../Get-SPOTheme.md | 42 +------------------ 1 file changed, 2 insertions(+), 40 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 277d04186..50331afe9 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOTheme.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOTheme.md @@ -34,10 +34,7 @@ This example shows how to use the **Get-SPOTheme** cmdlet to return the settings Get-SPOTheme -Name "Custom Cyan" | ConvertTo-Json 4 ``` -#### Return Value Examples -Theme in new format - -``` +```Output { "Name": "Custom Cyan", "Palette": null, @@ -51,42 +48,6 @@ Theme in new format } ``` -Theme in legacy format - -``` -{ - "Name": "Custom Cyan", - "Palette": { - "themeLight": "#affefe", - "themeTertiary": "#76ffff", - "black": "#000000", - "neutralSecondary": "#666666", - "neutralTertiaryAlt": "#c8c8c8", - "themeSecondary": "#39ffff", - "themeDarker": "#005252", - "primaryBackground": "#fff", - "neutralQuaternary": "#d0d0d0", - "neutralPrimaryAlt": "#3c3c3c", - "neutralPrimary": "#333", - "themeDark": "#009090", - "themeLighter": "#daffff", - "neutralTertiary": "#a6a6a6", - "neutralQuaternaryAlt": "#dadada", - "themeLighterAlt": "#f3fcfc", - "white": "#fff", - "neutralSecondaryAlt": "#767676", - "neutralLighter": "#f4f4f4", - "neutralLight": "#eaeaea", - "neutralDark": "#212121", - "themeDarkAlt": "#00c4c4", - "neutralLighterAlt": "#f8f8f8", - "primaryText": "#333", - "themePrimary": "#00ffff" - }, - "ColorPairs": null, - "IsInverted": false -} -``` ### Example 2 @@ -131,3 +92,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ## NOTES ## RELATED LINKS +[Site theme](/sharepoint/site-theme) From 450eea809e5c25afec481e392c105c2092224d2f Mon Sep 17 00:00:00 2001 From: Rongqi Zhou Date: Mon, 13 Oct 2025 17:48:37 +0800 Subject: [PATCH 8/9] test --- .../Get-SPOTheme.md | 35 +++++++++++++++++++ 1 file changed, 35 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 50331afe9..e4f43363b 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,41 @@ Get-SPOTheme -Name "Custom Cyan" | ConvertTo-Json 4 } ``` +If the theme is in legacy format then the output will be like this: + +```Output +{ + "Name": "Custom Cyan", + "Palette": { + "themeLight": "#affefe", + "themeTertiary": "#76ffff", + "black": "#000000", + "neutralSecondary": "#666666", + "neutralTertiaryAlt": "#c8c8c8", + "themeSecondary": "#39ffff", + "themeDarker": "#005252", + "primaryBackground": "#fff", + "neutralQuaternary": "#d0d0d0", + "neutralPrimaryAlt": "#3c3c3c", + "neutralPrimary": "#333", + "themeDark": "#009090", + "themeLighter": "#daffff", + "neutralTertiary": "#a6a6a6", + "neutralQuaternaryAlt": "#dadada", + "themeLighterAlt": "#f3fcfc", + "white": "#fff", + "neutralSecondaryAlt": "#767676", + "neutralLighter": "#f4f4f4", + "neutralLight": "#eaeaea", + "neutralDark": "#212121", + "themeDarkAlt": "#00c4c4", + "neutralLighterAlt": "#f8f8f8", + "primaryText": "#333", + "themePrimary": "#00ffff" + }, + "IsInverted": false +} +``` ### Example 2 From 6439df75d58e7ed5972353a4f5fee1d83c037b6c Mon Sep 17 00:00:00 2001 From: Rongqi Zhou Date: Mon, 13 Oct 2025 17:52:11 +0800 Subject: [PATCH 9/9] update --- .../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 e4f43363b..e8dd5e7b7 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOTheme.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Get-SPOTheme.md @@ -48,7 +48,7 @@ Get-SPOTheme -Name "Custom Cyan" | ConvertTo-Json 4 } ``` -If the theme is in legacy format then the output will be like this: +If the theme is in legacy format, the output will be: ```Output {