Skip to content

Commit ea5b11c

Browse files
Update README to use picture/source syntax to avoid deprecation (#9606)
1 parent 0c2c179 commit ea5b11c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<p align="center">
2-
<a href="https://tailwindcss.com/#gh-light-mode-only" target="_blank">
3-
<img src="./.github/logo-light.svg" alt="Tailwind CSS" width="350" height="70">
4-
</a>
5-
<a href="https://tailwindcss.com/#gh-dark-mode-only" target="_blank">
6-
<img src="./.github/logo-dark.svg" alt="Tailwind CSS" width="350" height="70">
2+
<a href="https://tailwindcss.com" target="_blank">
3+
<picture>
4+
<source media="(prefers-color-scheme: dark)" srcset="./.github/logo-dark.svg">
5+
<source media="(prefers-color-scheme: light)" srcset="./.github/logo-light.svg">
6+
<img alt="Tailwind CSS" src="./.github/logo-light.svg" width="350" height="70" style="max-width: 100%;">
7+
</picture>
78
</a>
89
</p>
910

0 commit comments

Comments
 (0)