docs(readme): update the description of dark mode.

This commit is contained in:
Feng Kaiyu
2023-01-14 15:47:01 +08:00
committed by Platane
parent e2eb91cf8f
commit 632fcf6cb7

View File

@@ -49,11 +49,14 @@ If you are only interested in generating a svg, consider using this faster actio
**dark mode**
For **dark mode** support on github, use this [special syntax](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=) in your readme.
For **dark mode** support on github, use this [special syntax](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) in your readme.
```md
![GitHub Snake Light](github-snake.svg#gh-light-mode-only)
![GitHub Snake dark](github-snake-dark.svg#gh-dark-mode-only)
<picture>
<source media="(prefers-color-scheme: dark)" srcset="github-snake-dark.svg">
<source media="(prefers-color-scheme: light)" srcset="github-snake.svg">
<img alt="github-snake" src="github-snake.svg">
</picture>
```
**interactive demo**