How to Build a Consistent SVG Icon Set and Sprite
Make mismatched icons look like one family: use a 24 unit grid, keylines and one stroke width, normalise imported SVGs and export a sprite or React icons.
How to Build a Consistent SVG Icon Set and Sprite
Icons are small, but inconsistent ones make an interface look unfinished. One icon is drawn with thin lines, another with thick ones; one fills its box, another floats in the middle; one has rounded ends, another square. This guide explains the conventions that make icons feel like a family, and how to apply them with the free Icon Set Editor and SVG Sprite Builder, which works directly with SVG.
Use a shared grid
Most modern icon libraries are drawn on a 24 by 24 unit grid and displayed at 24 pixels or multiples of it. A shared grid means every icon has the same coordinate system, so the same stroke width looks the same everywhere and icons line up with text. The editor's canvas is that grid, with stronger lines every four units, and points snap to whole, half or quarter units.
Whole and half units keep straight lines crisp at small sizes. If an icon looks blurry at 16 pixels, its lines probably sit on awkward fractions; snap them to the grid.
Use keylines for optical size
A circle and a square of the same width do not look the same size: the square looks bigger because it has more area. Icon designers compensate with keylines. Round shapes use a circle of about 20 units, square shapes a square of about 18 units. The editor draws both in pink. Follow them and a round clock icon will sit comfortably beside a square calendar icon.
Choose one stroke style
Stroke width, line cap and line join define the character of a line icon set. Two units is common and reads well at 24 pixels; 1.5 looks lighter and more refined; anything below 1.25 tends to disappear at small sizes. Round caps and joins feel friendly, square ones technical. In this editor these settings belong to the whole set rather than to individual icons, which is exactly what keeps the set consistent.
Draw with simple shapes
Most interface icons are built from a few primitives: lines, polylines, rectangles and circles. Drawing with these rather than freehand paths keeps the geometry clean and the files small. Select a tool, drag on the grid and adjust the blue handles afterwards. For curves you can add a path and edit its data directly, which is useful when you know the SVG syntax.
Keep detail minimal. If an icon needs more than five or six shapes, it is probably too detailed for 24 pixels.
Bring in existing icons
Imported SVG files often come with different viewBoxes, hard-coded colours, transforms and editor metadata. The import scales every shape to fit the 24 unit box, converts paths command by command, and replaces colours with currentColor so the icon inherits the text colour of its surroundings. After importing, apply the set's stroke width and compare each icon against the keylines.
Check at real sizes
The preview strip shows the selected icon at 16, 20, 24, 32 and 48 pixels and on a dark background. Below it, the whole set appears side by side. This row is the best test: an icon that looks heavier, lighter, bigger or smaller than its neighbours stands out immediately.
Export for your project
An SVG sprite is a single file containing every icon as a symbol with an id. You include it once and reference icons by id, which means one request for the whole set and easy colouring with CSS. Individual SVG files suit design tools and content management systems. React projects can use the components export, which produces a TypeScript component per icon that passes props such as className and aria-label through to the SVG, plus an index file.
Accessibility reminders
Icons that convey meaning on their own, such as a delete button with no text, need an accessible name, for example an aria-label on the button. Decorative icons next to text should be hidden from screen readers with aria-hidden. Because the exported icons use currentColor, they automatically follow your text colour and high-contrast modes.



