iconLintThemeable

Turn an icon's hardcoded colours into currentColor so it takes the text colour from CSS, works in dark mode, and can be tinted with one rule. Strips the export leftovers that get in the way of inlining it. Nothing leaves your browser.

Drop SVG icons here

or click to choose, or paste markup with ⌘V. Several files at once is fine.

What it does

Every fill and stroke that carries a ticked colour becomes currentColor, whether it was set as an attribute, an inline style, a parent group or a CSS class. Opacity is kept. none, gradients and unticked colours are left alone.

  • The three previews on the right of each icon are the same output rendered with different text colours. If they all change, it works.
  • Semi-transparent colours like rgba(0,0,0,.4) become currentColor plus a fill-opacity, so the tint survives.
  • Multi-colour icons: tick only the colour that should follow the text. The rest stay fixed.
  • This changes colour only. To convert strokes to fills, use Outline Stroke; to fix sizing, use Fit to Grid.

Questions people ask

What is currentColor?
A CSS keyword that means "the current text colour". An icon filled with currentColor takes whatever colour the surrounding text has, so one CSS rule can tint it, and dark mode works without a second file.
What about icons with two colours?
You choose which colours follow the text. By default the dominant colour and its tints are converted and the rest, including white knockouts, stay fixed.
Why remove the style block?
Exported style blocks use class names like .st0 and .cls-1. Two icons inlined on the same page with the same class names recolour each other. Baking the colours into attributes removes the collision.