Replies: 1 comment
-
This is tricky but possible. You can hide an image by default and then show it based on the parent's class="hidden [[data-theme=light]_&]:block" Let me know if you have any questions |
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
-
Hi @saadeghi ,
thanks again for all of your hard work creating and maintaining this excellent DaisyUI project!
I searched around and did not find an answer to this question so bringing it here:
I have several images on my pages that I would like to have a light version and a dark version and show the appropriate version based on the currently selected DaisyUI theme. Any ideas on best approach for ths?
Beta Was this translation helpful? Give feedback.
All reactions