# DocumenterVitepress light and dark mode images/figures

**URL:** <https://discourse.julialang.org/t/documentervitepress-light-and-dark-mode-images-figures/130477>\
**Category:** General Usage\
**Tags:** documentation\
**Created:** [July 4, 2025, 7:03pm UTC](https://discourse.julialang.org/t/documentervitepress-light-and-dark-mode-images-figures/130477 "2025-07-04T19:03:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cneverett](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cneverett/32/209565_2.png) [@cneverett](https://discourse.julialang.org/u/cneverett)\
**Post date:** [July 4, 2025, 7:03pm UTC](https://discourse.julialang.org/t/documentervitepress-light-and-dark-mode-images-figures/130477/1 "2025-07-04T19:03:16Z")

</div>

Hello,

I am using DocumenterVitepress.jl to generate some documentation for a package I am developing. I have generated both light and dark mode versions of figures (saved as png) that I would like to include in the documentation. Is there a way within my documentation markdown files to have it automaticaly switch between versions when in light mode or dark mode?
