Hacker News new | ask | show | jobs
by michielderhaeg 1153 days ago
If I switch to the light theme and back again, the diagrams become white and readable.
1 comments

He is inverting the embedded SVG's colors using CSS. However, that CSS is JavaScript applied and doesn't trigger on page load. SVG offers a nice 'currentColor' color value, which resolves to the inherited text-color. Replacing stroke='#000000' with stroke='currentColor' would solve this bug without requiring any JS.