Skip to content

Commit 3fea29d

Browse files
committed
readme: Add support for light/dark modes in the logo
Use the mechanism described here: 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 to provide different logos for light and dark mode, so that the "Zephyr" text is clearly visible in both. Signed-off-by: Carles Cufi <[email protected]>
1 parent 1374415 commit 3fea29d

File tree

3 files changed

+172
-1
lines changed

3 files changed

+172
-1
lines changed

README.rst

+5-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
<a href="https://www.zephyrproject.org">
44
<p align="center">
5-
<img src="doc/_static/images/logo-readme.svg">
5+
<picture>
6+
<source media="(prefers-color-scheme: dark)" srcset="doc/_static/images/logo-readme-dark.svg">
7+
<source media="(prefers-color-scheme: light)" srcset="doc/_static/images/logo-readme-light.svg">
8+
<img src="doc/_static/images/logo-readme-light.svg">
9+
</picture>
610
</p>
711
</a>
812

doc/_static/images/logo-readme-dark.svg

+167
Loading
File renamed without changes.

0 commit comments

Comments
 (0)