https://github.com/boneskull/lego-color-swatches
All LEGO colors in various formats
https://github.com/boneskull/lego-color-swatches
adobe-swatch-exchange apple-color-list color colors csv json lego swatches
Last synced: over 1 year ago
JSON representation
All LEGO colors in various formats
- Host: GitHub
- URL: https://github.com/boneskull/lego-color-swatches
- Owner: boneskull
- License: cc0-1.0
- Archived: true
- Created: 2017-08-10T03:58:54.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-01-09T22:54:48.000Z (over 7 years ago)
- Last Synced: 2025-03-14T11:44:04.233Z (over 1 year ago)
- Topics: adobe-swatch-exchange, apple-color-list, color, colors, csv, json, lego, swatches
- Language: JavaScript
- Homepage:
- Size: 12.7 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lego-color-swatches
> All LEGO colors in various formats
## Formats
- `.ase` - Adobe Swatch Exchange
- `.clr` - Apple Color List
- `.csv` - Comma-Separated Values
- `.json` - JavaScript Object Notation
## Subsets
- All LEGO colors, past & present
- *TODO*: Transparent, historical, and present color sets
## JavaScript / Node.js Usage
You can install this module via [npm](https://npmjs.com):
```shell
$ npm i lego-color-swatches
```
Then:
```js
const {colors} = require('lego-color-swatches');
colors.forEach(color => {
console.log(color.name);
});
```
## Attribution
- Color codes from [Rebrickable](https://rebrickable.com)
- Conversions via [Sip](https://sipapp.io) and [ColorTools](https://github.com/ramonpoca/ColorTools)
## License
Licensed [CC0-1.0](http://creativecommons.org/publicdomain/zero/1.0/).
[](http://creativecommons.org/publicdomain/zero/1.0/)
To the extent possible under law, [Christopher Hiller](https://boneskull.com) has waived all copyright and related or neighboring rights to [lego-color-swatches](https://github.com/lego-color-swatches). This work is published from: United States.