Gradient creation library running in the browser ππ
gradient-js
is a library that takes your source colors and a configuration object to produce a gradient suitable for your needs. You can choose between css, svg and raw (object) output.
gradient-js
is built on top of chroma-js color manipulation library, written by Gregor Aisch.
You need to install chroma-js
as a dependency to start working with gradient-js.
- @gradient-js/core - generates raw objects as an output
- @gradient-js/css - generates css strings as an output
- @gradient-js/svg - generates svg DOM nodes as an output