List of CSS Theme Variables

davidmcdonald
Kilo Guru

Hi all,

We're looking to do a slightly in-depth theme customisation of the UI16 interface. It looks like theme's use variables to populate the CSS that goes out to the client, the ones that start with a $.

However, I'm having issues locating a complete list of the variables available for use.

I've been able to piece together a couple from the docs.servicenow.com article;

Default CSS styles

and from the default themes available, but I still haven't located a solid & complete list.

Any thoughts?

1 ACCEPTED SOLUTION

Jim Coyne
Kilo Patron

Although this question is a bit older, this post may help for Istanbul-specific instances - Istanbul Theme Properties Visual Guide


View solution in original post

14 REPLIES 14

davidmcdonald
Kilo Guru

Ones that I've found so far;


     


SectionDescriptionVariableNotes
Header ColorsSearch text color$search-text-colorFound in Terminal theme
Header ColorsTopbar background color$navpage-header-bgFound in Terminal theme
Header ColorsTopbar text color$navpage-header-colorFound in Terminal theme
Header ColorsBottom border color on topbar$navpage-header-divider-colorFound in Terminal theme
Header ColorsTop Navbar button color$navpage-header-button-colorEstimated & worked
Left nav and navigation toolbar background colorNavigator hover color$nav-highlight-mainFound in Terminal theme
Left nav and navigation toolbar background color$nav-highlight-subEstimated & worked
Left nav and navigation toolbar background color$nav-highlight-subnavEstimated & worked
Left nav and navigation toolbar background colorBackground for expanded navigation items$subnav-background-colorFound in Terminal theme
Left nav and navigation toolbar background colorBackgorund for navigator (left side only)$navpage-nav-bgFound in Terminal theme
Left nav and navigation toolbar background colorBackground for Favorites list, history list, and Connect list background$navpage-nav-bg-subFound in Terminal theme
Left nav and navigation toolbar background colorText color in main navigation$navpage-nav-color-subFound in Terminal theme
Left nav and navigation toolbar background colorText color when hovering over items in main nav$navpage-nav-mod-text-hoverFound in Terminal theme
Left nav and navigation toolbar background colorDivider color in Navigator$nav-hr-colorFound in Terminal theme
Navigator tabsActive nav item underneath search$nav-highlight-bar-activeFound in Terminal theme
Navigator tabsInactive nav items underneath search$nav-highlight-bar-inactiveFound in Terminal theme
Navigator tabsBackground for currently selected navigation item underneath search$navpage-nav-selected-bgFound in Terminal theme
Navigator tabsColor of icon for currently active nav item$navpage-nav-selected-colorFound in Terminal theme
Navigator tabsColor of icons for non inactive nav items$navpage-nav-unselected-colorFound in Terminal theme
Navigator Application textColor for latest connect messages in right bar$connect-latest-messageFound in Terminal theme
Navigator Application textTimestamp header backgrounds in History tab$nav-timeago-header-colorFound in Terminal theme
Navigator Application textCore content text color$navpage-nav-app-textFound in Terminal theme
Navigator Application textCore content text color hover$navpage-nav-app-text-hoverFound in Terminal theme
Color of outline for search$navpage-nav-borderFound in Terminal theme
Default button/icon colors$navpage-button-colorFound in Terminal theme
Hover color for ^^^$navpage-button-color-hoverFound in Terminal theme

Nice mapping of the CSS styles and what area they change.


Very nice mapping. I'd love to see that image on the ServiceNow docs or wiki, it'd be perfect.