title: “Get SVG color from parent document’s CSS” date: 2022-04-02 —
For a mono-color SVG image, you often want the color to match the text that it is near. You do this with:
<svg fill="currentColor" ... />
source