Unable to change login.do background gradient using Polaris system properties

huzaifashah
Tera Contributor

Hello Community,

I am trying to change the login.do page background in ServiceNow so that it shows a two-color gradient instead of a single background color.

I am using Polaris login configuration via system properties (sys_properties).

What I want to achieve

I want the login.do background to use a gradient by changing:

  • background_gradient_begin

  • background_gradient_end

Properties I have configured

The following properties are already created in sys_properties:

But these are not working:

  • glide.ui.polaris.login.style.background_gradient_begin

  • glide.ui.polaris.login.style.background_gradient_end

  • glide.ui.polaris.login.style.mountain_primary

  • glide.ui.polaris.login.style.mountain_secondary

Values I have tried

I tried both formats:

  • "--now-login-background": "138,48,127"

  • 138,48,127

However, only the single background color is applied.
The gradient effect does not appear on the login.do page.

My questions

  1. Is it possible to change the login.do background gradient using these Polaris system properties?

  2. Are background_gradient_begin and background_gradient_end still supported for login.do?

  3. Do these properties require any additional configuration (UI Builder, cache clear, plugin, etc.)?

  4. Or is custom CSS / UI Script the only way to achieve a two-color background on login.do?

Any clarification or working example would be highly appreciated.

 

Regards,
Muhammad Huzaifa

0 REPLIES 0