Replies: 1 comment
-
Dark mode is basically html.dark .light-only {
display: none !important;
}
html:not(.dark) .dark-only {
display: none !important;
} Then just add classes to your image elements: <img class="dark-only" src="/dark-mode-image" ... />
<img class="light-only" src="/light-mode-image" ... /> In markdown you can either keep using img tag or you can also do: ![alt](/dark-mode-image){.dark-only}
![alt](/light-mode-image){.light-only} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to display images (other than the logo) based on whether light or dark theme is active? I want to showcase different screenshots of my app when in dark or light theme as my app also supports dark and light themes.
Beta Was this translation helpful? Give feedback.
All reactions