Skip to content
Tutorials Center
My learning

Topics

Lesson 35 of 36 ยท Projects and Practice

Project: Design a Consistent Icon Set

Design a consistent set of 12 icons in Adobe Illustrator with a 24 px grid, keylines, one stroke weight, artboards per icon and SVG export, with Python stand-ins that check consistency.

Designing one good icon is a skill; designing twelve that look like a family is craft. In this project you will build a set of 12 interface icons for a small weather app, then export them as SVG and PNG.

Illustrator does not run on this site. The steps are instructions; the Python code is a stand-in that audits a set the way a review checklist would.

The brief

Product: a weather app. Icons (12): sun, moon, cloud, rain, snow, wind, thunder, fog, thermometer, umbrella, location pin, settings.

Style rules (write these down first):

  • 24 x 24 px grid, 2 px padding (live area 20 x 20)
  • Outline style, 2 px stroke, round caps and joins
  • Corner radius 2 px
  • Only 15- and 45-degree angles
  • Single color, filled by code later

Step 1: Set up the document

  1. File > New, Web profile, 24 x 24 px artboard, RGB, Align New Objects to Pixel Grid on.
  2. Duplicate the artboard 11 times (Artboard tool, Alt/Option-drag) or set 12 artboards in the New Document dialog, arranged in a 4 x 3 grid with 16 px spacing.
  3. Name artboards icon-sun, icon-moon and so on (naming).
  4. Draw keyline shapes on a locked keylines layer: a 20 px circle, an 18 px square, 16 x 20 and 20 x 16 rectangles, centered. See icon design.

Step 2: Draw with simple shapes

  • Sun: a circle plus eight short lines. Draw one line, then Object > Repeat > Radial with eight instances, or use the Rotate tool and Ctrl/Cmd+D.
  • Cloud: unite circles and a rectangle with Pathfinder, then expand the stroke so the outline joins smoothly (or construct the path with the Pen tool).
  • Rain: reuse the cloud as a symbol and add slanted lines (symbols) so the cloud stays identical in every weather icon.
  • Pin: a circle and a teardrop, subtracted with Minus Front.

Use Smart Guides and Align constantly. Keep points on whole pixels.

Step 3: Audit your set

Visual consistency is measurable. For each icon list its stroke weight, bounding box and corner radius, then compare. The stand-in below does that with plain data.

Python Stand-in: audit stroke weights and sizes

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The audit flags the cloud (thin stroke, too wide) and the pin (wrong radius, tall box). Fix them in Illustrator and audit again.

Step 4: Optical balance

Equal sizes do not always look equal. Dense icons seem heavier, round icons smaller. Compare the ink coverage (the proportion of filled pixels). The stand-in estimates it from a tiny bitmap:

Python Stand-in: visual weight from a bitmap

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

If one icon in a set is far denser than the rest, simplify it or thin its details.

Step 5: Test at size

  1. Turn on Pixel Preview and zoom to 100 percent, then 200 percent.
  2. View them at 16 px and 32 px using View > Pixel Preview and the Navigator; check that gaps remain open.
  3. Show them in a row on one artboard with the app's background color. Blur your eyes: no icon should stand out.

Step 6: Export

  1. Decide delivery: SVG for the app and web, PNG @1x/2x/3x if needed.
  2. File > Export > Export for Screens, Artboards tab, select all, format SVG (Fonts not needed, no text), prefix weather-.
  3. In the SVG settings choose presentation attributes, 2 decimal places, Responsive on.
  4. Turn strokes into fills only if the developers need single-path shapes: Object > Path > Outline Stroke.
  5. Create a combined sprite sheet artboard for preview with all 12 icons in a row.

Stand-in: expected file list

Python Stand-in: expected export file list

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Stretch goals

  • Add a filled variant for the selected state: same keylines, filled shapes.
  • Create a 16 px optical version for tiny uses.
  • Write a README explaining usage, stroke rules and color tokens.

Check your understanding

Quick check ยท 3 questions

of 3 answered You scored / 3 ยท perfect!

  1. 1. Why write style rules before drawing icons?

    Shared rules create consistency and make review objective.
  2. 2. Why reuse a cloud symbol in several icons?

    One master means consistent shapes.
  3. 3. Which export route produces one SVG per artboard with names?

    It uses artboard names for file names.

Summary

  • Define grid, stroke, radius and angle rules first.
  • Use symbols, Pathfinder and Smart Guides to build consistent shapes.
  • Audit the set for stroke, live area and optical weight; test at small sizes.
  • Export artboards as SVG with clear names.
  • The Python snippets are stand-ins that model the audit.

Next: Practice Set: Review and Challenges