Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

NowWebTheme interface- Android

The NowWebTheme interface provides properties that enable you to override the colors used within web pages hosted on your ServiceNow instance in a native web view.

The NowWebTheme interface extends the NowUITheme interface and inherits the property nowUIColoring.

val nowUIColoring: NowUIColoring?

This property is used to reference color variables that NowWebTheme can use. For additional information on how to theme the UI, see Use NowUIColoring to theme NowWebTheme and NowChatTheme in the Mobile SDK Developer Guide - Android.

NameDescription
alertCritical0Use for: - error messages - snackbar background Default value: \#F8C8CD
alertCritical3Use for: - error messages - snackbar border Default value: \#B61C2D
alertPositive0Use for: - success messages - snackbar background Default value: \#CADFC0
alertPositive3Use for: - success messages - snackbar border Default value: \#266108
alertWarning0Use for: - warning messages - snackbar background Default value: \#FBF7BF
alertWarning3Use for: - warning messages - snackbar border Default value: \#B6AA00
backgroundPrimaryUse for: - card background - choice picker - input background - neutral background Default value: \#FFFFFF
backgroundSecondaryUse for overflow menu background.Default value: \#F6F6F8
backgroundTertiaryActionableUse for the background color for the topic dialog search and edit text.Default value: \#454D5B
brandUse for the header background in the toolbar and tables.Default value: \#302F4B
notificationUse for new message indicator.Default value: \#B61C2D
primaryUse for:- actionable text - button backgrounds Default value: \#4F52BD
screenHeaderTextUse for text and icon elements with a fixed color that appear on top of the brand color \(screen header/toolbar\).Default value: \#FFFFFF
textActionableUse for: - highlighted background - text on action buttons Default value: \#FFFFFF
textPrimaryUse for: - alert dialog messages - card header text - chat bubble text - picture title and description - topic text Default value: \#151920
webPageThemeIdSys\_id of the theme to apply to the ServiceNow web pages loaded by NowWeb. Default value: Configured default theme Table: UX Theme \[sys\_ux\_theme\] table.
webPageThemeVariantIdSys\_id of the theme variant to apply to the ServiceNow web pages loaded by NowWeb. Default value: Configured default theme variant Table: UX Style \[sys\_ux\_style\] table.

Parent Topic:Mobile SDK - Android