How to update the background header color in the Next UI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2022 05:58 AM
Before the Next UI, we always had a different background color on all of our lower environment instances to quickly tell them apart. After switching to Next UI we lost that capability and I did a lot of searching on how to regain this functionality. I could not find the answer in one spot. After much searching I was able to cobble together the solution and I am passing those results on here. We have tested this and have not had any issues.
- Go to sys_ux_style.list
- Open Colors
- Copy All of JSON in the style box
- Return to the UX Styles List and Click New
- Enter a name
- Paste in the JSON you previously copied
- Search for “now-unified-nav_header--background-color”
- In the Red text change the default color to the RGB color you want (hint: if you scroll to the top of the style you will see many examples of RGB colors you can copy)
- Click Submit
- Open Colors
- Go to sys_ux_theme.list and click new
- Give it a name
- On the Compositional App Theme Click on the style column and choose the style you created in the previous step
- Then use the insert a new row functionality and add three more styles
- UI16 Dashboard Visualization Compatibility
- Shape and Form
- Typography
- Save the Theme
- Ensure all the styles have an order of 0 and a type of Core
- Copy the sys id
- Got to sys_properties.list and click NEW
- Name - glide.ui.polaris.theme.custom
- Type – string (should be default)
- Value – the sys id from previous step
- SAVE
- Log out and log back in again and the new banner should be available
- Ensure tables sys_ux_style and sys_ux_theme are excluded from a clone back
I hope this helps all others that have struggled with this
- 12,423 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2024 02:14 AM
Any idea why the sn-themes application has been made private with no warning from ServiceNow?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2024 01:18 PM - edited 07-31-2024 01:22 PM
awesome!!! thanks Vincent!
I see that in the clone profile, "preserve theme" is there under options. If it is checked (by default it is), then we don't need to update the exclusions list?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2025 10:40 PM
Hi @Vincent Daniele Thanks for this its working fine, I followed the same steps to change the header color for the instances, the form view has been changing attached the picture below, any solution for this issue??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2025 11:03 AM
This was a good start for me to understand how the theme works but i wanted to be able to have a set of themes for the users to select and i was able to accomplish this by following the steps of another article:
Navigate to "Now Experience Framework > Themes"
Click on Polaris (not Polaris Default)
Click on style "Dark" in the UX theme styles
Right click and insert & stay
Rename the UX style and save (keep this open)
Now go back to polaris theme and click the "colors" UX style (it is read-only)
Copy all the Style JSON code
Paste this code into your own variant
Change the following variables (pick a RGB colour of your choice )
"--now-color--primary": "79,82,189", (Line 4)
"--now-color--secondary": "79,82,189", (Line 5)
"--now-color_chrome--brand": "48,47,75", (line 19)
On the related list of the UX style UX THEME STYLE, create a new record and add it to Polaris.
Save and refresh.
Go to PROFILE > PREFERENCES > THEME and select the theme variable you just created.
https://www.servicenow.com/community/now-platform-forum/how-do-you-create-a-custom-theme-using-the-n...