A few icons are easy to look after. A few hundred are not. They end up spread across design files, code and marketing. These twelve habits keep an icon set tidy as it grows.
Keeping icons in order
1. Keep one home for your icons
Pick one place where the main icons live. It could be a design library or a folder in your code. Make every other copy from it. Copies that people edit on their own always drift apart.
2. Name icons for what they show
Name an icon for what it shows, not for where you use it. trash is better than delete-button-icon. You will use the same drawing for other jobs. A name tied to one job will not fit the next one.
3. Name every icon the same way
Use lower case, with a hyphen between words. Put the thing first and the detail second: calendar-add, calendar-check, folder-open. Icons that go together then sit together in any list of files.
4. Write down other names
People search with different words. A "settings" icon is also a gear and a cog. Keep a short list of other names next to each icon. This makes search work. Every icon on Smash Icons has a list like this.
Drawing and editing
5. Draw on a grid
Pick a grid. Most people use 24 pixels. Leave a small gap around the edge. Icons drawn on the same grid line up with each other with no extra work.
6. Keep the line the same
Pick the line width once. Pick the shape of the line ends and corners once. Then use them on every icon. Lines that do not match are the first thing people notice in a mixed set.
7. Snap to whole or half pixels
Put your points on whole or half steps of the grid. They will look sharp at the base size. Points at odd decimals give blurred edges.
8. Let the computer do the dull jobs
Do you do the same job on every icon? It could be changing the canvas size or the layer names. Record it as an action or a script. Illustrator actions and Figma plugins do this well.
Saving files
9. Save SVG for screens and PNG for the rest
SVG is smaller and sharper, and you can edit it. Keep PNG for email, documents and places that do not take SVG. Our SVG vs PNG guide tells you more.
10. Clean up SVG files
Design apps add things to an SVG that you do not need, such as notes and long numbers. An SVG optimiser tool strips them out. It often cuts the file size in half. Check the icon after. Strong settings can take away the viewBox or join shapes you wanted to keep apart.
11. Set the width and height in your code
An icon with no size makes the page jump when it loads. Always set both.
Looking after the set
12. Look at the whole set
Now and then, put all the icons on one sheet and look at them side by side. An icon that is too heavy, too small or off-centre is easy to spot in a group. It is hard to spot on its own.
Skip the first eleven
Would you like to skip the work of building a set? The Smash Icons library already follows these rules. It has one grid, matching lines and clear names. Every icon comes as an SVG and a PNG in 18 styles.