Paul's Weblog 7/16/2023

HOWTO: Dark Mode README Logo on GitHub

Read Original

This article details a developer's process to create a GitHub README logo that automatically switches for dark mode. It explains why inline CSS in Markdown fails, and presents a working solution using an SVG file with embedded CSS that leverages the `prefers-color-scheme` media query to invert the logo image.

HOWTO: Dark Mode README Logo on GitHub

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser