Menu

Can One SVG Sprite Mix Theme Colors and Fixed Accents?
📰

Can One SVG Sprite Mix Theme Colors and Fixed Accents?

DEV Community: css·Axialis Software·1 day ago
#cXYw4hDf
#devtocss#devto#dev#document#tool
Long article (500 words) — no AI summary yet.
Reading 0:00
15s threshold

Change the text color of a toolbar. Should its pencil and printer icons change too?

In the IconVectors 2.30 demo below, six buttons use symbols from one SVG file. New, Cut, Undo, and Redo follow the toolbar's text color. Edit stays lavender and Print stays mint. The difference is in the paint values inside the symbols.

The two accent colors are set at 0:35 and 0:45 . At 0:58 , you can see all six icons together in the browser.

Give each symbol its own color behavior

Here's a three-icon example you can save as document-toolbar.svg . The outlines use stroke .…

Continue reading — create a free account

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