Skip to content

Commit cc41b7e

Browse files
authored
Use <picture> for logo light/dark mode (#260)
Using the `#gh-light/dark-mode-only` fragments is deprecated and doesn't render correctly on other sites (like pkgs.go.dev).
1 parent f1568b8 commit cc41b7e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
2-
![logo](docs/app/static/img/devbox_logo_dark.svg#gh-dark-mode-only)
3-
![logo](docs/app/static/img/devbox_logo_light.svg#gh-light-mode-only)
1+
<picture>
2+
<source media="(prefers-color-scheme: dark)" srcset="docs/app/static/img/devbox_logo_dark.svg">
3+
<source media="(prefers-color-scheme: light)" srcset="docs/app/static/img/devbox_logo_light.svg">
4+
<img alt="Devbox logo." src="docs/app/static/img/devbox_logo_light.svg">
5+
</picture>
46

57
# Devbox
68

0 commit comments

Comments
 (0)