-
-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Hey 👋 . It's me again. I know I proposed previous version of dark mode #6. But here is one more twist to it.
In case of selector based dark mode (so people can select in the dropdown: dark, light, auto) picture doesn't work. See withastro/starlight#1829
Maybe we can add option for selector based dark mode. Generated HTML can look like this:
<img id="mermaid-dark-0" class="mermaid-dark" … />
<img id="mermaid-0" class="mermaid-light" … />And CSS for it can look like this:
html[data-theme="light"] .mermaid-dark {
display: none;
}
html[data-theme="dark"] .mermaid-light {
display: none;
}I know this may be too specific request. Up to your consideration
cestef, virzak, jemand771, mgabor3141, altano and 4 more
Metadata
Metadata
Assignees
Labels
No labels