---
sourceDocument: Brazil API Reference
sourceDocumentLink: https://www.servicenow.com/docs/r/api-reference

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil API Reference

ft:clusterId :

    - crapiref

bundleId :

    - crapiref

workflow :

    - Creator


---

# NowWebColoring protocol - iOS

# NowWebColoring protocol - iOS {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of NowWebColoring protocol - iOS

The NowWebColoring protocol defines default color values for web pages hosted within your ServiceNow instance when displayed in a native iOS web view using NowWeb.
It standardizes the color scheme for various interface elements such as banners, text, backgrounds, and action indicators to ensure a consistent and visually coherent user experience across the ServiceNow mobile environment.
Show full answer Show less  

## Key Features

* **Color Customization for Web Interface Elements:** Includes default colors for error banners, success messages, informational banners, warnings, backgrounds, text, and navigation elements.
* **Dark and Light Mode Support:** Each color property defines default values for both dark and light modes, enabling seamless theming based on user preferences or device settings.
* **Theme and Style Integration:** Supports applying specific themes and theme variants to ServiceNow web pages via the `webPageThemeId` and `webPageThemeVariantId` properties, linked to the UX Theme and UX Style tables respectively.
* **Extensibility:** Developers can override any or all default colors by customizing the protocol's properties in the iOS extension, allowing tailored branding and UI adjustments.

## Key Outcomes

* **Consistent User Interface:** Ensures web pages rendered in the NowWeb native view adhere to a unified color scheme matching your organization's brand and accessibility requirements.
* **Improved Visual Clarity:** Differentiated colors for alerts (critical, positive, warning, informational) and actionable items improve user recognition and responsiveness within the mobile app.
* **Seamless Theme Management:** Integration with ServiceNow's UX Theme and Style tables allows centralized management of web page appearance without code changes.
* **Enhanced Branding:** Customizable colors for loading indicators, buttons, and text elements support consistent brand representation across all mobile web content.  
The NowWebColoring protocol provides default values for the colors used within web pages hosted on your ServiceNow instance in a native web view.
The colors specified in the table below define the default web interface colors.
{#NowWebColoringiOSProtocol__entry__2}

| Name | Description |
|-|-|
| alertCritical0 | Background color applied to the error banner. Default dark color: #7B1E28 Default light color: #F8C8CD |
| alertCritical3 | Text color applied to the error text banner. Default dark color: #E46876 Default light color: #B61C2D |
| alertLow0 | Background color applied to the info banner. Default dark color: #DBDBDE Default light color: #DBDBDE |
| alertPositive0 | Background color of the banner that displays success messages. Default dark color: #CADFC0 Default light color: #CADFC0 |
| alertPositive3 | Text color of the banner that displays success messages. Default dark color: #3B7F00 Default light color: #3B7F00 |
| alertWarning0 | Background color applied to the warning banner. Default dark color: #FBF7BF Default light color: #FBF7BF |
| backgroundPrimary | Background color applied to the view containing the web view. Default dark color: #07080B Default light color: #FFFFFF |
| brand | Color applied to the activity indicator shown while loading pages. Default dark color: #302F4B Default light color: #302F4B |
| primary | Tint color applied to action sheet on the web screen. Default dark color: #8486FF Default light color: #4F52BD |
| screenHeaderBackground | Text color applied to button badges. This color is also applied to a thin border around the badge. Default dark color: #CADFC0 Default light color: #CADFC0 |
| screenHeaderText | * Text color applied to button badges * Tint color applied to disabled navigation bar buttons, banner text, and banner icon tint on the web screen. Default dark color: #FFFFFF Default light color: #FFFFFF |
| textActionble | Text color for action button. Default dark color: #07080B Default light color: #FFFFFF |
| textPrimary | Text color applied to font. Default dark color: #FFFFFF Default light color: #151920 |
| webPageThemeId | Sys_id of the theme to apply to the ServiceNow web pages loaded by NowWeb. Default: Configured default theme Table: Located in the UX Theme \[sys_ux_theme\] table. |
| webPageThemeVariantId | Sys_id of the theme variant to apply to the ServiceNow web pages loaded by NowWeb. Default: Configured default theme variant Table: Located in the UX Style \[sys_ux_style\] table. |
[Table 1. Properties]

The following shows the default colors used for NowWebColoring. You can override any or all of these colors.  

    public extension NowWebColoring {
        var brand: UIColor { nowUIColor.brand }
        var primary: UIColor { nowUIColor.primary }
        var textPrimary: UIColor {
            nowUIColor.textPrimary.withAlphaComponent(0.25)
        }
        var screenHeaderText: UIColor { nowUIColor.screenHeaderText }
        var screenHeaderBackground: UIColor { nowUIColor.screenHeaderBackground }
        var textActionble: UIColor {
            nowUIColor.textActionable
        }
        var alertCritical0: UIColor { nowUIColor.alertCritical0 }
        var alertCritical3: UIColor { nowUIColor.alertCritical3 }
        var alertPositive0: UIColor { nowUIColor.alertPositive0 }
        var alertPositive3: UIColor { nowUIColor.alertPositive3 }
        var alertLow0: UIColor { nowUIColor.alertLow0 }
        var alertWarning0: UIColor { nowUIColor.alertWarning0 }
        var backgroundPrimary: UIColor { nowUIColor.backgroundPrimary }
    }


