Video tutorial · 1:01 · English
One SVG Icon for Light and Dark Mode
By the Axialis Engineering team ·
currentColor and keep its blue accent. When the SVG is inline, the outline follows the toolbar button's text color in light and dark mode. Then see how an AI agent previews and applies the same change to three icons through the IconVectors MCP server.
Watch on YouTube ·
Download MP4 ·
English captions (VTT)
Subscribe on YouTube
All IconVectors tutorials
Jump to a moment
Transcript
The icon that disappears in dark mode
Hi! Let's make one SVG work in light and dark mode with IconVectors. Watch the search icon when I switch themes. Its black outline almost disappears.
Set the outline stroke to currentColor
In IconVectors, select the search outline. Open the stroke color menu and choose currentColor. Keep the blue accent as it is, then save the SVG.
Test it in light and dark mode
Back in the toolbar, the inline SVG takes its stroke color from the button text. Switch themes again. The outline stays readable, and the blue stays blue.
Convert a whole toolbar with the MCP server
For a whole toolbar, ask your AI agent to convert the black strokes to currentColor and keep the blue accents. The IconVectors MCP server can preview the changes, then apply them to all three icons. Install IconVectors today and design for every theme.
Make your own SVG icons themeable
Follow Make SVG Icons Themeable with CSS to use currentColor for fills and strokes and set the colors for each theme.
To connect an AI agent for the toolbar workflow, follow the IconVectors MCP setup for Codex CLI.
Start Making SVG Icons Today with IconVectors
Download the fully-functional 30‑Day Free Trial and unlock your icon design workflow.
Windows and macOS 2.30, Linux 2.20.