docsify-darklight-theme
docsify-darklight-theme copied to clipboard
Different image for dark-mode
Is it possible to load different image in markdown based on dark/light mode ? (ie. one logo for light mode, another logo for dark mode) ?
You must add a variable that then from style modifies the content of the desired img tag
Example:
light: {
logo: 'url("assets/logo_light.png")',
},
<style>
.sidebar .app-name-link img {
content: var(--logo, url(assets/logo_dark.png));
}
</style>