Skip to main content

Color attributes

This document consists of all color attributes that UX Framework uses by default. You can override them in your application code. Use Colors Schema guide for details.

GUIDE
Colors Schema

The document about how to configure colors in the app built on top of the UX Framework.

The Android Navigation SDK UX Framework incorporates a comprehensive design system based on style attributes. This design system enhances the visual consistency and user experience across various components and screens of the application. The design system is defined using the DashStyle styleable element in XML, which encapsulates various style attributes for customization.

DashStyle Attributes

The DashStyle styleable defines a set of attributes, each of which corresponds to a specific aspect of the design system. These attributes enable customization of colors used throughout the application. The design system's colors are categorized into different groups, each with its own set of subgroups. This categorization facilitates easy and consistent application of colors across the application's UI.

Text Colors Schema

Attribute NameAttribute TypeDescriptionDay ColorNight Color
text_color_primarycolorMain text color used throughout the application.
#05070A
#EDEFF2
text_color_secondarycolorSecondary text color for less prominent elements.
#536275
#A6B2C6
text_color_tertiarycolorTertiary text color for low-priority or subtle elements.
#B4BAC6
#3B4252
text_color_linkscolorColor used for hyperlinks.
#3072F5
#407CF5
text_color_accentcolorAttention-grabbing text color.
#3072F5
#407CF5
text_color_invertedcolorText color for inverted backgrounds.
#FFFFFF
#EDEFF2
text_color_redcolorText color indicating errors or warnings.
#EB252A
#EA3136

Background Colors Schema

Attribute NameAttribute TypeDescriptionDay ColorNight Color
background_color_primarycolorPrimary background color.
#FFFFFF
#181B20
background_color_secondarycolorSecondary background color.
#F2F4F7
#292C33
background_color_tertiarycolorTertiary background color.
#EAECEF
#3B4252
background_color_quaternarycolorQuaternary background color.
#F2F4F7
#181B20
background_color_fadecolorFade background color.
#B305070A
#B3181B20
background_color_sidebarcolorSidebar background color.
#D9FFFFFF
#D9090A0B

Icons Color Schema

Attribute NameAttribute TypeDescriptionDay ColorNight Color
icon_color_primarycolorPrimary color for icons.
#23262D
#EDEFF2
icon_color_secondarycolorSecondary color for icons.
#697388
#A6B1C6
icon_color_invertedcolorIcon color for use on inverted backgrounds.
#FFFFFF
#EDEFF2
icon_color_redcolorIcon color indicating errors.
#EB252A
#EA3136
icon_color_greencolorIcon color indicating success.
#09AA74
#0BDA95
icon_color_accentcolorIcon color for emphasizing elements.
#3064F5
#407CF5

Buttons Color Schema

Attribute NameAttribute TypeDescriptionDay ColorNight Color
button_color_primarycolorPrimary button color.
#3072F5
#407CF5
button_color_secondarycolorSecondary button color.
#FFFFFF
#181B20
button_color_tertiarycolorTertiary button color.
#B4BAC6
#3B4252
button_color_quaternarycolorQuaternary button color.
#FFFFFF
#292C33
button_color_transparentcolorButton color with transparency.
#00FFFFFF
#00FFFFFF
button_color_redcolorButton color indicating critical actions.
#EB252A
#EA3136

Borders Color Schema

Attribute NameAttribute TypeDescriptionDay ColorNight Color
border_color_primarycolorPrimary border color.
#DFE2E8
#303642
border_color_accentcolorBorder color for accentuated elements.
#3072F5
#407CF5
border_color_redcolorBorder color indicating errors.
#EB252A
#EA3136

Search Pins Color Schema

Attribute NameAttribute TypeDescriptionDay ColorNight Color
search_pin_color_primarycolorPrimary color for search pins.
#FFFFFF
#EDEFF2
search_pin_color_on_primarycolorColor for search pin text on a primary background.
#05070A
#05070A
search_pin_color_accentcolorAccent color for search pins.
#3064F5
#407CF5
search_pin_color_on_accentcolorColor for search pin text on an accent background.
#FFFFFF
#EDEFF2

Destination Pins Color Schema

Attribute NameAttribute TypeDescriptionDay ColorNight Color
destination_pin_color_primarycolorPrimary color for destination pins.
#EB252A
#EA3136
destination_pin_color_secondarycolorSecondary color for destination pins.
#3064F5
#407CF5

Speed Limit Colors

Attribute NameAttribute TypeDescriptionDay ColorNight Color
speed_limit_color_primarycolorPrimary color for speed limit indicators.
#FFFFFF
#FFFFFF
speed_limit_color_on_primarycolorColor for speed limit text on a primary background.
#05070A
#05070A
speed_limit_color_secondarycolorSecondary color for speed limit indicators.
#FFFFFF
#181B20
speed_limit_color_on_secondarycolorColor for speed limit text on a secondary background.
#05070A
#F2F4F5
speed_limit_color_accentcolorAccent color for speed limit indicators.
#EB252A
#EA3136
speed_limit_color_on_accentcolorColor for speed limit text on an accent background.
#FFFFFF
#FFFFFF

Guidance Colors

Attribute NameAttribute TypeDescriptionDay ColorNight Color
guidance_color_primarycolorPrimary color for guidance elements.
#3072F5
#407CF5
guidance_color_on_primarycolorColor for guidance text on a primary background.
#FFFFFF
#EDEFF2
guidance_color_on_primary_50colorSemi-transparent color for guidance text on a primary background.
#7FFFFFFF
#7FEDEFF2
guidance_color_secondarycolorSecondary color for guidance elements.
#1B43B4
#1F55C2
guidance_color_on_secondarycolorColor for guidance text on a secondary background.
#FFFFFF
#EDEFF2
guidance_color_on_secondary_50colorSemi-transparent color for guidance text on a secondary background.
#7FFFFFFF
#7FEDEFF2
guidance_color_tertiarycolorTertiary color for guidance elements.
#FFFFFF
#181B20
guidance_color_on_tertiarycolorColor for guidance text on a tertiary background.
#05070A
#EDEFF2
guidance_color_on_tertiary_50colorSemi-transparent color for guidance text on a tertiary background.
#7F05070A
#7FEDEFF2
Was this page helpful?