Create SharePoint Themes Overview
As SharePoint Online was initially rolling out the modern interfaces for mobile friendly site pages, we quickly found out that we lost the ability to customize these pages in a way we were familiar with. Now, we are able to create SharePoint themes using custom tools and deploy tenant-wide to our organization.
With the introduction of these custom themes, we now have the ability to perform basic customization of site pages in terms of color and font. Microsoft has provided ways to quickly generate new themes and deploy them to our sites. We can use SharePoint Online Management Shell to perform these administrative actions. Designing themes from scratch is easy, however, you still have the ability to choose a primary color and export the configuration. Custom SharePoint themes will be grouped together under the “Company Themes” when you go to change the look of your site.
Create SharePoint Themes Steps
- Design your custom theme using the Theme Generator. Identify your primary theme color, body text color, and body background color.
- Ensure you have downloaded the latest version of SharePoint Online Management Shell. The features available through this management shell are constantly evolving so it is always important to get the latest version. You may need to uninstall the previous version if cmdlets are not available immediately.
- Connecting to your tenant via SharePoint Online Management Shell. Replace the username in the example below. You will be prompted for credentials.
$username="<SharePoint administrator email, example: user@contosoto.com>" $userCredential = Get-Credential -UserName $username -Message "Enter password." Connect-SPOService -Url https://<tenant>-admin.sharepoint.com -Credential $userCredential
- Adding a theme to a tenant using the output from the Theme Generator tool. Choose the PowerShell output to use as an input for this script. Other options are available.
$themepallette = @{ "themePrimary" = "#d60004"; "themeLighterAlt" = "#0b0000"; "themeLighter" = "#150000"; "themeLight" = "#2b0001"; "themeTertiary" = "#5a0001"; "themeSecondary" = "#c10003"; "themeDarkAlt" = "#f40004"; "themeDark" = "#ff3033"; "themeDarker" = "#ff5c5f"; "neutralLighterAlt" = "#0b0b0b"; "neutralLighter" = "#151515"; "neutralLight" = "#252525"; "neutralQuaternaryAlt" = "#2f2f2f"; "neutralQuaternary" = "#373737"; "neutralTertiaryAlt" = "#595959"; "neutralTertiary" = "#fffcfc"; "neutralSecondary" = "#fffdfd"; "neutralPrimaryAlt" = "#fffdfd"; "neutralPrimary" = "#fffafa"; "neutralDark" = "#fffefe"; "black" = "#fffefe"; "white" = "#000000"; "primaryBackground" = "#000000"; "primaryText" = "#fffafa"; "bodyBackground" = "#000000"; "bodyText" = "#fffafa"; "disabledBackground" = "#151515"; "disabledText" = "#595959"; } Add-SPOTheme -Name "Custom Red Black" -Palette $themepallette -IsInverted $false
- Verify that your theme has been added successfully. If you do not see your theme appear, an error may have occurred during the registration.
Get-SPOTheme
- Navigate to your team site and Change the look