chrys
v4.3.1
Published
A collection of color palettes for visualisation in JavaScript, Python and Sass
Readme
chrys
A collection of color palettes for visualisation in JavaScript, Python and Sass.
Demo
Installation
Node.js and Sass
npm install chrysPython 3.13 and up
pip install chrysUsage
For instructions, refer to the docs.
Development: Installation
Install Nix:
sh <(curl -L https://nixos.org/nix/install) --daemonConfigure Nix. Edit
/etc/nix/nix.conf(for a multi-user installation) or~/.config/nix/nix.conf(for a single-user installation) to include the following lines:experimental-features = nix-command flakes trusted-users = root <USER>Replace
<USER>with your username on your computer.Install direnv:
sudo apt install direnvEnable direnv in your shell by adding a line to your shell configuration file.
For Bash, edit
~/.bashrc:eval "$(direnv hook bash)"Allow
.envrc:direnv allowCreate
.pypirc:cp example.pypirc .pypircEnter a PyPI API token as the password in
.pypirc.
Development: Usage
Patch Node dependencies to fix ESM imports:
npx patch-package @bokeh/bokehjs --exclude 'nothing'
npx patch-package vega-scale --exclude 'nothing'Build the palette data:
make build-dataBuild and publish the JavaScript and Python distribution packages:
make bump-version [major|minor|patch]
git push
make build-dist-and-commit
git push
make create-release
make publishCredit
Palettes from:
License
Copyright (c) 2017 Hein Bekker. Licensed under the BSD 3-Clause License.
