Closed WebReflection closed 2 years ago
Oh yikes, and there is no way to create adaptive markdown files in GitHub 😓
No, but there is a way to style within SVG and use prefers-color-schema
svg { fill: #000; }
@media (prefers-color-scheme: dark) {
svg { fill: #fff; }
}
or something similar
Unfortunate Github inject images as <img />
tag, dynamic styles won't work
Luckily the intro images are all SVGs so I was able to use the <style>
approach within the svgs.
Unfortunately it will only respect the system theme - so if you have a light system but override GitHub to use dark mode, it will continue to use the light theme svgs.
@alshdavid thanks, it works like a charm (GNOME on ArchLinux in Dark Mode) 👍
Likely the very least of this project's priorities, but worth mentioning the SVGs aren't visually great on dark theme.