Modify banner background in NextExperience UI (San Diego)

Matt Grover1
Giga Contributor

I am working with the Next Experience UI for the first time, and am struggling to implement a seemingly simple change of the banner color in the new UI.  I have been able to create a new theme variant for the Polaris theme, and created a new color style to overwrite some of the OOB colors.  However, when copy/pasting from the OOB color style, there are hundreds of CSS properties, and it's difficult to know which ones control each UI component.  Following some other threads, I was able to change the primary, secondary, and neutral colors, as well as the now-color-chrome-brand properties to match my color scheme.  However, I'm not seeing anything that is affecting the banner itself:

find_real_file.png

 

Attempting to change banner colors in areas like basic ui16 or css system properties is not effective.  I have seen the docs for modifying several theme properties, including changing the banner image, but found them lacking for describing a simple color change.  Has anyone had any success with this that they can share?

1 ACCEPTED SOLUTION

Jack
Tera Guru

Hi Matt,

You can try this:

  1. Define UX Style
    find_real_file.png
  2. Add this into Polaris theme (OOTB) --> trick here (m2m_theme_style)
    find_real_file.png
  3. Switch to use this theme
    find_real_file.png

    find_real_file.png


Hope this will help!

View solution in original post

8 REPLIES 8

Hi Rohana,

Please check your instance if this is switched to use next experience (polaris theme).

https://docs.servicenow.com/bundle/sandiego-platform-user-interface/page/administer/navigation-and-u...

Community Alums
Not applicable

Thanks, Jack. Yes. The Polaris properties is enabled. See attached image. Thanks!

Not sure, but, seems to be you are using only 1 theme.

Try to enable dark theme, then check again if you can switch normal/dark theme from Preferences menu.

find_real_file.png

Matt Grover1
Giga Contributor

Thanks Jack,

 

Yes, that's very helpful indeed.  

 

So essentially, the top banner color is controlled by the properties:

 

"--now-unified-nav_header--color": "<rgb value>",                          <----controls banner text color
"--now-unified-nav_header--background-color": "<rgb value>",     <----controls background color

 

And it looks like the background-color property can be modified with -start and -end properties if you desire a color gradient.