Customizing the "Central Theme" in SharePoint to match your company's color theme involves a few steps, including creating a custom theme and applying it to your SharePoint site. Hereβs how you can do it:
Create a JSON file defining your theme colors. Below is an example template for a custom theme JSON file:
{
"themePrimary": "#0078d4",
"themeLighterAlt": "#eff6fc",
"themeLighter": "#deecf9",
"themeLight": "#c7e0f4",
"themeTertiary": "#71afe5",
"themeSecondary": "#2b88d8",
"themeDarkAlt": "#106ebe",
"themeDark": "#005a9e",
"themeDarker": "#004578",
"neutralLighterAlt": "#faf9f8",
"neutralLighter": "#f3f2f1",
"neutralLight": "#edebe9",
"neutralQuaternaryAlt": "#e1dfdd",
"neutralQuaternary": "#d0d0d0",
"neutralTertiaryAlt": "#c8c6c4",
"neutralTertiary": "#a19f9d",
"neutralSecondary": "#605e5c",
"neutralPrimaryAlt": "#3b3a39",
"neutralPrimary": "#323130",
"neutralDark": "#201f1e",
"black": "#000000",
"white": "#ffffff"
}
Replace the hex color codes with your company's brand colors.
company-theme.json.company-theme.json file.Install SharePoint Online Management Shell if not already installed.
Connect to Your SharePoint Online:
Connect-SPOService -Url <https://yourdomain-admin.sharepoint.com>
Create and Apply the Theme:
Add-SPOTheme -Identity "Company Theme" -Palette @{
"themePrimary" = "#0078d4"
"themeLighterAlt" = "#eff6fc"
"themeLighter" = "#deecf9"
"themeLight" = "#c7e0f4"
"themeTertiary" = "#71afe5"
"themeSecondary" = "#2b88d8"
"themeDarkAlt" = "#106ebe"
"themeDark" = "#005a9e"
"themeDarker" = "#004578"
"neutralLighterAlt" = "#faf9f8"
"neutralLighter" = "#f3f2f1"
"neutralLight" = "#edebe9"
"neutralQuaternaryAlt" = "#e1dfdd"
"neutralQuaternary" = "#d0d0d0"
"neutralTertiaryAlt" = "#c8c6c4"
"neutralTertiary" = "#a19f9d"
"neutralSecondary" = "#605e5c"
"neutralPrimaryAlt" = "#3b3a39"
"neutralPrimary" = "#323130"
"neutralDark" = "#201f1e"
"black" = "#000000"
"white" = "#ffffff"
}
Set-SPOTheme -Identity "Company Theme" -IsInverted $false
This will add your custom theme to the theme gallery and apply it across the desired SharePoint sites.
Following these steps will help you customize the "Central Theme" in SharePoint to match your company's branding. If you encounter any issues or need further customization, feel free to ask!