Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to change filter navigator background color and font color in polaris view

Community Alums
Not applicable

Hi,

 

Can anyone help me like how we can change the filter navigator background color and font colors in Polaris view. Thank You!

 

Regards,

Ganesh

1 ACCEPTED SOLUTION

Community Alums
Not applicable

@Community Alums 

 

There sure is. The following property governs what the 'application menus and modules' colour will be when you are searching:  "--now-color--neutral-4": "0,0,0"

 

I added your theme to my instance, along with the property above, and this is the result. Was this what you were looking for? If so, give it a thumbs up to help others find it 😁

 

JamesBustard_0-1679356380352.png

 

Regards

James

View solution in original post

10 REPLIES 10

Community Alums
Not applicable

@Community Alums : Please help me on this if you have idea. Thank you in advance. 

 

Regards,

Ganesh

Community Alums
Not applicable

@Community Alums i hope you are asking about displaying matching filter result text, i had same question when I had to create a light theme ,but unfortunately Servicenow uses neutral color as filter background so if you change this will impact on classic UI section of form.

I even had a hi case last time and they said there is nothing till Tokyo from their side in this.

So nothing we have as of now to change this because this is not link with any specific property for themeing.

Hope this will help.

Community Alums
Not applicable

"So nothing we have as of now to change this because this is not link with any specific property for themeing."

 

We are running a highly customised theme in Tokyo. My post from earlier shows some of the properties in themes available to us. Tokyo is indeed out and available to the public. I can appreciate not all organisations are already upgraded to it. 

 

There does indeed appear to be all the settings Ganesh will need to accomplish what he's wanting; filter navigator background colour, font colour manipulation etc. 

 

I hadn't tried this in San Diego, so I can't speak to the theming there.

 

Regards, 

James

Community Alums
Not applicable

Hi Ganesh

I'm in the process of creating a new theme and am working on that exact question. 

There are a few properties that manage the colours. 

 

- If you haven't already, create a new theme (Next Experience UI - Understanding Themes)

- If you already have your theme created and want to modify the navigator background. Navigate to the 'sys_ux_style' table and open your theme. 

 

The properties I've found so far that govern the colours in question are: 

 

"properties": {
 "--now-unified-nav_menu-filter--background-color": "195,67,153",
"--now-unified-nav_menu-filter--background-color--hover": "0,0,0",
"--now-unified-nav_menu-filter--background-color--opened": "195,67,153",
"--now-unified-nav_menu-filter--color--placeholder--focus": "255,255,255",
"--now-unified-nav_menu-filter--color--opened": "255,255,255",

}

 

I modified the colours for exaggeration to illustrate. I don't have my background colour pink normally 😅

JamesBustard_0-1678937546865.png

 

In particular, the ""--now-unified-nav_menu-filter--color--opened": "255,255,255"," property sets the colour of the text in the menu filter. 

 

The link I shared earlier shows how to modify fonts. 

Hope this helps 👍

 

Regards

James