Color

null

Firefox colors are bold, vibrant, and attractive. They enhance the user experience by providing visual clues and bringing attention to primary actions.

Usage

Acorn's color palette is intended for styling Firefox user interfaces.

Acorn uses a subset of Mozilla's brand color palette, however, Mozilla's full color palette may be referred to and used for Firefox in-product illustrations—such as onboarding illustrations. You can reference Mozilla's color palette in Protocol, Mozilla's marketing website design system.

Example of the difference in color usage between illustrations and user interface elements within Firefox.

Example of the difference in color usage between illustrations and user interface elements within Firefox.

Full color palette

Below is Acorn's full color palette. Refer to the semantic color palette below to learn the meaning behind our colors and when to use them.

Blue

For the most part, blues apply to elements that use the Firefox brand primary accent color (e.g. primary button, links, focus outline) and element states the primary accent color can adapt to (e.g. hover, active, disabled). Blue is also used to color elements that indicate an informative message or update on desktop and Android and to color-code tab collections on mobile.

05
#aaf2ff
10
#80ebff
20
#00ddff
30
#00b3f4
40
#0090ed
50
#0060df
60
#0250bb
70
#054096

Gray

Grays are used for the background color of pages and overlays (e.g. modals and panels), the background color of buttons, text colors, border colors, and icon colors.

Light

05
#fbfbfe
10
#f9f9fb
20
#f0f0f4
30
#e0e0e6
40
#cfcfd8
50
#bfbfc9

Dark

05
#5b5b66
10
#52525e
30
#42414d
40
#3a3944
60
#2b2a33
80
#1c1b22
90
#15141a

Green

On desktop, greens are used to indicate a new app update and to color elements that represent the concept of "success" and "new update".

On mobile, greens are used for color-coding tab collections.

20
#b3ffe3
40
#54ffbd
60
#2ac3a2

Orange

We use Acorn's lightest orange for the warm tone called "Sepia" in iOS's reading mode.

05
#fff4de

Pink

Pinks are used on mobile for color-coding tab collections.

20
#ff8ac5
60
#e21587

Purple

Purples are used as the private browsing mode accent colors.

60
#952bb9
70
#722291


Red

Reds are reserved for elements that are used to represent critical feedback, errors, or destructive actions.

05
#ffdfe7
10
#ffbdc5
20
#ff9aa2
60
#e22850
70
#c50042
80
#810220

Violet

Mobile platforms use violets for icons, borders, text, and for color-coding tab collections. Android uses violet as a primary accent color.

20
#cb9eff
40
#ab71ff
50
#9059ff
60
#7542e4
70
#592acb

Yellow

On desktop, yellows are used to accent elements that represent the concept of "warning."

On mobile, yellow is used for color-coding tab collections.

20
#ffea80
40
#ffbd4f
50
#ffa436
60
#e27f2e

Semantic color palette

Acorn's semantic color palette correspond to the semantic color concepts used throughout the product (e.g. Blue 50 = Color Accent Primary). This is the palette designers and developers refer to when styling our user interfaces. All of our semantic colors are aliases of the colors from the full color palette above.

Throughout Acorn's documentation—when appropriate and available—you'll see a semantic color value alongside its corresponding dark theme value. You can identify the dark theme color values through this symbol:

null

Accent

Primary

A primary brand accent color is used on recurring user interface elements to give Firefox a distinct look. Therefore, you'll see each platform's primary brand accent color used on primary buttons, focus outlines, links, toggles, checkboxes, and radio buttons.

While desktop and iOS share the same shade for light mode's primary accent color, we are currently improving accent color parity between platforms. Android's primary accent color is currently a violet shade. iOS also has implemented a new dark mode primary accent color shade of blue and desktop is expected to follow suit.

 

Acorn / Desktop / Color / Accent

#0060df
#00ddff

Primary

 

Acorn / Mobile / Color / iOS / Accent

#0060df
#00b3f4

Primary

iOS Name
ActionPrimary

Acorn / Mobile / Color / Android / Accent

#312a64
#7542e4

