Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

How do you create a new variant for the polaris theme?

Erick18
Mega Guru

How do I create a new variant for the polaris theme. I would like to create several new variants similar to Dark mode so that users can select additional theme preferences? 

1 ACCEPTED SOLUTION

Luke7
Tera Expert

You can create new variants for Polaris by creating a new UX Style (sys_ux_style) and setting the type to 'variant'. After saving the record, you will see a m2m related list for UX Theme Styles that you can use to relate your new style back to the Polaris theme. In a variant, you only need to specify the attributes you wish to override - so you don't need to include absolutely everything from the core colors style. 

 

You can also open the existing Dark variant UX Style, insert & stay, and modify the theme as needed. You will still need to relate the style to the Polaris theme using the m2m related list after using insert & stay.

View solution in original post

5 REPLIES 5

thank you @Luke7, it's still relevant in 2026 :))


✂-----Cutting-out-the---✦AI-noise✦---All-replies-written-and-vouched-for-by-GlideFather---