This PR adds inline-css-variables-in-svg parser. It allows to replace all the stroke and fill values by a Css variable if a matching color token exists
Additional informations
I need some feedbacks on a few points:
Currently the cssVariablesFormat option has no default value, should It?
To make the parser test works, it required to update seeds.json, but now some of the tests are broken (mostly snapshots). I only need a confirmation that it's the correct way of doing it before I fix all the tests.
I made a README.md based on the other parsers, feel free to tell me if there's lacking informations
What it does
This PR adds
inline-css-variables-in-svg
parser. It allows to replace all thestroke
andfill
values by a Css variable if a matching color token existsAdditional informations
I need some feedbacks on a few points:
cssVariablesFormat
option has no default value, should It?seeds.json
, but now some of the tests are broken (mostly snapshots). I only need a confirmation that it's the correct way of doing it before I fix all the tests.README.md
based on the other parsers, feel free to tell me if there's lacking informations