A white rim can show up around a transparent icon the moment it lands on a dark toolbar. Here’s what that looks like at 24 × 24 px and zoomed in.
// Detect dark theme var iframe = document.getElementById('tweet-2128212022764433808-14'); if (document.body.className.includes('dark-theme')) { iframe.src = "https://platform.twitter.com/embed/Tweet.html?id=2128212022764433808&theme=dark" }
We exported the search icon from IconVectors 2.30 and made a test copy with Pillow. We mixed white into the RGB values of the semi-transparent edge pixels. All 576 alpha values stayed the same.
On the same dark background, 107 pixels were lighter in the test copy. Watch the edge pixel marked in the clip. Its alpha is 130 in both versions, but its RGB shifts from (56, 119, 223) to (154, 186, 239).
If a PNG looks fine on white but shows a rim on dark, check the RGB and alpha of a pixel along the edge. When you have the original SVG, preview it on a dark background and try a fresh transparent export.
