Skip to content

Commit b3a4241

Browse files
committed
make the theme obj format aligned
1 parent 9fe1baf commit b3a4241

File tree

1 file changed

+15
-58
lines changed
  • sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell

1 file changed

+15
-58
lines changed

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

Lines changed: 15 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -50,64 +50,21 @@ You can choose which parameter set to use depending on the legacy or new theme f
5050
### Example 1: Add a new format theme
5151
```powershell
5252
$colorPairs = @{
53-
light = @(
54-
@{
55-
accentColor = '#03787C'
56-
backgroundColor = '#ffffff'
57-
},
58-
@{
59-
accentColor = '#ffffff'
60-
backgroundColor = '#03787C'
61-
},
62-
@{
63-
accentColor = '#E3FFFD'
64-
backgroundColor = '#03787C'
65-
},
66-
@{
67-
accentColor = '#03787C'
68-
backgroundColor = '#E3FFFD'
69-
},
70-
@{
71-
accentColor = '#FFF9E3'
72-
backgroundColor = '#03787C'
73-
},
74-
@{
75-
accentColor = '#03787C'
76-
backgroundColor = '#FFF9E3'
77-
},
78-
@{
79-
accentColor = '#03787C'
80-
backgroundColor = '#F5F5F5'
81-
},
82-
@{
83-
accentColor = '#242424'
84-
backgroundColor = '#F5F5F5'
85-
},
86-
@{
87-
accentColor = '#155473'
88-
backgroundColor = '#ffffff'
89-
},
90-
@{
91-
accentColor = '#ffffff'
92-
backgroundColor = '#155473'
93-
},
94-
@{
95-
accentColor = '#155473'
96-
backgroundColor = '#E3FFFD'
97-
},
98-
@{
99-
accentColor = '#E3FFFD'
100-
backgroundColor = '#155473'
101-
},
102-
@{
103-
accentColor = '#FFF9E3'
104-
backgroundColor = '#155473'
105-
},
106-
@{
107-
accentColor = '#155473'
108-
backgroundColor = '#FFF9E3'
109-
}
110-
)
53+
light = @(
54+
@{ "themePrimary": "#ffffff", "backgroundColor": "#03787C"; },
55+
@{ "themePrimary": "#E3FFFD", "backgroundColor": "#03787C"; },
56+
@{ "themePrimary": "#03787C", "backgroundColor": "#E3FFFD"; },
57+
@{ "themePrimary": "#FFF9E3", "backgroundColor": "#03787C"; },
58+
@{ "themePrimary": "#03787C", "backgroundColor": "#FFF9E3"; },
59+
@{ "themePrimary": "#03787C", "backgroundColor": "#F5F5F5"; },
60+
@{ "themePrimary": "#242424", "backgroundColor": "#F5F5F5"; },
61+
@{ "themePrimary": "#155473", "backgroundColor": "#ffffff"; },
62+
@{ "themePrimary": "#ffffff", "backgroundColor": "#155473"; },
63+
@{ "themePrimary": "#155473", "backgroundColor": "#E3FFFD"; },
64+
@{ "themePrimary": "#E3FFFD", "backgroundColor": "#155473"; },
65+
@{ "themePrimary": "#FFF9E3", "backgroundColor": "#155473"; },
66+
@{ "themePrimary": "#155473", "backgroundColor": "#FFF9E3"; }
67+
)
11168
}
11269
11370
Add-SPOTheme -Identity "Teal Theme" -ColorPairs $colorPairs

0 commit comments

Comments
 (0)