Primary

Android Name
fx_mobile_action_color_primary

 

Background

Mobile platforms share background colors but apply them towards different page and overlays contexts. Desktop uses these background colors, but doesn't currently follow this layer system.

#f9f9fb
#2b2a33

1

iOS Name
Layer1
Android Name
fx_mobile_layer_color_1
#ffffff
#42414d

2

iOS Name
Layer2
Android Name
fx_mobile_layer_color_2
#f0f0f4
#1c1b22

3

iOS Name
Layer3
Android Name
fx_mobile_layer_color_3

Text

Desktop and mobile platforms share some color values for text.

#15141a
#fbfbfe

Primary

iOS Name
TextPrimary
Android Name
fx_mobile_text_color_primary
Desktop Name
--in-content-text-color
#5b5b66
#cfcfd8

Secondary

iOS Name
TextSecondary
Android Name
fx_mobile_text_color_secondary
Desktop Name
--in-content-deemphasized-text
rgba(21,20,26,0.4)
rgba(251,251,254,0.4)

Disabled

iOS Name
TextDisabled
Android Name
fx_mobile_text_color_disabled
Desktop Name
N/A
#c50042
#ff9aa2

Error

iOS Name
TextWarning
Android Name
fx_mobile_text_color_warning
Desktop Name
--in-content-error-text-color

Border

Android and iOS share a default border color.

#e0e0e6

Primary

iOS Name
BorderPrimary
Android Name
fx_mobile_border_color_primary

Themes

Acorn supports both light and dark modes. Desktop and mobile share some of the same light and dark mode colors, but apply them to different user interface elements.

Firefox's light and dark modes are also treated as themes and correspond to Firefox's light and dark themes. While users can freely choose between the light or dark theme, their devices default to the mode their operating system is set to.

You can read about Firefox's support for certain high contrast mode themes in this guide's accessibility section below.

You can find background color values for light and dark themes under backgrounds.

Accessibility

Further WCAG resources:

Color contrast

Acorn strives for WCAG 2.1 minimum contrast guidelines.

Color blindness

There are different types of color blindness that makes people see colors differently. Color blindness also affects 1 in 12 people that were assigned male at birth.

High-contrast mode

Every operating system's high-contrast mode behaves differently. Some operating systems have default high-contrast mode color palettes, with some palettes being capable of user overrides. Other operating systems will increase the contrast on the existing interface colors.


You can learn how high-contrast mode themes work on Firefox for desktop in Firefox's source docs.

Status checklist

Is documented

Is fully documented

All States

Includes all applicable states (hover, focus, disabled, etc...)

All Themes

Works properly across all themes (theme name, theme name, etc...)

All Modes

Works properly across all modes (light, dark, high contrast)

All Desktop Environments

Works properly across all environments (Windows, MacOS, Linux)

All Mobile Environments

Works properly across all environments (iOS, Android)

Overall Accessibility

Has been tested and reviewed by A11y Team.

Color / Accessibility

All color has been tested against and passed all the latest WCAG 2.1 A & AA standards.

Text / Accessibility

All text has been tested against and passed all the latest WCAG 2.1 A & AA standards.

Contrast / Accessibility

All contrast has been tested against and passed all the latest WCAG 2.1 A & AA standards.

Interaction / Accessibility

All interactions have been tested against and passed all the latest WCAG 2.1 A & AA standards.

Content Design Review

Has been tested and reviewed by Content Design Team.

Writing Guidelines

Follows guidance for writing and language use.

Localization

Works properly across locales, and includes guidance for RTL languages.

Defined Behavior

Guidance for behavior when interacted with.

Defined Interactions

Guidance for interaction capabilities, ie. keyboard interactions.

Usage Guidelines

Includes guidance for usage, dos and don'ts, best practices.

Tokens

All attributes are available as tokens.

Figma Library

Has a reusable Figma component.

Storybook

Is documented in Storybook.

Code

Has a code counterpart.

Status

Known issues

Changelog

Date

Version

Notes

Feb 14, 2023

1.0.0

Introduced color overview.