Skip to content

Simplify SVG gradient syntax #139

@yuanchuan

Description

@yuanchuan
fill: defs linearGradient {
  gradientTransform: rotate(30);
  stop { offset: 50%; stop-color: deeppink }
  stop { offset: 100%; stop-color: yellow }
}

to

fill: defs @linearGradient(30, deeppink 50%, yellow 100%);

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions