yagudaev / css-gradient-to-figma

Plugin to insert a CSS Gradient into Figma
https://www.figma.com/community/plugin/1157089605295322526/CSS-Gradient-to-Figma
MIT License
18 stars 2 forks source link

feat: move to postcss-value-parser - revised #18

Closed yagudaev closed 1 year ago

yagudaev commented 1 year ago

Based on #16 with some refactoring to make things cleaner and more understandable.

Changes in this PR beyond #16 are:

  1. Fix Typescript errors
  2. Refactor and separate different elements + comments
  3. Add support for gradient stacking
CleanShot 2022-10-22 at 13 21 12@2x

From https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Images/Using_CSS_gradients#stacked_gradients

The code for radial gradients and conic gradients can be cleaned up, but it can wait until we implement it and have a better understanding of the spec. This is a huge step forward for the project and its capabilities.

Thanks @gluck I could have never done this without you.