Firefox icons are informative, fun and friendly.

Icon Construction

Use universal metaphors that everyone around the world can quickly identify. Aim for a design most people can interpret correctly and won’t find offensive. Do not focus on a secondary or obscure aspect of an element. Remember that too many details can make an icon appear sloppy or unreadable.

Looking for icons? Check out all the existing Firefox Icons.

Check the Firefox Icons Template.

Grid

Most Firefox for desktop icons live on a 16×16 pixel grid. Some specific small icons, used in rare cases, live on a 12×12 pixel grid. Keep icon shape weighted towards the middle area of the grid, reserving the outer 1px margin for visual weighting and maintaining relative aspect ratios. Designing with the pixel grid on helps ensure that icons will not appear fuzzy in production.

icons grid

16×16 is the most common icon size on Firefox Desktop. In the image the blue area indicates the max size for round icons, magenta one is for square icons.

In Sketch, select the shape and then select Layer → Round to Nearest Pixel Edge. Sketch will automatically align the edges with the pixel grid.

In Adobe Illustrator, use View → Pixel Preview to see your design on a pixel grid. Select a shape and use Object → Make Pixel Perfect to set position and size to the nearest full pixel. Or click the Snap to Pixel icon in the Control panel to turn on snapping permanently.

Firefox for Android icons are 20×20, with a bounding box of 24×24, according to Material Design specs. Firefox for iOS icons live on a 24×24 grid.

icons grid

20x20 grid for Android, with a bounding box of 24×24

icons grid

24x24 grid for iOS

Shape

Use positive and negative space to create the icon shape. When lines principally shape your icon, use a 2px stroke for the foundation and a 1px line for extra details. Rounded end caps and rounded line joins keep the icon smooth and friendly. On 12×12 icons, consider whether to use a 1px stroke or to go solid.

Highlight of rounded corners in icons

Highlight of one and two pixels stroke in icons

When you have two rounded corners running parallel, the outer corner has a larger radius, set on 3px, than the one on the inside, set on 1px.

border 3px outside 1px inside

Checkmark icon indicating a good choice Do

border 3px outside 3px inside

Cross icon indicating a bad choice Don’t

On iOS, use 3px strokes for the foundation and 2px strokes for the details to keep a consistent look and feel across platforms. Align icons in the northwest corner when required.

example with difference sizes for difference platforms

How the shape changes according to the platform

Export Your Icon

Before exporting your icons, be sure to expand all the shapes and strokes overlapping each other. Remember to remove unnecessary anchor points to keep the icon as simple as possible.

Name the artboard with the icon name. The name should describe the action of the icon, and not the icon itself. For example, when using a star as a metaphor for bookmarking, use bookmark, and not star as the name. Add a hyphen (-) to underline variations in the icon.

naming does

Checkmark icon indicating a good choice Do

naming don'ts

Cross icon indicating a bad choice Don’t

Finally, save your icon as SVG (and .png if you’re working on mobile).

If you are using Sketch, be sure to install the SVGO Compressor by Bohemian Coding.

Color

Icons on the toolbar with a light theme

Toolbar icon on light theme.

Use color semantically. Adapt it according to your background, keeping the contrast high.

Use Grey 90 a80 rgba(12, 12, 13, 0.8) on light backgrounds.

Icons on the toolbar with dark themea

Toolbar icon on dark theme.

Use Grey 10 a80 rgba(249, 249, 250, 0.8) on dark backgrounds.

success message bar

Success message bar.

Use Green 90 #003706 on a light green background. Green colors are usually associated with success states.

Example of yellow color applied to a warning icon

Warning message before entering about:config.

Use Yellow 60 #d7b600. Yellow icons are often used to indicate warnings.

Errors message

Error message.

Use Red 60 #d70022 on a trasparent background. Red on icons is often used to indicate errors.

States

ghost button

The different states in a ghost button.

When an icon is used to execute an action, we refer to it as ghost button.

Accessibility

All icons should have a text-based equivalent for screen readers. If your icon allows interactivity, give it a text label.