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.

Banner color breaking the outline fields

Paulo Machado
Kilo Sage

Hi, everyone.


I am facing a simple problem that is giving me a big headache.

I am trying to change the color of the banner for the instance. At first, I tried using the UI16 Config, but it didn’t work. So, I configured a theme:

{
    "base": {},
    
    "properties": {
        "--now-unified-nav_header--background-color": "0, 50, 160", 
        "--now-unified-nav_menu--background-color": "0, 50, 160",
        "--now-content-tree_sidebar--background-color--selected": "0, 0, 0"
    }
}


The banner color was changed, but the borders of the fields disappeared.

PauloMachado_0-1743414414880.png


I’ve tried altering the code, but the borders only appear when I disable the theme. Does anyone have any suggestions?

Thanks in advance.

1 ACCEPTED SOLUTION

@Robert HI used the 'Theme Builder' and successfully implemented the new theme.
Thank you for your  time.

Regards
Paulo

View solution in original post

5 REPLIES 5

Robert H
Mega Sage

Hello @Paulo Machado ,

 

Can you please advise what exactly is not working when you try to update the color via UI 16 Configuration? I just tried it on a new instance and the color was updated just fine.

RobertH_0-1743418720416.png

 

Edited:

Can you please advise which UI you are using? Looking at the code you provided this seems to be a Next Experience/ Polaris style, not a UI 16 Theme.

If you're talking about Next Experience please review this documentation. It seems that the color overrides belong into the "base" section, not in "properties".

 

Regards,

Robert

 

Not working here:

PauloMachado_1-1743421947554.png


I tested it in an anonymous sheet on Chrome, and it didn't work.

 

 

Hello @Paulo Machado ,

 

Ok, so you are actually using Next Experience UI. UI16 Configuration won't do anything because it is a different UI altogether.

Have you reviewed the documentation link that I provided in my initial response? Here's also a very detailed article.

 

Regards,

Robert

I previously visited the link you sent and used it, but as you can see in the image below, when I change the color according to the theme, the black outline around the fields disappears.

PauloMachado_0-1743429319861.png