
How to display different images for GitHub light mode and dark mode
Learn how to make your images automatically adapt to light and dark themes on GitHub README using Markdown and HTML, especially for company/project logos. Method 1: The GitHub-Specific URL Fragment GitHub provides a simple, Markdown-native way to specify theme-based images by appending a fragment to the image URL. You provide two separate images, and GitHub’s…