Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gender color outline in SVG not working in AI and Inkscape #101

Open
FelixBuehler opened this issue Jan 22, 2024 · 2 comments
Open

Gender color outline in SVG not working in AI and Inkscape #101

FelixBuehler opened this issue Jan 22, 2024 · 2 comments

Comments

@FelixBuehler
Copy link

Describe the bug
When exporting the SVG, my programs won't display the color of the gender-outline. This is most like due to the color being a variable and not set in the path.

Expected behavior
All normal programs to be able to deal with the color.

Screenshots
(Additional info removed by me)
Screenshot 2024-01-22 173158

@magicsunday
Copy link
Owner

magicsunday commented Apr 3, 2024

Looks like Inkscape is not able to handle CSS variables. Adding a style tag directly to a path-element style="fill: var(--sex-f-bg, rgb(233, 218, 241)) does not change anything, only if I remove the "var" part from it.

So we need to find a way to extract all used CSS classes of the chart, look up any CSS variable and replace it with the proper defined color expression, create a new style-tag inside exported SVG containing all the corrected CSS, or wait and hope Inkscape will support CSS variables soon or later.

@FelixBuehler
Copy link
Author

A small workaround I do now: I open the exported svg in my browser and then print it as pdf. Then it contains all the colors and is even faster to view than the SVG. I'm no expert (in this field), so maybe a "export to PDF" might even be the best solution, since it's the file format most people can handle?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants