Forum Discussion
Group Colors -- please make them more consistent... see examples in screenshot
I'm not really sure if you're talking about the color scheme of the outlook group, or the associated SharePoint teamsite, but here's how we manage both.
The outlook group's theme is set based on the group image. We make sure this is a colourful tile in the right colour (tip: metro studio). Group appearance changes, usually a little darker colour of the same palette is chosen for background/lines etc.
The group image is synchronized to the associated teamsite (this is ootb). In a provisioning scenario, you may manage the themefile of your modern teamsite using the following pnp powershell commands:
$themefile = 'path-to-your-teamfile'
Connect-PnPOnline $url -Credentials $credentials Add-PnPFile -Path $themefile -Folder SiteAssets $web = Get-PnPWeb $palette = $web.ServerRelativeUrl + "/SiteAssets/" + $themefile $web.ApplyTheme($palette, [NullString]::Value, [NullString]::Value, $false) $web.Update() # Set timeout as high as possible and execute $web.Context.RequestTimeout = [System.Threading.Timeout]::Infinite $web.Context.ExecuteQuery()
Note that only the ContentAccent1 value of your themefile dicates the appearance of the modern teamsite. Other content values only play a role in things like calendar overlays in different colours.
- Clint LechnerJun 09, 2017Iron Contributor
Thanks Deleted -- adding a colored icon to the Outlook piece that matches my Modern Group actually fixed a few places but then the Sharepoint Home page didn't update the background color, just the icon. It's a give and take I guess....
- Annie WongJun 09, 2017Copper Contributor
In regards to run this code, I tried running the same lines of code to apply theme for o365 sp team site. Everything looks great except for the last line. Update the last line of code as Execute-PnPQuery and it works.
- DeletedJun 11, 2017
Thanks Annie Wong, that command is more stable in terms of timeout too i guess!
- Clint LechnerJun 08, 2017Iron Contributor
Here's an example.......... this group's theme/icon has not been edited in any place but you never know what you're going to get when/where it shows up. Perhaps setting it in powershell would cause things to resync and get some consistency. The point is, this is a little (or more than a little) inconsistent. We've got........... red, green, blue, orange..........