Menu

From Six SVG Files to One Editable Toolbar Sprite
📰

From Six SVG Files to One Editable Toolbar Sprite

DEV Community: html·Axialis Software·10 days ago
#TR6RbKIb
#devto2#devto#dev#search#filter
Long article (616 words) — no AI summary yet.
Reading 0:00
15s threshold

The search icon in your toolbar looks a little faint beside the others. Its shape and size are fine. You just want a heavier stroke.

If your toolbar reads from an SVG sprite, the HTML already knows which icon to draw. In this walkthrough, we’ll build a six-icon sprite in IconVectors 2.30 for Windows, connect it to a small HTML toolbar, and make that stroke change in place.

Create the sprite from six SVG files

Put six SVGs in a folder. For this example, use search.svg , filter.svg , refresh.svg , download.svg , share.svg , and settings.svg . The sample drawings use a 24 × 24 viewBox and the same starting stroke width, so the change to Search will be easy to spot.

Open the folder in Icon Explorer and select the six SVGs.

Choose Create SVG Sprite and name the new file icons.svg .

Press F3 and open the SVG Sprite tab. Find the symbol ID for Search.

The command creates a sprite in the current folder and opens it in the editor. The six source files are still there.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.