Configuring the Polaris UI themes

Mark251
Mega Guru

I am trying to configure the Polaris themes and am having an
I have created a new theme with 2 variants and set the following system properties
glide.ui.polaris.theme.custom --> To point to my custom theme
glide.ui.polaris.theme.variant -> To point to the default variant
The Theme is configured like attached.
The issue is that when I select what Theme to configure, the default one is still there.
I wish to disable the default so the user only can select from the 2 I provide. I am happy to make one of mine the default but do not know how

1 ACCEPTED SOLUTION

I raised a ticket to ServiceNow and they could not do it eaither however I then figured it out myself.

I created a new theme and copied all the same Styles as Polaris with the exception of the one called "Colors"
I copied Colors and modified the settings to be the Colours I desired, this sets the default colour scheme
I set the system property to be my new theme rather than Polaris

View solution in original post

8 REPLIES 8

Aman Kumar S
Kilo Patron

Description

Setting the same theme for all users in an instance.

Resolution

  1. Go to the 'Filter' menu located in the top left corner of the screen, enter 'sys_user_preference.list
  2. Click on New 
  3. Name: 'glide.css.theme.ui16'
  4. System: true 
  5. Leave User field blank 
  6. Type: String 
  7. Value: [the sys_id of the theme you want to set]
  8. Submit
  9. Now all the users in the instance will have the same theme

 

Feel free to mark correct, If I answered your query.

Will be helpful for future visitors looking for similar questions 🙂

Best Regards
Aman Kumar

Mark251
Mega Guru

Hi Aman

Thank you for the quick reply however I am not working with the UI16 interface, I am configuring the "Next Experience Polaris" interface that is new with San Diego.

In this "Polaris" UI I have set the default as detailed in my original post however IU want to remove the option for the users to select the "Default" theme when they go to their preferences.

Jason Nichols
ServiceNow Employee
ServiceNow Employee

Hi Mark, check your instance version. You need at least San Diego Patch 1, which includes a fix for PRB1556654, which prevents the default theme from being overridden. (I experienced the same issue in my PDI which only had Patch 0 Hotfix 1.)

Mark251
Mega Guru

Hi Jason

I am on San Diego Patch 2 Hotfix 1