Why Animated Text in GitHub READMEs Looks Fringed on Dark Mode, and How to Fix It

A DEV Community article explains why typing-animation GIFs in GitHub README profiles can show a visible white outline when viewed in dark mode. GIF supports only fully opaque or fully transparent pixels, so the soft edge pixels of anti-aliased text must be blended against a matte color during export. Most tools default to white, which produces a fringe on GitHub's dark background of #0d1117. The author recommends either using a solid background matched to one theme or shipping separate light and dark GIFs selected via the prefers-color-scheme media query. The piece also advises writing the animated sentence as alt text for screen readers and holding the completed line for about a second and a half.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in