Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mattdesl/paper-colors
A small set of pastel and off-white paper colors
https://github.com/mattdesl/paper-colors
Last synced: 17 days ago
JSON representation
A small set of pastel and off-white paper colors
- Host: GitHub
- URL: https://github.com/mattdesl/paper-colors
- Owner: mattdesl
- License: mit
- Created: 2019-08-14T15:33:33.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T07:13:47.000Z (almost 2 years ago)
- Last Synced: 2024-10-22T23:45:40.350Z (22 days ago)
- Language: JavaScript
- Homepage:
- Size: 519 KB
- Stars: 72
- Watchers: 4
- Forks: 5
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# paper-colors
A set of 12 paper colors from various brands.
This was sourced manually and by eye, so all colours are approximate, and the list is not exhaustive in any way. The colors are subject to change (PRs welcome!).
```js
const paperColors = require('paper-colors');// Select a random color
const color = paperColors[Math.floor(Math.random() * paperColors.length)];// Get the hex code e.g. '#e5bb57'
console.log(color.hex);
```Each color object has the following format:
```js
{
"name": "Canary",
"hex": "#e5bb57",
"brand": "Springhill Opaque"
}
```## Install
Use [npm](https://npmjs.com/) to install.
```sh
npm install paper-colors --save
```## Usage
The module exposes a JSON file as its entry point, which includes an array of colour objects.
## Sourcing
Most of the data has been manually sourced from [Vide Press](https://videpress.ca/) and its promotional photographs.
PRs welcome for more accurate and exhaustive data.
## License
MIT, see [LICENSE.md](http://github.com/mattdesl/paper-colors/blob/master/LICENSE.md) for details.