Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/netbek/chrys
A collection of color palettes for visualisation in JavaScript, Python and Sass
https://github.com/netbek/chrys
bokeh chrysiridia javascript palette python sass vega
Last synced: about 2 months ago
JSON representation
A collection of color palettes for visualisation in JavaScript, Python and Sass
- Host: GitHub
- URL: https://github.com/netbek/chrys
- Owner: netbek
- License: bsd-3-clause
- Created: 2017-03-11T08:54:48.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-01-27T09:04:20.000Z (12 months ago)
- Last Synced: 2024-11-11T01:02:37.575Z (about 2 months ago)
- Topics: bokeh, chrysiridia, javascript, palette, python, sass, vega
- Language: JavaScript
- Homepage: https://netbek.github.io/chrys
- Size: 6.7 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# chrys
[![CircleCI](https://circleci.com/gh/netbek/chrys.svg?style=svg)](https://circleci.com/gh/netbek/chrys)
A collection of color palettes for visualisation in JavaScript, Python and Sass.
## Demo
[netbek.github.io/chrys](https://netbek.github.io/chrys#colour-schemes)
## Installation
### Node.js and Sass
```shell
npm install chrys
```### Python 3.6 and up
```shell
pip install chrys
```## Usage
For instructions, refer to [the docs](https://netbek.github.io/chrys#usage).
## Development: Installation
1. Install Node 18.x:
```shell
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
source ~/.bashrc
nvm install 18
nvm use 18
```2. Create `.pypirc`:
```shell
cp example.pypirc .pypirc
```3. Enter a [PyPI API token](https://pypi.org/manage/account/#api-tokens) as the password in `.pypirc`.
## Development: Usage
Patch Node dependencies to fix ESM imports:
```shell
npx patch-package @bokeh/bokehjs --exclude 'nothing'
npx patch-package vega-scale --exclude 'nothing'
```Build the palette data, JavaScript and Python distribution packages, Sass, CSS, Illustrator scripts:
```shell
npm run build-data
npm run build-dist
```Publish the JavaScript and Python distribution packages:
```shell
npm publish
npm run publish-py
```## Credit
Palettes from:
* [Bokeh](https://github.com/bokeh/bokeh) (BSD 3-Clause)
* [Vega](https://github.com/vega/vega) (BSD 3-Clause)## License
Copyright (c) 2017 Hein Bekker. Licensed under the BSD 3-Clause License.