question

vidanaW-3558 avatar image
0 Votes"
vidanaW-3558 asked ·

SharePoint online custom Theme

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.


office-sharepoint-online
question1.png (39.8 KiB)
question-22.png (191.9 KiB)
· 2
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@vidanaW-3558

I'm checking how the things are going on about this issue. Whether the answer helps you?

You can accept the answer if it helps.


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.


0 Votes 0 ·

@vidanaW-3558

Is there any progress on this issue?

If you find any answers helpful to you, please remember to accept them.

It will help others who meet the similar question in this forum.

Thank you for your understanding.


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.




0 Votes 0 ·

1 Answer

EmilyDu-MSFT avatar image
0 Votes"
EmilyDu-MSFT answered ·

@vidanaW-3558

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.





1.png (72.5 KiB)
2.png (24.6 KiB)
3.png (16.9 KiB)
· 2 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you very much for your reply. When you set the text colour to white, the whole site text will be white. I want only the header and hub navigation text white and the site body/ text on the pages body in black colour. Because my site body colour/ page background color is white.
Thanks.

0 Votes 0 ·

@vidanaW-3558
I don’t think it’s possible to make only the header and hub navigation text white and the site body text on the pages body in black color.

In the SharePoint online modern theme, you can only change the overall text color.


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.


1 Vote 1 ·