https://github.com/mearns/uigradients.gradients
Community contributed collection of beautiful multi-color gradients
https://github.com/mearns/uigradients.gradients
gradients javascript js node node-js nodejs ui uigradients
Last synced: about 1 month ago
JSON representation
Community contributed collection of beautiful multi-color gradients
- Host: GitHub
- URL: https://github.com/mearns/uigradients.gradients
- Owner: mearns
- Created: 2017-07-26T02:14:12.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-27T12:58:32.000Z (almost 8 years ago)
- Last Synced: 2025-03-06T19:05:50.389Z (about 2 months ago)
- Topics: gradients, javascript, js, node, node-js, nodejs, ui, uigradients
- Language: JavaScript
- Size: 58.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://travis-ci.org/mearns/uigradients.gradients)


[](https://www.npmjs.com/package/uigradients.gradients)[](https://nodei.co/npm/uigradients.gradients/)
# uigradients
A package of community contributed gradients.
This is taken directly from [Ghosh/uiGradients](https://github.com/Ghosh/uiGradients);
the intent of this package is to separate the gradients themselves from the
[uigradients.com](http://uigradients.com/) website, which is currently hosted in
the same repo. For now, please continue to make contributions to the original project,
at . I hope to get a pull-request in to that
project soon to deprecate the gradients from there, in which case contributions
will be migrated to this repo.## Install
This package can be installed from [npm](https://www.npmjs.com/package/uigradients.gradients):
```console
> npm install --save uigradients.gradients
```## Usage
```javascript
const gradients = require('uigradients.gradients').gradients;
console.log(gradients['Purple Love']); // => ["#cc2b5e", "#753a88"]
```## Contributing
**For now, please continue to make contributions to the original [Ghosh/uiGradients](https://github.com/Ghosh/uiGradients) project.**
### Adding Gradients
If you want to add a new gradient, please add it to `gradients.json`, following the existing format.
Each gradient should have exactly two properties: a `name` and a `colors` array. The name is the
name of the gradient and must be unique in the file. The elements of `colors` should be specified
in any format that can be parsed by the [color](https://www.npmjs.com/package/color) package.The `.editorconfig` file describes what formatting you should use. If your editor supports
[EditorConfig](http://editorconfig.org/), you should be all set. Otherwise, just make sure:
* Spaces, not tabs
* Two spaces per level of indentTo make sure your submission can be accepted, run `npm run test` and address any errors
reported.To submit your gradient:
1. Fork this repo (e.g., [on github](https://github.com/mearns/uigradients.gradients))
2. Create a new branch in the form "gradients/$GRADIENT_NAME"
* Please don't modify existing gradients, even if you're the one who created it. People may be depending on these gradients.
3. Submit a pull-request to the [mearns/uigradients.gradients](https://github.com/mearns/uigradients.gradients) repo on github.### Other Changes
All bugs should have issues created for them on [on github](https://github.com/mearns/uigradients.gradients/issues), and
the issue id should be included in the branch name. Please feel free to create issues for feature requests/improvements
as well.If you have other changes you'd like to submit to this repo, follow the same guidelines as above,
but name your branch as either "feature/${ISSUE_ID}-$BRIEF_DESCRIPTION" or "bug/${ISSUE_ID}-${BRIEF_DESCRIPTION}"
as appropriate. If there is no issue for a feature, simply omit that issue id portion of the branch name (or
consider creating an issue for it).Please limit branches and merge requests to **single bugs/features**. Submit as many merge requests as you like.