about summary refs log tree commit diff
path: root/README.md
diff options
context:
space:
mode:
authoréclairevoyant <848000+eclairevoyant@users.noreply.github.com>2023-12-25 09:29:25 -0500
committeréclairevoyant <848000+eclairevoyant@users.noreply.github.com>2023-12-25 09:35:11 -0500
commitbbafd350a44005f31ddff4c7e433353a5f3a9acf (patch)
tree9a692ab038c0d3d77b6d24ecb51f747200fe07c0 /README.md
parent8b24997783a193bb0d5b815fa6154621d77d8495 (diff)
downloadnixlib-bbafd350a44005f31ddff4c7e433353a5f3a9acf.tar
nixlib-bbafd350a44005f31ddff4c7e433353a5f3a9acf.tar.gz
nixlib-bbafd350a44005f31ddff4c7e433353a5f3a9acf.tar.bz2
nixlib-bbafd350a44005f31ddff4c7e433353a5f3a9acf.tar.lz
nixlib-bbafd350a44005f31ddff4c7e433353a5f3a9acf.tar.xz
nixlib-bbafd350a44005f31ddff4c7e433353a5f3a9acf.tar.zst
nixlib-bbafd350a44005f31ddff4c7e433353a5f3a9acf.zip
readme: update method to show theme-based logo
see https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax#specifying-the-theme-an-image-is-shown-to
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 6 insertions, 5 deletions
diff --git a/README.md b/README.md
index 5e616eff2f52..481ada0565f8 100644
--- a/README.md
+++ b/README.md
@@ -1,9 +1,10 @@
 <p align="center">
-  <a href="https://nixos.org#gh-light-mode-only">
-    <img src="https://raw.githubusercontent.com/NixOS/nixos-homepage/master/logo/nixos-hires.png" width="500px" alt="NixOS logo"/>
-  </a>
-  <a href="https://nixos.org#gh-dark-mode-only">
-    <img src="https://raw.githubusercontent.com/NixOS/nixos-artwork/master/logo/nixos-white.png" width="500px" alt="NixOS logo"/>
+  <a href="https://nixos.org">
+    <picture>
+      <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/NixOS/nixos-homepage/master/logo/nixos-hires.png">
+      <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/NixOS/nixos-artwork/master/logo/nixos-white.png">
+      <img src="https://raw.githubusercontent.com/NixOS/nixos-homepage/master/logo/nixos-hires.png" width="500px" alt="NixOS logo">
+    </picture>
   </a>
 </p>