Posted April 18Apr 18 GitHub supports dark mode and light mode, and as developers, we can make our README images look great in both themes. Here’s a quick guide to using the <picture> element in your GitHub Markdown files to dynamically switch images based on the user’s color scheme.When developers switch to GitHub’s dark mode (or vice versa), standard images can look out of place, with bright backgrounds or clashing colors.Instead of forcing a one-size-fits-all image, you can tailor your visuals to blend seamlessly with the theme. It’s a small change, but it can make your project look much more polished...The GitHub BlogHow to make your images in Markdown on GitHub adjust for...When you want your images to look good in Markdown on GitHub, you might have to adjust for the UI around them.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.