From 14b711d308ae01b866a3487deae38051dcc2419d Mon Sep 17 00:00:00 2001 From: Austin Gilmour Date: Sat, 16 May 2026 17:45:29 -0400 Subject: [PATCH 1/2] fix: replace deprecated #gh-dark-mode-only fragments with element in Responsive Card Theme preview The two preview images at the top of the "Responsive Card Theme" section used the old #gh-dark-mode-only / #gh-light-mode-only URL fragment syntax, which GitHub no longer renders. They also had malformed double anchors in their link hrefs (#responsive-card-theme#gh-dark-mode-only). Replaced with the + prefers-color-scheme approach that the section itself documents as the correct modern method. Co-Authored-By: Claude Sonnet 4.6 --- readme.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 6abfa97e75127..6047e9b45f605 100644 --- a/readme.md +++ b/readme.md @@ -178,8 +178,17 @@ You can look at a preview for [all available themes](themes/README.md) or checko #### Responsive Card Theme -[![Anurag's GitHub stats-Dark](https://github-readme-stats.vercel.app/api?username=anuraghazra\&show_icons=true\&theme=dark#gh-dark-mode-only)](https://github.com/anuraghazra/github-readme-stats#responsive-card-theme#gh-dark-mode-only) -[![Anurag's GitHub stats-Light](https://github-readme-stats.vercel.app/api?username=anuraghazra\&show_icons=true\&theme=default#gh-light-mode-only)](https://github.com/anuraghazra/github-readme-stats#responsive-card-theme#gh-light-mode-only) + + + + + Since GitHub will re-upload the cards and serve them from their [CDN](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/about-anonymized-urls), we can not infer the browser/GitHub theme on the server side. There are, however, four methods you can use to create dynamics themes on the client side. From d5620af00ffcce48aab6ed1763f940898dd35acd Mon Sep 17 00:00:00 2001 From: Austin Gilmour Date: Sat, 16 May 2026 17:48:59 -0400 Subject: [PATCH 2/2] fix: replace remaining deprecated #gh-dark-mode-only example with element The live example in the 'Use GitHub's theme context tag' details block used the deprecated #gh-dark-mode-only / #gh-light-mode-only URL fragment syntax, which GitHub no longer renders, causing broken images. Replaced with the + prefers-color-scheme approach, consistent with the fix applied to the Responsive Card Theme section preview. Co-Authored-By: Claude Sonnet 4.6 --- readme.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 6047e9b45f605..458a817f99cc9 100644 --- a/readme.md +++ b/readme.md @@ -234,8 +234,17 @@ You can use [GitHub's theme context](https://github.blog/changelog/2021-11-24-sp
:eyes: Show example -[![Anurag's GitHub stats-Dark](https://github-readme-stats.vercel.app/api?username=anuraghazra\&show_icons=true\&theme=dark#gh-dark-mode-only)](https://github.com/anuraghazra/github-readme-stats#gh-dark-mode-only) -[![Anurag's GitHub stats-Light](https://github-readme-stats.vercel.app/api?username=anuraghazra\&show_icons=true\&theme=default#gh-light-mode-only)](https://github.com/anuraghazra/github-readme-stats#gh-light-mode-only) + + + + +