Using CSS from current theme in UI pages
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2015 11:58 AM
I know I can reference CSS from an actual stylesheet:
http://www.john-james-andersen.com/blog/service-now/flexible-styling-servicenow-ui-pages-macros.html
However, themes in ServiceNow, though they are nothing more than CSS are not technically CSS files..
How can I reference the current theme and include it along with my form specific CSS?
Alternatively, is it possible to evaluate a jelly variable to inject it's value into the "Style" element?
Thanks,
-Stephen

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2015 01:25 PM
I think the themes are in stylesheets and I think you may be able to include it where the style href is something like:
/styles/css_includes_navpage14.cssx?v=08-03-2015_1347&c=2014-12-16_13:32:17_9fdfc38a4fe2c20067d9b5e18110c7b8&theme=<sysid of theme>
You can also define styles inline on your ui page and use jelly variables for the values.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2015 01:37 PM
Thanks Brad,
Inline makes sense, since those take strings.
Not as easy to dump an entire theme in, but I could certainly parse out a section of the theme and apply it to an element on the UI Page.