Is there a "Dark Mode" toggle available? #221
Answered
by
yhatt
tianfanghan
asked this question in
Q&A
-
Most of designs nowadays support Dark Mode, I'm loving MARP vscode very much , and using it in my teaching by a HTML format. Thank you. |
Beta Was this translation helpful? Give feedback.
Answered by
yhatt
Nov 26, 2021
Replies: 1 comment 5 replies
-
In Marp, the dark color scheme, called as <button onclick="document.querySelectorAll('section').forEach((e) => e.classList.toggle('invert'))">Toggle appearance</button> |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
yhatt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In Marp, the dark color scheme, called as
invert
, is a one of color variants of the built-in theme. So it just works by adding and removinginvert
class to each<section>
elements.