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
It would be super cool if the --replace-attr-values feature allowed substitution of javascript expressions instead of just strings, for example
Motivation
Our application contains a number of assets that can be rethemed by swapping out a color palette. Having a way to dynamically replace the colors in the original image with values from a palette would enable us to simplify our designers' workflows.
Example
Perhaps if the replacement value is surrounded by curly braces, it could be treated as an expression instead of a string?
🚀 Feature Proposal
It would be super cool if the
--replace-attr-values
feature allowed substitution of javascript expressions instead of just strings, for exampleMotivation
Our application contains a number of assets that can be rethemed by swapping out a color palette. Having a way to dynamically replace the colors in the original image with values from a palette would enable us to simplify our designers' workflows.
Example
Perhaps if the replacement value is surrounded by curly braces, it could be treated as an expression instead of a string?
While this would be a breaking change, it seems unlikely (to me, anyway) that there would be valid uses of this syntax already in the wild.
Pitch
It seems like a relatively natural extension of the replacement feature.
The text was updated successfully, but these errors were encountered: