Update README to use picture/source syntax to avoid deprecation (#9606)

This commit is contained in:
Brandon McConnell 2022-10-19 10:49:30 -04:00 • committed by GitHub
parent 0c2c179555
commit ea5b11c371
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,9 +1,10 @@
<p align="center">
<a href="https://tailwindcss.com/#gh-light-mode-only" target="_blank">
<img src="./.github/logo-light.svg" alt="Tailwind CSS" width="350" height="70">
</a>
<a href="https://tailwindcss.com/#gh-dark-mode-only" target="_blank">
<img src="./.github/logo-dark.svg" alt="Tailwind CSS" width="350" height="70">
<a href="https://tailwindcss.com" target="_blank">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="./.github/logo-dark.svg">
<source media="(prefers-color-scheme: light)" srcset="./.github/logo-light.svg">
<img alt="Tailwind CSS" src="./.github/logo-light.svg" width="350" height="70" style="max-width: 100%;">
</picture>
</a>
</p>