SharePoint online custom Theme

vidanaW 1 Reputation point
2021-03-06T23:52:58.267+00:00

Hi All,

Bit urgent help needed. :sad:

I have created an site (SharePoint Online) with a communication site(HubSite ) and associate sites. Now I m in the midle of creating the theme. My main color is Orange, but I want to have a Gray color in the top navigation ( Header theme, Site bar + hub bar), also want to have Header text white color ( Site nav, site name, Hub name, and Hub nav text) without affecting the site main body text color (which is blank) or main body background color.

75007-question1.png

Following is the main selected (approved) color combination for the site.
75057-question-22.png

I tried following but the SIte header still Orange (primary color)

$palette =@{
"themePrimary" = "#cc4e0a";
"themeLighterAlt" = "#4a4a4a";
"themeLighter" = "#f7ded1";
"themeLight" = "#f0c3ab";
"themeTertiary" = "#e08d60";
"themeSecondary" = "#d26022";
"themeDarkAlt" = "#b84609";
"themeDark" = "#9b3b08";
"themeDarker" = "#722c06";
"neutralLighterAlt" = "#f8f8f8";
"neutralLighter" = "#f4f4f4";
"neutralLight" = "#eaeaea";
"neutralQuaternaryAlt" = "#dadada";
"neutralQuaternary" = "#d0d0d0";
"neutralTertiaryAlt" = "#c8c8c8";
"neutralTertiary" = "#a19f9d";
"neutralSecondary" = "#ffffff";
"neutralPrimaryAlt" = "#3b3a39";
"neutralPrimary" = "#323130";
"neutralDark" = "#201f1e";
"black" = "#000000";
"white" = "#ffffff";

Custom

"backgroundOverlay" = "#4a4a4a"; #dimgray
"neutral" = "#4a4a4a"; #dimgray
}

Appreciate your advice. Thanks.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,761 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Emily Du-MSFT 42,101 Reputation points Microsoft Vendor
    2021-03-08T08:25:19.98+00:00

    @vidanaW

    Here’re steps:

    1.Set colors in the Fluent UI Theme Designer.
    75210-1.png
    2.Click "Export theme" in the upper right corner.
    3.Get the PowerShell.
    4.Open SharePoint Online Management Shell, run Connect-SPOService -Url https://tenant-admin.sharepoint.com
    5.Run below PowerShell.

    $themepalette =@{  
    "themePrimary" = "#ca5010";  
    "themeLighterAlt" = "#fdf7f4";  
    "themeLighter" = "#f6dfd2";  
    "themeLight" = "#efc4ad";  
    "themeTertiary" = "#df8f64";  
    "themeSecondary" = "#d06228";  
    "themeDarkAlt" = "#b5490f";  
    "themeDark" = "#993e0c";  
    "themeDarker" = "#712d09";  
    "neutralLighterAlt" = "#9c9b99";  
    "neutralLighter" = "#9a9897";  
    "neutralLight" = "#939291";  
    "neutralQuaternaryAlt" = "#898887";  
    "neutralQuaternary" = "#838280";  
    "neutralTertiaryAlt" = "#7e7d7b";  
    "neutralTertiary" = "#c8c8c8";  
    "neutralSecondary" = "#d0d0d0";  
    "neutralPrimaryAlt" = "#dadada";  
    "neutralPrimary" = "#ffffff";  
    "neutralDark" = "#f4f4f4";  
    "black" = "#f8f8f8";  
    "white" = "#a19f9d";  
    }  
    
    Add-SPOTheme -Identity "MyTheme" -Palette $themepalette -IsInverted $false  
    

    6.Go to the SharePoint site -> Site settings -> Change the look -> Choose the new theme.
    75381-2.png
    75354-3.png
    Reference:
    How to Create a Custom SharePoint Theme


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. TCH 1 Reputation point
    2022-02-16T14:36:01.207+00:00

    Hello Vidana,

    Did you find a solution to change hub nav text color white ? Is there any progress on this issue? Thank you