A collection of color palettes for visualisation in JavaScript, Python and Sass.
npm install chryspip install chrysFor instructions, refer to the docs.
-
Install Nix:
sh <(curl -L https://nixos.org/nix/install) --daemon -
Configure 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 direnv
-
Enable direnv in your shell by adding a line to your shell configuration file.
For Bash, edit
~/.bashrc:eval "$(direnv hook bash)"
-
Allow
.envrc:direnv allow
-
Create
.pypirc:cp example.pypirc .pypirc
-
Enter a PyPI API token as the password in
.pypirc.
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 publishPalettes from:
Copyright (c) 2017 Hein Bekker. Licensed under the BSD 3-Clause License.