Skip to content
Xerobi Icons

Drawing in Adobe Illustrator

Set up a 256 by 256 artboard, draw with a 16 point centred stroke, save a clean SVG and import it as an icon source file.

Last updated

Illustrator can produce a clean source if a few settings are right. Menu names vary by version; the intent of each step is what matters.

1. Set up the document

  1. File > New: units Pixels, one artboard 256 × 256 px, color mode RGB.
  2. Preferences > Units: stroke Pixels. Preferences > Guides & Grid: gridline every 16 px, subdivisions 4 (so a line every 4 units).
  3. Turn on View > Snap to Grid and Snap to Pixel.
  4. Add guides at 32 and 224 on both axes for the live area.

2. Draw

  • Stroke weight 16 px, Align stroke: Center, Cap: Round Cap, Corner: Round Join.
  • Draw with the Pen, Ellipse and Rounded Rectangle tools with snapping on. Keep points on whole numbers; rounded rectangles use a radius of 16, or 8 for small parts.
  • Never Object > Path > Outline Stroke: keep strokes as strokes.
  • Do not use live effects, appearance effects, gradients, patterns, symbols or text. Convert any text to outlines (Type > Create Outlines) if the icon truly needs letters.
  • Apply transforms before you finish: Object > Transform > Transform Each, then Object > Expand where needed, so no shape carries a transform. Group nothing you do not need.

3. Clean up

  • Object > Path > Simplify only if it keeps the shape exact; check the result.
  • Delete empty layers, unused swatches and hidden objects.
  • Join open paths that should be one with Object > Path > Join.

4. Save as SVG

File > Save As, format SVG, then in SVG Options:

Option Setting
SVG Profiles SVG 1.1
Fonts: Type Convert to outline
Images Embed (there should be none)
Object IDs Minimal
Decimal Places 2
Minify on
Responsive off, so width and height stay
Styling Presentation Attributes, not Internal CSS

The saved file must have viewBox="0 0 256 256". If it contains a <style> block, save again with Presentation Attributes.

5. Import and check

cd tooling/generator
uv run scripts/icon.py import ~/Desktop/bell.svg bell-ringing -c Interface -t notification,alert,ring
uv run scripts/icon.py check bell-ringing
uv run scripts/icon.py weights bell-ringing

The import sends stroked shapes to line and filled shapes to area. Review area yourself, as described on the weights page.