Skip to content

Commit e665b03

Browse files
authored
Specified logo source for dark mode
It is now possible to specify different sources for images based on the user's theme preference. The black "Swift" text was a little unreadable on grey background, so I've adjusted it to display the white logo in dark mode.
1 parent 3daa875 commit e665b03

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
<img src="https://swift.org/assets/images/swift.svg" alt="Swift logo" height="70" >
1+
<picture>
2+
<source media="(prefers-color-scheme: dark)" srcset="https://www.swift.org/assets/images/swift~dark.svg">
3+
<img src="https://swift.org/assets/images/swift.svg" alt="Swift logo" height="70" >
4+
</picture>
25

36
# Swift Programming Language
47

0 commit comments

Comments
 (0)