Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kgolid/chromotome
A collection of color palettes saved for personal use.
https://github.com/kgolid/chromotome
Last synced: about 2 months ago
JSON representation
A collection of color palettes saved for personal use.
- Host: GitHub
- URL: https://github.com/kgolid/chromotome
- Owner: kgolid
- License: mit
- Created: 2018-08-28T22:05:00.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-08-29T22:36:28.000Z (about 1 year ago)
- Last Synced: 2024-07-18T08:45:30.556Z (2 months ago)
- Language: JavaScript
- Homepage: https://kgolid.github.io/chromotome-site/
- Size: 88.9 KB
- Stars: 343
- Watchers: 5
- Forks: 13
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Chromotome
A collection of color palettes used in order to easily colorize new creative coding projects. New palettes will be continuously added, and all existing ones are subject to change.
Installation:
```
npm install -save chromotome
```Basic usage:
```javascript
// Can both use ES6 import and CommonJS require.
import * as tome from 'chromotome';// Palettes can be acquired randomly...
let palette = tome.get(); // tome.getRandom() also works.// ...or by name!
palette = tome.get('miradors'); // tome.getNames() gets you a list of all the different palette names.// A palette consists of an array of colors together with (usually) a stroke color and a background color.
console.log(palette.colors); // --> ['#ff6936', '#fddc3f', '#0075ca', '#00bb70']
console.log(palette.stroke); // --> '#ffffff'
console.log(palette.background); // --> '#020202'
```Palette overview:
https://kgolid.github.io/chromotome-site/