A collection of color palettes for visualisation in JavaScript, Python and Sass.
npm install chryspip install chrysFor instructions, refer to the docs.
-
Clone the repo:
git clone git@github.com:netbek/chrys.git
-
Install Mise and add activation to
~/.bashrc, e.g.curl -fsSL https://github.com/jdx/mise/releases/download/v2026.7.13/install.sh | sh -
Trust
mise.toml:mise trust
-
Create a PyPI API token, and add the token to the system keyring as the password:
keyring set pypi-chrys __token__
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
make create-release
make publishPalettes from:
- Bokeh — Copyright (c) 2012-2022 Anaconda, Inc., and Bokeh Contributors (BSD 3-Clause)
- D3 — D3: Copyright (c) 2010-2026 Mike Bostock; ColorBrewer: Copyright 2002 Cynthia Brewer, Mark Harrower, and The Pennsylvania State University (ISC; ColorBrewer palettes Apache 2.0)
- Vega — Copyright (c) 2015-2023 University of Washington Interactive Data Lab (BSD 3-Clause)
Continuous color sampling adapted from:
- Bokeh — Copyright (c) 2012-2018 Anaconda, Inc., and Bokeh Contributors (BSD 3-Clause)
APCA contrast algorithm from:
- APCA-W3 — Copyright (c) 2019-2022 Andrew Somers (W3 License)
Copyright (c) 2017 Hein Bekker. Licensed under the BSD 3-Clause License.