You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the `ts/color/modifiers' plugin, and using a gradient in a token we get the error
`TypeError: Could not parse linear-gradient(90deg, #535353 12.8%, #434343 62.47%) as a color. Missing a plugin?
Temporarily im using patch-package to get around it just for looking for linear-gradient in the value string and exiting early. But other people may get this same issue.
Reproduction
just put the linear-gradient as a value of a color
The expected output isn't clear to me, do you expect it to darken every color element within the linear-gradient? Or just don't modify it and return without throwing an error? Wouldn't that mean the color modification isn't happening; that seems undesirable to me as well.
This is former behavior is not supported but I suppose it could be a feature request if we wanted this. The latter (just ignoring) is also fine by me but it should at least throw some kind of warning otherwise the "exiting early" and not doing the color modification may go unnoticed.
What happened?
When using the `ts/color/modifiers' plugin, and using a gradient in a token we get the error
`TypeError: Could not parse linear-gradient(90deg, #535353 12.8%, #434343 62.47%) as a color. Missing a plugin?
Temporarily im using
patch-package
to get around it just for looking forlinear-gradient
in the value string and exiting early. But other people may get this same issue.Reproduction
just put the linear-gradient as a value of a color
e.g. click here for the configurator link
Expected output
Just for the gradient to use
Version
1.2.6
The text was updated successfully, but these errors were encountered: