Skip to content

Linear gradients do not work with color modifier transform #325

Description

@darylthornhill

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 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

e.g. click here for the configurator link

Expected output

Just for the gradient to use

Version

1.2.6

Metadata

Metadata

Assignees

Labels

questionQuestion about sd-transforms/style-dictionary

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions