tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

svgs.md (3017B)


Panel SVGs

These are the guidelines for creating devtools SVGs to make sure they're as small and neatly formatted as possible. The Mozilla Developer SVG guidelines can be found here.

Explanation of Pixel Grid

Since so many of our SVGs appear so small, designing them on the pixel grid will help them not appear fuzzy when they're sized down to 16x16 pixels. There is program-specific documentation in both the Illustrator and Sketch sections.

Panel Icon Requirements

The devtools panel icons do a couple of things in a specific way; following these guidelines will help stick your patch:

  1. How do I test redux code?
  2. How do I test redux code?

Illustrator

For Illustrator you'll want the following document settings:

You can get a more detailed breakdown with images here.

You can download a sample Illustrator file here.

Tips for Object Creation

When you're designing your icons in a graphics editor like Adobe Illustrator, there are a lot of things you can do that will bring down the size of the file and make your SVGs easier for the developers to work with. Here are some of them:

Use pathfinder to expand shapes

Expand strokes to make them objects

Sketch

Sketch vector work is a little different but the fundamentals (keeping your SVG small, expanding all paths) is the same. Here's what we've found helps to build clean icons:

Position in the upper right hand corner of Sketch