None
CY
Inlining SVGs for Dark Mode
['Andrew Helwer']
Andrew Helwer
I could have painstakingly gone through my diagrams and added these attributes to all the relevant paths, but SVG also supports setting default values for these in the top-level <svg> tag with the attribute style="stroke:currentColor; fill:currentColor; stroke-width:0" . I could have painstakingly gone through my diagrams and added these attributes to all the relevant paths, but SVG also supports setting default values for these in the top-level tag with the attribute . Scaling : there’s an incredibly detailed post about scaling SVGs here, but I just changed the width and height attribute values in the top-level <svg> tag to auto and it seems to work: the displayed SVG scales to the width of the text box.