Skip to content

Consider a gradient trait #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ianstormtaylor opened this issue Nov 10, 2022 · 0 comments
Open

Consider a gradient trait #32

ianstormtaylor opened this issue Nov 10, 2022 · 0 comments
Labels
idea Ideas that we're still mulling

Comments

@ianstormtaylor
Copy link
Owner

ianstormtaylor commented Nov 10, 2022

More complex than a single color, would give you a Figma-like gradient editor as the UI, and an array of stops with position and color properties, like:

[
  { position: 0, color: 'red' },
  { position: 0.5, color: 'blue' },
  { position: 1, color: 'yellow' }
]

Up to the user whether they want to use it for a linear, conical, radial, etc. type of gradient.

@ianstormtaylor ianstormtaylor added the idea Ideas that we're still mulling label Nov 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idea Ideas that we're still mulling
Projects
None yet
Development

No branches or pull requests

1 participant