Is there a way to toggle png images according to the theme in use? #1742
Answered
by
mc7h
MankiratSingh1315
asked this question in
Q&A
-
For example if I want some black png to appear if light theme is applied and a white png on dark theme... |
Beta Was this translation helpful? Give feedback.
Answered by
mc7h
May 18, 2025
Replies: 1 comment 1 reply
-
Hi @MankiratSingh1315 — I achieved it this way:
However, I had to turn on unsafe in my config.
Otherwise the raw tags are stripped out. Demo: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
MankiratSingh1315
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @MankiratSingh1315 — I achieved it this way:
However, I had to turn on unsafe in my config.
Otherwise the raw tags are stripped out.
Demo:
https://github.com/user-attachments/assets/b1487553-e43b-4938-aa8d-4ada9602fb45